mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-06-20 12:54:23 -04:00
install brozzler.webconsole package
This commit is contained in:
parent
cfc18e6845
commit
65d97caa9a
1 changed files with 17 additions and 3 deletions
20
setup.py
20
setup.py
|
@ -18,18 +18,32 @@ limitations under the License.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import setuptools
|
import setuptools
|
||||||
|
import os
|
||||||
|
|
||||||
|
def find_package_data(package):
|
||||||
|
pkg_data = []
|
||||||
|
depth = len(package.split('.'))
|
||||||
|
path = os.path.join(*package.split('.'))
|
||||||
|
for dirpath, dirnames, filenames in os.walk(path):
|
||||||
|
if not os.path.exists(os.path.join(dirpath, '__init__.py')):
|
||||||
|
relpath = os.path.join(*dirpath.split(os.sep)[depth:])
|
||||||
|
pkg_data.extend(os.path.join(relpath, f) for f in filenames)
|
||||||
|
return pkg_data
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name='brozzler',
|
name='brozzler',
|
||||||
version='1.1b4.dev63',
|
version='1.1b4.dev64',
|
||||||
description='Distributed web crawling with browsers',
|
description='Distributed web crawling with browsers',
|
||||||
url='https://github.com/internetarchive/brozzler',
|
url='https://github.com/internetarchive/brozzler',
|
||||||
author='Noah Levitt',
|
author='Noah Levitt',
|
||||||
author_email='nlevitt@archive.org',
|
author_email='nlevitt@archive.org',
|
||||||
long_description=open('README.rst', encoding='UTF-8').read(),
|
long_description=open('README.rst', encoding='UTF-8').read(),
|
||||||
license='Apache License 2.0',
|
license='Apache License 2.0',
|
||||||
packages=['brozzler'],
|
packages=['brozzler', 'brozzler.webconsole'],
|
||||||
package_data={'brozzler': ['behaviors.d/*.js*', 'behaviors.yaml']},
|
package_data={
|
||||||
|
'brozzler': ['behaviors.d/*.js*', 'behaviors.yaml'],
|
||||||
|
'brozzler.webconsole': find_package_data('brozzler.webconsole'),
|
||||||
|
},
|
||||||
entry_points={
|
entry_points={
|
||||||
'console_scripts': [
|
'console_scripts': [
|
||||||
'brozzle-page=brozzler.cli:brozzle_page',
|
'brozzle-page=brozzler.cli:brozzle_page',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue