forked from mapbox/rio-mbtiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
49 lines (44 loc) · 1.36 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
from codecs import open as codecs_open
from setuptools import setup, find_packages
# Parse the version from the mbtiles module.
with open('mbtiles/__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
# Get the long description from the relevant file
with codecs_open('README.rst', encoding='utf-8') as f:
long_description = f.read()
setup(
name="rio-mbtiles",
version=version,
description=u"A Rasterio plugin command that exports MBTiles",
long_description=long_description,
classifiers=[],
keywords="",
author=u"Sean Gillies",
author_email="sean@mapbox.com",
url="https://github.com/mapbox/rio-mbtiles",
license="MIT",
packages=find_packages(exclude=["ez_setup", "examples", "tests"]),
include_package_data=True,
zip_safe=False,
python_requires=">=2.7.10",
install_requires=[
"click",
"cligj>=0.5",
"mercantile",
"numpy>=1.10",
"rasterio~=1.0",
"shapely>=1.7.0",
"supermercado",
"tqdm~=4.0",
],
extras_require={"test": ["coveralls", "pytest", "pytest-cov"]},
entry_points="""
[rasterio.rio_plugins]
mbtiles=mbtiles.scripts.cli:mbtiles
"""
)