-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.py
28 lines (25 loc) · 1.09 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
import sys
from os.path import join, dirname
from setuptools import setup, find_packages
# We can't import hubstorage.__version__ because it imports "requests" and it
# can not be available yet
__version__ = open(join(dirname(__file__), 'hubstorage/VERSION')).read().strip()
is_pypy = '__pypy__' in sys.builtin_module_names
mpack_required = 'msgpack-pypy>=0.0.2' if is_pypy else 'msgpack-python>=0.4.7'
setup(name='hubstorage',
version=__version__,
license='BSD',
description='Client interface for Scrapinghub HubStorage',
author='Scrapinghub',
author_email='[email protected]',
url='http://scrapinghub.com',
platforms=['Any'],
packages=find_packages(),
package_data={'hubstorage': ['VERSION']},
install_requires=['requests', 'retrying>=1.3.3', 'six>=1.10.0'],
classifiers=['Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python'],
extras_require = {'msgpack': [mpack_required]},
)