-
Notifications
You must be signed in to change notification settings - Fork 63
/
setup.py
46 lines (41 loc) · 1.57 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
import sys
from os.path import dirname, join
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open(join(dirname(__file__), 'scrapinghub/VERSION'), 'rb') as f:
version = f.read().decode('ascii').strip()
is_pypy = '__pypy__' in sys.builtin_module_names
mpack_required = ['msgpack>=1.0.0']
if is_pypy:
mpack_required.append('msgpack-pypy>=0.0.2')
setup(
name='scrapinghub',
version=version,
license='BSD',
description='Client interface for Scrapinghub API',
author='Scrapinghub',
author_email='info@scrapinghub.com',
url='http://github.com/scrapinghub/python-scrapinghub',
platforms=['Any'],
packages=['scrapinghub', 'scrapinghub.client', 'scrapinghub.hubstorage'],
package_data={'scrapinghub': ['VERSION']},
install_requires=['requests>=1.0', 'retrying>=1.3.3', 'six>=1.10.0'],
extras_require={'msgpack': mpack_required},
python_requires='>=3.8',
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Internet :: WWW/HTTP',
],
)