forked from scrapy/scrapyd-client
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
44 lines (40 loc) · 1.41 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
from os.path import join, dirname
with open(join(dirname(__file__), 'scrapyd_client/VERSION')) as f:
version = f.read().strip()
setup_args = {
'name': 'scrapyd-client',
'version': version,
'url': 'https://github.com/scrapy/scrapyd-client',
'description': 'A client for scrapyd',
'long_description': open('README.rst').read(),
'author': 'Scrapy developers',
'maintainer': 'Scrapy developers',
'maintainer_email': '[email protected]',
'license': 'BSD',
'packages': ['scrapyd_client'],
'entry_points': {
'console_scripts': ['scrapyd-deploy = scrapyd_client.deploy:main',
'scrapyd-client = scrapyd_client.cli:main']
},
'include_package_data': True,
'zip_safe': False,
'classifiers': [
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Topic :: Internet :: WWW/HTTP',
],
}
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
else:
setup_args['install_requires'] = ['requests', 'Scrapy>=0.17', 'six']
setup(**setup_args)