/
setup.py
54 lines (47 loc) · 1.53 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
#!/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.6"
SETUP_REQUIRES = ["pytest-runner >= 4.2"] if needs_pytest else []
TESTS_REQUIRE = ["pytest >= 2.7.1"]
ENTRY_POINTS = {
"intake.drivers": [
"stac_catalog = intake_stac.catalog:StacCatalog",
"stac_collection = intake_stac.catalog:StacCollection",
"stac_item = intake_stac.catalog:StacItem",
]
}
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(),
package_dir={"intake_stac": "intake_stac"},
include_package_data=True,
python_requires=PYTHON_REQUIRES,
install_requires=INSTALL_REQUIRES,
setup_requires=SETUP_REQUIRES,
tests_require=TESTS_REQUIRE,
entry_points=ENTRY_POINTS,
license="BSD 2-Clause",
zip_safe=False,
keywords="intake stac",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
)