-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
77 lines (72 loc) · 1.74 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
import os
import sys
from setuptools import setup
# brings in "version" and "description" vars
versionfile = 'version.py'
versionpath = os.path.join('pdsc', versionfile)
with open(versionpath, 'r') as f:
code = compile(f.read(), versionfile, 'exec')
exec(code)
with open('README.md', 'r') as f:
long_description = f.read()
if sys.version_info[0] == 2:
install_requires=[
'tempora<=1.11',
'more-itertools<5.0.0',
'numpy<=1.16',
'scipy==0.13.3',
'scikit-learn<0.20.0',
'Polygon2',
'progressbar',
'PyYAML',
'geographiclib',
'cheroot==6.1.0',
'CherryPy==14.0.1',
'requests',
'future',
]
elif sys.version_info[0] == 3:
install_requires=[
'numpy',
'scipy',
'scikit-learn',
'Polygon3',
'progressbar',
'PyYAML',
'geographiclib',
'CherryPy',
'requests',
'future',
]
setup(name='pdsc',
version=__version__,
description=__description__,
author='Gary Doran',
author_email='[email protected]',
url='https://github.com/JPLMLIA/pdsc',
license="BSD compatable (see the LICENSE file)",
long_description=long_description,
long_description_content_type="text/markdown",
packages=['pdsc'],
platforms=['unix'],
python_requires='>=2.7',
scripts=[
'bin/pdsc_util',
'bin/pdsc_ingest',
'bin/pdsc_server',
],
install_requires=install_requires,
provides=[
'pdsc',
],
include_package_data=True,
extras_require={
'devel': [
'pytest',
'pytest-cov',
'mock',
'sphinx',
'sphinx_rtd_theme',
],
}
)