Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
95 lines (84 loc) · 2.92 KB
/
Copy pathpyproject.toml
File metadata and controls
95 lines (84 loc) · 2.92 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "themeparks"
version = "5.0.0"
description = "Official SDK for the ThemeParks.wiki API"
readme = "README.md"
requires-python = ">=3.9"
license = { text = "MIT" }
authors = [{ name = "ThemeParks.wiki contributors" }]
keywords = ["themeparks", "disney", "universal", "wait-times", "api"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"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",
"Typing :: Typed",
]
dependencies = [
"httpx>=0.27",
"pydantic>=2.6",
"typing-extensions>=4.10",
"eval-type-backport>=0.2; python_version < '3.10'",
]
[project.scripts]
# The archive backfill, as a command rather than a file to copy off GitHub.
# `pip install themeparks` then `themeparks-backfill "Disneyland Park"` is the
# whole path from nothing to a file of history.
themeparks-backfill = "themeparks.backfill:cli"
[project.urls]
Homepage = "https://api.themeparks.wiki"
Source = "https://github.com/ThemeParks/ThemeParks_Python"
Issues = "https://github.com/ThemeParks/ThemeParks_Python/issues"
[project.optional-dependencies]
dev = [
"pytest>=8",
"pytest-asyncio>=0.23",
"pytest-recording>=0.13",
# Upper-bounded: an unpinned minor bump is what started reformatting
# Markdown code blocks and turned CI red on unrelated PRs.
"ruff>=0.4,<0.18",
"mypy>=1.10",
"datamodel-code-generator[http]>=0.25",
]
docs = [
"mkdocs>=1.5",
"mkdocs-material>=9.5",
"mkdocstrings[python]>=0.24",
]
[tool.hatch.build.targets.wheel]
packages = ["themeparks"]
[tool.hatch.build.targets.sdist]
include = ["themeparks", "README.md", "LICENSE", "CHANGELOG.md", "MIGRATION.md"]
[tool.pytest.ini_options]
testpaths = ["tests/unit"]
asyncio_mode = "auto"
[tool.ruff]
line-length = 100
target-version = "py39"
# Markdown is documentation, not source. Ruff 0.16 began formatting Python
# blocks inside it, which rewrites hand-written examples in README.md,
# MIGRATION.md and docs/ — CI has been failing `ruff format --check .` on
# those four files regardless of what any PR changes. Prose stays ours.
extend-exclude = ["*.md"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "B", "A", "SIM", "PL"]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["PLR2004", "F401", "A004"]
"themeparks/_errors.py" = ["A001", "UP045"]
"themeparks/_transport.py" = ["A004"]
"themeparks/__init__.py" = ["A004"]
# E501: field descriptions come from the upstream spec, so line length is not
# this repo's to choose. The PriceData.amount description is already over.
"themeparks/_generated/*.py" = ["N815", "F401", "E501"]
[tool.mypy]
python_version = "3.9"
strict = true
packages = ["themeparks"]