-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
80 lines (69 loc) · 2.21 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
"""
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, "podpacdatalib")
import version
__version__ = version.version()
install_requires = [
"podpac[datatype,aws,stac,intake]",
]
extras_require = {
"dev": [],
}
# 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="podpacdatalib",
version=__version__,
description="Pipeline for Observational Data Processing, Analysis, and Collaboration: Encapsulation of public data sets.",
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' : []
# }
)