-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
51 lines (42 loc) · 1.34 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
"""Setup script."""
import sys
from setuptools import setup, find_packages
with open("rio_alpha/__init__.py") as f:
for line in f:
if line.find("__version__") >= 0:
version = line.split("=")[1].strip()
version = version.strip('"')
version = version.strip("'")
break
long_description = """Rasterio plugin for handling nodata values
See https://github.com/mapbox/rio-alpha for docs.
"""
requirements = ["click>=6", "rasterio~=1.0", "rio-mucho>=1.0rc1", "scipy>=0.18"]
if sys.version_info < (3, 3):
requirements += ["mock>=2"]
setup(
name="rio-alpha",
version=version,
description=u"A replacement for pxm-alpha",
long_description=long_description,
classifiers=[],
keywords="",
author=u"Virginia Ng",
author_email="[email protected]",
url="https://github.com/mapbox/rio-alpha",
license="BSD",
packages=find_packages(exclude=["ez_setup", "examples", "tests"]),
include_package_date=True,
zip_safe=False,
install_requires=requirements,
extras_require={
"plot": ["matplotlib"],
"test": ["codecov", "hypothesis", "pytest", "pytest-cov"],
},
entry_points="""
[rasterio.rio_plugins]
alpha=rio_alpha.scripts.cli:alpha
islossy=rio_alpha.scripts.cli:islossy
findnodata=rio_alpha.scripts.cli:findnodata
""",
)