-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
150 lines (135 loc) · 3.71 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
"""
podpac module
"""
import sys
import subprocess
# Always prefer setuptools over distutils
from setuptools import find_packages, setup
from setuptools.command.develop import develop
# get version
sys.path.insert(0, "podpac")
import version
__version__ = version.version()
install_requires = [
"matplotlib>=2.1",
"numpy>=1.14,<2",
"pint>=0.8",
"scipy>=1.0",
"traitlets>=4.3",
"xarray>=0.10",
"requests>=2.18",
"lazy-import>=0.2.2",
"psutil",
"affine",
"geopy",
]
if sys.version_info.major == 2:
install_requires += ["future>=0.16", "pyproj>=2.2"]
else:
install_requires += ["pyproj>=2.4"]
extras_require = {
"datatype": [
"beautifulsoup4>=4.6",
"h5py>=2.9",
"lxml>=4.2",
"pydap>=3.3",
"rasterio>=1.0",
"zarr>=2.3",
"owslib",
"h5netcdf"
# "intake>=0.5" Not supported in Python 3.5
],
"aws": ["awscli>=1.16", "boto3>=1.9.200", "s3fs>=0.4"],
"algorithms": ["numexpr>=2.6"],
# "datalib": ["podpacdatalib"],
"notebook": [
"jupyterlab",
"ipyleaflet",
"ipywidgets",
"ipympl",
"nodejs",
#'cartopy'
],
"stac": [
"sat-search>=0.2",
"sat-stac>=0.3",
],
"node_ui": ["numpydoc"],
"dev": [
"pylint>=1.8.2",
"pytest-cov>=2.5.1",
"pytest-html>=1.7.0",
"pytest-remotedata>=0.3.1",
"myst-parser>=1.0.0",
"coveralls>=1.3",
"six>=1.0",
"attrs>=17.4.0",
"pre_commit>=1",
],
}
if sys.version_info.major == 2:
extras_require["dev"] += ["pytest>=3.3.2"]
else:
extras_require["dev"] += [
"sphinx>=2.3, <3.0",
"sphinx-rtd-theme>=0.4",
"sphinx-autobuild>=0.7",
"pytest>=5.0",
"numpydoc",
]
if sys.version >= "3.6":
extras_require["dev"] += [
"black",
]
extras_require["intake"] = ["intake>=0.5.1"]
# set long description to readme
with open("README.MD") as f:
long_description = f.read()
all_reqs = []
for key, val in extras_require.items():
if "key" == "dev":
continue
all_reqs += val
extras_require["all"] = all_reqs
extras_require["devall"] = all_reqs + extras_require["dev"]
# install pre-commit hooks after setup in develop mode
class PostDevelopCommand(develop):
def run(self):
try:
subprocess.check_call(["pre-commit", "install"])
except subprocess.CalledProcessError as e:
print("Failed to install pre-commit hook")
develop.run(self)
setup(
# ext_modules=None,
name="podpac",
version=__version__,
description="Pipeline for Observational Data Processing, Analysis, and Collaboration",
author="Creare",
url="https://podpac.org",
license="APACHE 2.0",
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
"Development Status :: 4 - Beta",
# Indicate who your project is intended for
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering :: GIS",
# Pick your license as you wish (should match "license" above)
"License :: OSI Approved :: Apache Software License",
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
"Programming Language :: Python",
],
packages=find_packages(),
install_requires=install_requires,
extras_require=extras_require,
cmdclass={"develop": PostDevelopCommand},
long_description=long_description,
long_description_content_type="text/markdown"
# entry_points = {
# 'console_scripts' : []
# }
)