Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
77 lines (69 loc) · 2.52 KB
/
Copy pathsetup.py
File metadata and controls
77 lines (69 loc) · 2.52 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import re
from pathlib import Path
from setuptools import setup, find_packages
HERE = Path(__file__).parent
with open("README.md", "r", encoding="utf-8") as f:
long_description = f.read()
def read_version():
"""Read __version__ from the package, the one place it's defined.
Parsed rather than imported so building doesn't need the dependencies
installed, and so there's no second copy of the number to drift.
"""
source = (HERE / "flight_tracer" / "__init__.py").read_text(encoding="utf-8")
match = re.search(r'^__version__ = ["\']([^"\']+)["\']', source, re.MULTILINE)
if not match:
raise RuntimeError("Could not find __version__ in flight_tracer/__init__.py")
return match.group(1)
setup(
name="flight-tracer",
version=read_version(),
author="Matt Stiles",
author_email="mattstiles@gmail.com",
description="Turn an N-number, ICAO hex or ADS-B Exchange URL into a mapped, summarized flight trace in one command",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/stiles/flight-tracer",
packages=find_packages(include=["flight_tracer", "flight_tracer.*"]),
# Inter is bundled so charts render identically everywhere. The fonts
# keep their own license (SIL OFL 1.1), which must ship alongside them.
package_data={"flight_tracer": ["fonts/*.ttf", "fonts/OFL.txt"]},
include_package_data=True,
install_requires=[
"requests",
"pandas",
"geopandas",
"boto3",
"matplotlib",
"contextily",
"mercantile",
"xyzservices",
"shapely",
"click",
"pytz",
# tomllib is in the standard library from 3.11.
"tomli>=1.1; python_version < '3.11'",
],
extras_require={
"faa": ["hangarbay"],
"tz": ["timezonefinder"],
},
classifiers=[
"Programming Language :: Python :: 3",
"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",
"License :: Public Domain",
"Operating System :: OS Independent",
],
license="CC0-1.0",
# geopandas and contextily's current releases don't support anything
# older; >=3.7 hadn't been true for a while.
python_requires=">=3.10",
entry_points={
"console_scripts": [
"flight-tracer=flight_tracer.cli:cli",
],
},
)