-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
48 lines (42 loc) · 1.33 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
"""python-vtzero setup."""
from Cython.Build import cythonize
from setuptools import setup
from setuptools.extension import Extension
with open("README.md") as f:
long_description = f.read()
ext_options = {
"include_dirs": ["./vendor/vtzero/include", "./vendor/protozero/include"],
"extra_compile_args": ["-O2", "-std=c++11"],
}
ext_modules = cythonize(
[Extension("vtzero.tile", ["vtzero/tile.pyx"], language="c++", **ext_options)]
)
extra_reqs = {
"test": ["pytest", "pytest-cov"],
}
setup(
name="vtzero",
description="Python wrapper for vtzero C++ library.",
long_description=long_description,
long_description_content_type="text/markdown",
classifiers=[
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Operating System :: POSIX",
"Environment :: Web Environment",
"Development Status :: 2 - Pre-Alpha",
"Topic :: Scientific/Engineering :: GIS",
],
keywords="mvt mapbox vector tile gis",
platforms=["POSIX"],
author="Yohan Boniface",
author_email="[email protected]",
license="MIT",
packages=["vtzero"],
ext_modules=ext_modules,
provides=["vtzero"],
include_package_data=True,
extras_require=extra_reqs,
python_requires=">=3.8",
)