forked from scrapinghub/splash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·84 lines (75 loc) · 2.78 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
#!/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'],
'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 < 16.3.0',
'qt5reactor',
'psutil',
'adblockparser',
'xvfbwrapper',
'funcparserlib',
'Pillow > 2.0',
],
'classifiers': [
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'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)