-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
58 lines (52 loc) · 1.89 KB
/
setup.py
File metadata and controls
58 lines (52 loc) · 1.89 KB
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
52
53
54
55
56
57
58
"""
Setup script for fastmm (Fast Map Matching) Python package.
This package requires building C++ extensions via CMake.
"""
from pathlib import Path
from setuptools import find_packages, setup
# Read version
version_file = Path(__file__).parent / "python" / "fastmm" / "_version.py"
if version_file.exists():
exec(version_file.read_text())
__version__ = locals().get("version", "0.1.0")
else:
__version__ = "0.1.0"
# Read README
readme_file = Path(__file__).parent / "README.md"
long_description = readme_file.read_text() if readme_file.exists() else ""
setup(
name="fastmm",
version=__version__,
description="Fast Map Matching - High-performance map matching library",
long_description=long_description,
long_description_content_type="text/markdown",
author="kodonnell",
url="https://github.com/kodonnell/fastmm",
license="MIT",
packages=find_packages(where="python"),
package_dir={"": "python"},
# C++ extension is built by CMake and installed separately
# This setup.py is for the Python wrapper code
python_requires=">=3.8",
# Optional dependencies for the MapMatcher helper
extras_require={
"matcher": [],
"dev": ["pytest", "ruff"],
},
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: C++",
"Topic :: Scientific/Engineering :: GIS",
],
)