-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
65 lines (55 loc) · 1.68 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
#!/usr/bin/env python
# coding: utf-8
import os
import io
import re
from setuptools import setup, find_packages
thisdir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(thisdir, 'src', 'pycrunch', 'version.py')) as v_file:
VERSION = re.compile(
r".*__version__ = '(.*?)'",
re.S).match(v_file.read()).group(1)
def get_long_desc():
readme_fn = os.path.join(thisdir, 'README.md')
with io.open(readme_fn, encoding='utf-8') as stream:
return stream.read()
requires = [
'requests>=2.14.0',
'six',
]
tests_requires = [
'mock',
'pytest',
'pytest-cov',
]
setup_params = dict(
name='pycrunch',
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
version=VERSION,
description="Crunch.io Client Library",
long_description=get_long_desc(),
url='https://github.com/Crunch-io/pycrunch',
classifiers=[
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
],
author=u'Crunch.io',
author_email='dev@crunch.io',
license='LGPL',
install_requires=requires,
tests_require=tests_requires,
packages=find_packages('src', exclude=['tests']),
package_dir={'': 'src'},
include_package_data=True,
extras_require={
'pandas:python_version=="3.4"': ['pandas~=0.19.0'],
'pandas:python_version=="2.7" or python_version>="3.5"': ['pandas'],
'testing:python_version=="3.4"': ['pandas~=0.19.0'],
'testing:python_version=="2.7" or python_version>="3.5"': ['pandas'],
'testing': tests_requires,
},
zip_safe=True,
entry_points={},
)
if __name__ == '__main__':
setup(**setup_params)