-
Notifications
You must be signed in to change notification settings - Fork 65
/
setup.py
executable file
·86 lines (77 loc) · 2.43 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
from setuptools import setup, find_packages
with open("README.rst") as f:
long_description = f.read()
with open("CHANGES.rst") as f:
long_description += "\n\n" + f.read()
def get_version():
fn = os.path.join(os.path.dirname(__file__), "arachnado", "__init__.py")
with open(fn) as f:
return re.findall("__version__ = '([\d\.]+)'", f.read())[0]
setup(
name='arachnado',
version=get_version(),
url='https://github.com/TeamHG-Memex/arachnado',
description='Scrapy-based Web Crawler with an UI',
long_description=long_description,
author='Mikhail Korobov',
author_email='kmike84@gmail.com',
license='MIT',
packages=find_packages(),
package_data={
'arachnado': [
"config/*.conf",
"templates/*.html",
"static/css/*.css",
"static/build/*.css",
"static/build/*.js",
"static/js/*.jsx",
"static/js/*.js",
"static/js/components/*.jsx",
"static/js/components/*.js",
"static/js/pages/*.jsx",
"static/js/pages/*.js",
"static/js/stores/*.jsx",
"static/js/stores/*.js",
"static/js/utils/*.jsx",
"static/js/utils/*.js",
]
},
zip_safe=False,
entry_points={
'console_scripts': ['arachnado = arachnado.__main__:run']
},
classifiers=[
'Framework :: Scrapy',
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Application Frameworks',
'Topic :: Software Development :: Libraries :: Python Modules',
],
install_requires=[
'scrapy >= 1.1.0',
'Twisted >= 16',
'psutil >= 2.2',
'tornado >= 4.2, < 4.3',
'docopt >= 0.6',
'service_identity',
'motor >= 0.6.2',
'json-rpc >= 1.10',
'autologin-middleware >= 0.1.1',
'six',
'croniter >= 0.3.12',
],
extras_require={
'mongo': [], # backwards compatibility
'extras': ['autopager >= 0.2'],
}
)