-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.py
55 lines (48 loc) · 1.62 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
50
51
52
53
54
55
"""Setup."""
from pathlib import Path
from setuptools import find_packages, setup
THIS_DIRECTORY = Path(__file__).resolve().parent
VERSION = (THIS_DIRECTORY / "src" / "underground" / "version").read_text().strip()
INSTALL_REQUIRES = [
"requests==2.*",
"google~=2.0",
"gtfs-realtime-bindings==0.0.6",
"protobuf>=3.19.6,<=3.20.3",
"protobuf3-to-dict==0.1.*",
"click>=7,<9",
"pydantic==2.*",
"pytz>=2019.2",
]
DEV_REQUIRES = [
"pytest==7.*",
"ruff==0.7.* ",
"requests-mock==1.*",
]
# use readme as long description
LONG_DESCRIPTION = (THIS_DIRECTORY / "readme.md").read_text()
setup(
name="underground",
version=VERSION,
description="Utilities for NYC's realtime MTA data feeds.",
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
author="Nolan Conaway",
author_email="nolanbconaway@gmail.com",
url="https://github.com/nolanbconaway/underground",
classifiers=[
"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",
],
keywords=["nyc", "transit", "subway", "command-line", "cli"],
license="MIT",
package_dir={"": "src"},
packages=find_packages("src"),
install_requires=INSTALL_REQUIRES,
extras_require=dict(dev=DEV_REQUIRES),
entry_points={"console_scripts": ["underground = underground.cli.cli:entry_point"]},
package_data={"underground": ["version"]},
data_files=[("", ["readme.md"])], # add the readme
)