-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
53 lines (47 loc) · 1.4 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
#!/usr/bin/env python
# encoding: utf-8
from setuptools import setup
import re, os
def get_version():
with open('phantom_snap/__version__.py') as version_file:
return re.search(r"""__version__\s+=\s+(['"])(?P<version>.+?)\1""",
version_file.read()).group('version')
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
setup(name='phantom-snap',
description='Render HTML to an image using PhantomJS with this library \
designed to scale for high volume continuous operation.',
long_description=README,
author='Andrew Carter',
author_email='[email protected]',
url='https://github.com/istresearch/phantom-snap',
keywords=['web', 'html', 'render', 'screenshot', 'phantomjs'],
license='MIT',
version=get_version(),
packages=[
'phantom_snap'
],
package_data={
'phantom_snap': ['*.js']
},
setup_requires=[
'nose>=1.3.7'
],
install_requires=[
'eventlet>=0.23.0',
'requests>=2.19.1'
],
tests_require=[
'nose',
'coverage>=4.0.3',
'mock==2.0.0',
'jsonschema>=2.6.0',
],
test_suite='nose.collector',
classifiers=[
"Intended Audience :: Developers",
"Topic :: System",
"Topic :: System :: Distributed Computing",
"Topic :: Utilities"
]
)