-
Notifications
You must be signed in to change notification settings - Fork 512
/
setup.py
86 lines (77 loc) · 2.89 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
import os
import re
from setuptools import setup
def _path(*args):
return os.path.join(os.path.dirname(__file__), *args)
def get_version():
filename = _path('splash', '__init__.py')
with open(filename, 'rb') as fp:
contents = fp.read().decode('utf8')
return re.search(r"__version__ = ['\"](.+)['\"]", contents).group(1)
setup_args = {
'name': 'splash',
'version': get_version(),
'url': 'https://github.com/scrapinghub/splash',
'description': 'A javascript rendered with a HTTP API',
'long_description': open('README.rst').read(),
'author': 'Scrapinghub',
'author_email': '[email protected]',
'maintainer': 'Scrapinghub',
'maintainer_email': '[email protected]',
'license': 'BSD',
'scripts': ['bin/splash'],
'packages': ['splash', 'splash.har', 'splash.kernel',
'splash.engines.chromium', 'splash.engines.webkit'],
'package_data': {'splash': [
'vendor/harviewer/webapp/css/*.css',
'vendor/harviewer/webapp/css/images/*.*',
'vendor/harviewer/webapp/css/images/menu/*.*',
'vendor/harviewer/webapp/scripts/*.*',
'vendor/harviewer/webapp/scripts/core/*.*',
'vendor/harviewer/webapp/scripts/domplate/*.*',
'vendor/harviewer/webapp/scripts/downloadify/js/*.*',
'vendor/harviewer/webapp/scripts/downloadify/src/*.*',
'vendor/harviewer/webapp/scripts/downloadify/media/*.*',
'vendor/harviewer/webapp/scripts/excanvas/*.*',
'vendor/harviewer/webapp/scripts/jquery-plugins/*.*',
'vendor/harviewer/webapp/scripts/json-query/*.*',
'vendor/harviewer/webapp/scripts/nls/*.*',
'vendor/harviewer/webapp/scripts/preview/*.*',
'vendor/harviewer/webapp/scripts/syntax-highlighter/*.js',
'vendor/harviewer/webapp/scripts/tabs/*.*',
'vendor/harviewer/webapp/har.js',
'ui/*.*',
'examples/*.lua',
'lua_modules/*.lua',
'lua_modules/libs/*.lua',
'lua_modules/vendor/*.lua',
'kernel/inspections/*.json',
'kernel/kernels/splash-py2/*.*',
'kernel/kernels/splash-py3/*.*',
]},
'zip_safe': False,
'install_requires': [
'Twisted[http2] >= 19.7.0',
'qt5reactor',
'psutil',
'adblockparser',
'xvfbwrapper',
'funcparserlib',
'Pillow >= 3.4.2',
'attrs >= 18.2.0',
],
'classifiers': [
'Programming Language :: Python',
'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',
'Environment :: No Input/Output (Daemon)',
'Topic :: Internet :: WWW/HTTP',
],
}
setup(**setup_args)