|
| 1 | +"""Setup for rio-tiler-mvt.""" |
| 2 | + |
| 3 | +from setuptools.extension import Extension |
| 4 | +from setuptools import setup, find_packages |
| 5 | +from Cython.Build import cythonize |
| 6 | + |
| 7 | +import numpy |
| 8 | + |
| 9 | +# Runtime requirements. |
| 10 | +inst_reqs = ["numpy", "vtzero"] |
| 11 | + |
| 12 | +vt = "vector-tile-base @ git+https://github.com/mapbox/vector-tile-base" |
| 13 | +extra_reqs = { |
| 14 | + "test": [vt, "rio-tiler", "pytest", "pytest-cov"], |
| 15 | + "dev": [vt, "rio-tiler", "pytest", "pytest-cov", "pre-commit"], |
| 16 | +} |
| 17 | + |
| 18 | +ext_options = {"include_dirs": [numpy.get_include()]} |
| 19 | +ext_modules = cythonize( |
| 20 | + [ |
| 21 | + Extension( |
| 22 | + "rio_tiler_mvt.mvt", |
| 23 | + ["rio_tiler_mvt/mvt.pyx"], |
| 24 | + **ext_options |
| 25 | + ) |
| 26 | + ] |
| 27 | +) |
| 28 | + |
| 29 | +setup( |
| 30 | + name="rio-tiler-mvt", |
| 31 | + version="0.0.1b", |
| 32 | + description=u"""A rio-tiler plugin to encode tile array to MVT""", |
| 33 | + python_requires=">=3", |
| 34 | + classifiers=[ |
| 35 | + "Intended Audience :: Information Technology", |
| 36 | + "Intended Audience :: Science/Research", |
| 37 | + "License :: OSI Approved :: BSD License", |
| 38 | + "Programming Language :: Python :: 3.6", |
| 39 | + "Topic :: Scientific/Engineering :: GIS", |
| 40 | + ], |
| 41 | + keywords="COG MVT mapbox vectortile GIS", |
| 42 | + author=u"Vincent Sarago", |
| 43 | + |
| 44 | + url="https://github.com/cogeotiff/rio-tiler-mvt", |
| 45 | + license="BSD", |
| 46 | + packages=find_packages(exclude=["ez_setup", "examples", "tests"]), |
| 47 | + include_package_data=True, |
| 48 | + zip_safe=False, |
| 49 | + install_requires=inst_reqs, |
| 50 | + extras_require=extra_reqs, |
| 51 | + ext_modules=ext_modules, |
| 52 | +) |
0 commit comments