-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathpyproject.toml
More file actions
160 lines (145 loc) · 4.26 KB
/
Copy pathpyproject.toml
File metadata and controls
160 lines (145 loc) · 4.26 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
[project]
name = "whenever"
authors = [
{name = "Arie Bovenberg", email = "a.c.bovenberg@gmail.com"},
]
maintainers = [
{name = "Arie Bovenberg", email = "a.c.bovenberg@gmail.com"},
]
readme = "README.md"
version = "0.10.2"
license = "MIT"
description = "Modern datetime library for Python"
requires-python = ">=3.10"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python :: Free Threading :: 2 - Beta",
"Programming Language :: Python",
"Programming Language :: Rust",
"Typing :: Typed",
]
dependencies = [
"tzdata>=2020.1; sys_platform == 'win32'",
"tzlocal>=4.0; sys_platform != 'darwin' and sys_platform != 'linux'",
]
keywords = [
"datetime", "typesafe", "rust", "date", "time", "timezone", "utc",
"zoneinfo", "tzdata", "tzdb"
]
[dependency-groups]
test = [
"pytest-benchmark[histogram]>=5.2.3,<6",
"pytest-cov>=7.1.0,<8",
"pytest-order>=1.4.0,<2",
"pytest>=9.0.3,<10",
"hypothesis>=6.152.7,<7",
]
typing = [
"mypy>=2.1.0,<2.3",
]
integrations = [
"time_machine>=3.2,<4; implementation_name == 'cpython'",
"tzdata>=2020.1",
"pydantic>=2.10,<3",
]
dev-extra = [
"ruff>=0.15,<0.16",
"slotscheck>=0.20,<0.21",
"build",
"packaging>=26.2",
"setuptools-rust",
"twine>=6.2.0",
]
benchmark = [
"arrow>=1.4,<2",
"matplotlib>=3.10,<4",
"pendulum>=3.2,<4",
"pyperf>=2.10,<3",
"python-dateutil>=2.9,<3",
"setuptools-rust",
]
docs = [
"furo>=2025.12.19,<2026",
"myst-parser>=5,<6",
"sphinx-copybutton~=0.5",
"sphinx-design>=0.7,<0.8",
"sphinx>=9,<10",
]
[tool.uv.dependency-groups]
benchmark = {requires-python = ">=3.14"}
docs = {requires-python = ">=3.13"}
[project.urls]
Documentation = "https://whenever.readthedocs.io"
Repository = "https://github.com/ariebovenberg/whenever"
Issues = "https://github.com/ariebovenberg/whenever/issues"
Changelog = "https://github.com/ariebovenberg/whenever/blob/main/CHANGELOG.md"
[tool.ruff]
line-length = 79
target-version = "py310"
exclude = ["pysrc/whenever/_typing_312.py"]
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "I"]
[tool.ruff.lint.per-file-ignores]
"_custom_pybuild/backend.py" = ["F403"]
"docs/conf.py" = ["E402"]
"pysrc/whenever/__init__.py" = ["F401", "F403", "F405"]
"pysrc/whenever/_core.py" = ["F401", "F403", "F405"]
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.ruff.format]
[tool.mypy]
warn_unused_ignores = true
strict = true
[[tool.mypy.overrides]]
module = [
"tests.*",
]
check_untyped_defs = true
disable_error_code = ["no-untyped-def"]
# ignore errors in extension module
[[tool.mypy.overrides]]
module = [
"whenever._whenever",
"_interpreters",
"tzdata",
"tzlocal",
"pydantic_core",
"pydantic",
]
ignore_missing_imports = true
[tool.setuptools.packages]
find = { where = ["pysrc"] }
# We essentially use three build systems:
# - We use maturin to build the binary distributions for different
# platforms in CI, since it is very convenient for this purpose.
# - We use setuptools for source distributions and editable installs.
# - The custom backend below runs `build_rust --inplace` during editable
# installs so `uv sync` can keep the Rust extension in the source tree.
# - To actually build the Rust extension with setuptools, we need
# setuptools_rust.
[tool.maturin]
python-source = "pysrc"
module-name = "whenever._whenever"
bindings = "pyo3-ffi"
[build-system]
requires = [
"setuptools",
"wheel",
]
# We need a custom backend to make editable installs build the Rust
# extension in place.
# Follows the approach from setuptools.pypa.io/en/latest/build_meta.html#dynamic-build-dependencies-and-other-build-meta-tweaks
build-backend = "backend"
backend-path = ["_custom_pybuild"]