forked from mapbox/rio-rgbify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
44 lines (38 loc) · 1.32 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
"""rio-rgbify: setup."""
from setuptools import setup, find_packages
# Parse the version from the fiona module.
with open("rio_rgbify/__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 = """"""
# Runtime requirements.
inst_reqs = ["click", "rasterio~=1.0", "rio-mucho", "Pillow", "mercantile"]
extra_reqs = {
"test": ["pytest", "pytest-cov", "codecov", "hypothesis", "raster_tester"],
"dev": [
"pytest", "pytest-cov", "codecov", "hypothesis", "raster_tester", "pre-commit"
],
}
setup(name="rio-rgbify",
version=version,
description=u"Encode arbitrary bit depth rasters in pseudo base-256 as RGB",
long_description=long_description,
classifiers=[],
keywords="",
author=u"Damon Burgett",
author_email="damon@mapbox.com",
url="https://github.com/mapbox/rio-rgbify",
license="BSD",
packages=find_packages(exclude=["ez_setup", "examples", "tests"]),
include_package_data=True,
zip_safe=False,
install_requires=inst_reqs,
extras_require=extra_reqs,
entry_points="""
[rasterio.rio_plugins]
rgbify=rio_rgbify.scripts.cli:rgbify
""")