-
Notifications
You must be signed in to change notification settings - Fork 25
/
setup.py
42 lines (35 loc) · 1.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
#!/usr/bin/env python
"""The setup script."""
import sys
from setuptools import setup, find_packages
import versioneer
with open("requirements.txt") as f:
INSTALL_REQUIRES = f.read().strip().split("\n")
with open("README.md") as f:
LONG_DESCRIPTION = f.read()
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
PYTHON_REQUIRES = '>=3.5'
SETUP_REQUIRES = ['pytest-runner >= 4.2'] if needs_pytest else []
TESTS_REQUIRE = ['pytest >= 2.7.1']
description = ("An intake adapter for building intake catalogs begining "
"with SpatioTemporal Asset Catalogs (STAC)")
setup(
name="intake_stac",
description=description,
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
maintainer="Joe Hamman",
maintainer_email="jhamman@ucar.edu",
url="https://github.com/pangeo-data/intake-stac",
py_modules=['intake_stac'],
packages=find_packages(),
python_requires=PYTHON_REQUIRES,
install_requires=INSTALL_REQUIRES,
setup_requires=SETUP_REQUIRES,
tests_require=TESTS_REQUIRE,
license="BSD 2-Clause",
zip_safe=False,
keywords="intake stac",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
)