2014-05-20 02:42:40 -07:00
|
|
|
import setuptools
|
2014-05-20 16:44:13 -07:00
|
|
|
import glob
|
2014-01-21 06:41:46 +00:00
|
|
|
|
2015-06-13 11:30:01 -07:00
|
|
|
VERSION_BYTES = b'1.0'
|
2014-05-29 20:43:00 -07:00
|
|
|
|
|
|
|
def full_version_bytes():
|
|
|
|
import subprocess, time
|
|
|
|
try:
|
2015-09-23 14:46:57 -07:00
|
|
|
commit_num_bytes = subprocess.check_output(['git', 'rev-list', '--count', 'HEAD'])
|
2015-09-23 22:35:26 +00:00
|
|
|
return VERSION_BYTES + b'.' + commit_num_bytes.strip()
|
2014-05-29 20:43:00 -07:00
|
|
|
except subprocess.CalledProcessError:
|
|
|
|
return VERSION_BYTES
|
|
|
|
|
|
|
|
version_bytes = full_version_bytes()
|
2015-07-13 17:09:39 -07:00
|
|
|
with open('brozzler/version.txt', 'wb') as out:
|
2014-05-29 20:43:00 -07:00
|
|
|
out.write(version_bytes)
|
|
|
|
out.write(b'\n');
|
|
|
|
|
2015-07-13 17:09:39 -07:00
|
|
|
setuptools.setup(name='brozzler',
|
2014-05-29 20:43:00 -07:00
|
|
|
version=version_bytes.decode('utf-8'),
|
2015-07-13 17:09:39 -07:00
|
|
|
description='Distributed web crawling with browsers',
|
|
|
|
url='https://github.com/nlevitt/brozzler',
|
|
|
|
author='Noah Levitt',
|
|
|
|
author_email='nlevitt@archive.org',
|
2015-09-23 22:35:26 +00:00
|
|
|
long_description=open('README.rst').read(),
|
2014-01-23 18:26:20 -05:00
|
|
|
license='Apache License 2.0',
|
2015-07-13 17:09:39 -07:00
|
|
|
packages=['brozzler'],
|
2015-09-23 22:35:26 +00:00
|
|
|
package_data={'brozzler': ['behaviors.d/*.js*', 'behaviors.yaml', 'version.txt']},
|
2014-05-29 20:43:00 -07:00
|
|
|
scripts=glob.glob('bin/*'),
|
2015-09-23 00:49:20 +00:00
|
|
|
install_requires=[
|
|
|
|
'PyYAML',
|
|
|
|
'youtube-dl',
|
|
|
|
'reppy',
|
|
|
|
'requests',
|
|
|
|
'websocket-client',
|
|
|
|
'pillow',
|
|
|
|
'surt',
|
|
|
|
'rethinkstuff',
|
|
|
|
],
|
2014-01-21 06:41:46 +00:00
|
|
|
zip_safe=False,
|
|
|
|
classifiers=[
|
2015-07-13 17:09:39 -07:00
|
|
|
'Development Status :: 3 - Alpha',
|
2014-01-21 06:41:46 +00:00
|
|
|
'Environment :: Console',
|
2014-01-23 16:18:13 -05:00
|
|
|
'License :: OSI Approved :: Apache Software License',
|
2015-07-09 18:36:07 -07:00
|
|
|
'Programming Language :: Python :: 3.4',
|
2015-07-13 17:09:39 -07:00
|
|
|
'Topic :: Internet :: WWW/HTTP',
|
2014-01-21 06:41:46 +00:00
|
|
|
'Topic :: System :: Archiving',
|
|
|
|
])
|