-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
114 lines (104 loc) · 2.54 KB
/
pyproject.toml
File metadata and controls
114 lines (104 loc) · 2.54 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling", "uv-dynamic-versioning"]
[project]
dynamic = ["version"]
name = "transport-data"
description = "Tools for the Transport Data Commons"
authors = [{ name = "Transport Data Commons Initiative (TDCI)" }]
maintainers = [
{ name = "Paul Natsuo Kishimoto", email = "mail@paul.kishimoto.name" },
]
classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python",
"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",
]
readme = "README.rst"
requires-python = ">=3.10"
dependencies = [
"ckanapi",
"click",
"docutils",
"dsss[git-store] >= 1.3.0",
"Jinja2",
"keyring",
"openpyxl",
"packaging",
"pandas",
"platformdirs",
"pluggy",
"pooch",
"prompt-toolkit",
"pycountry",
"requests",
"sdmx1 >= 2.9",
"tqdm",
]
[project.optional-dependencies]
docs = [
"furo",
"Sphinx",
"sphinx-autorun",
'keyrings.alt; sys_platform=="linux"',
]
google = ["google-api-python-client", "google-auth-httplib2", "google-auth-oauthlib"]
keyring = ["keyring"]
tests = [
'keyrings.alt; sys_platform=="linux"',
"pytest",
"pytest-cov",
"pytest-rerunfailures",
"pytest-timeout",
"pytest-xdist",
"responses",
"transport-data[keyring,google,qr]",
]
qr = ["qrcode[pil]"]
[project.urls]
Documentation = "https://docs.transport-data.org"
Changelog = "https://docs.transport-data.org/en/stable/whatsnew.html"
Repository = "https://github.com/transport-data/tools"
Issues = "https://github.com/transport-data/tools/issues"
[project.scripts]
tdc = "transport_data.cli:main"
[tool.coverage.report]
exclude_also = [
# Imports only used by type checkers
"if TYPE_CHECKING:",
# Abstract methods
'\.\.\.',
"raise NotImplementedError",
]
[tool.hatch]
version.source = "uv-dynamic-versioning"
[tool.mypy]
files = ["doc", "transport_data"]
[[tool.mypy.overrides]]
module = [
"ckanapi.*",
"google_auth_oauthlib.*",
"google.*",
"googleapiclient.*",
"pooch.*",
"pycountry.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = """
-m "not network"
--cov=transport_data --cov-report="""
markers = [
"network: tests that perform network requests",
"ckan_dev: tests that access the TDC dev CKAN instance",
]
usefixtures = "tmp_store"
[tool.ruff.lint]
select = ["C9", "E", "F", "I", "W"]
ignore = ["E501", "W191"]
mccabe.max-complexity = 10