Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
223 lines (199 loc) · 5.74 KB
/
Copy pathpyproject.toml
File metadata and controls
223 lines (199 loc) · 5.74 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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
[build-system]
requires = ["setuptools", "setuptools-rust>=1.11.1; python_implementation == 'CPython'"]
build-backend = "setuptools.build_meta"
[project]
name = "Logbook"
version = "1.10.1"
license = "BSD-3-Clause"
authors = [
{ name = "Armin Ronacher", email = "armin.ronacher@active-4.com" },
{ name = "Georg Brandl" },
]
description = "A logging replacement for Python"
readme = "README.md"
maintainers = [
{ name = "Frazer McLean", email = "frazer@frazermclean.co.uk" },
]
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"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",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Programming Language :: Python :: Free Threading :: 2 - Beta",
"Topic :: System :: Logging",
]
requires-python = ">=3.9"
dependencies = [
"typing-extensions>=4.14.0",
]
[project.urls]
Documentation = "https://logbook.readthedocs.io"
"Source Code" = "https://github.com/getlogbook/logbook"
Changelog = "https://logbook.readthedocs.io/en/latest/changelog.html"
[project.optional-dependencies]
all = ["Logbook[brotli,execnet,jinja,nteventlog,redis,sqlalchemy,zmq]"]
brotli = [
"brotli>=1.1.0; platform_python_implementation == 'CPython'",
"brotlicffi>=1.1.0.0; platform_python_implementation != 'CPython'",
]
compression = ["Logbook[brotli]"] # Deprecated: use brotli extra directly
execnet = ["execnet>=2.1"]
jinja = ["Jinja2>=2.11.3"]
nteventlog = [
"pywin32>=227; sys_platform == 'win32' and python_version=='3.9'",
"pywin32>=302; sys_platform == 'win32' and python_version=='3.10'",
"pywin32>=303; sys_platform == 'win32' and python_version=='3.11'",
"pywin32>=306; sys_platform == 'win32' and python_version=='3.12'",
"pywin32>=307; sys_platform == 'win32' and python_version=='3.13'",
"pywin32>=311; sys_platform == 'win32' and python_version=='3.14'",
"pywin32>=312; sys_platform == 'win32' and python_version>='3.15'",
]
redis = ["redis>=4.6.0"]
sqlalchemy = ["sqlalchemy>=1.4"]
zmq = [
"pyzmq>=27.0.2; python_version < '3.15'",
"pyzmq>=27.2.0; python_version >= '3.15'",
]
[dependency-groups]
benchmark = [
"pytest>=8.4.0",
"pytest-codspeed>=5.0.3",
"pytest-xdist[psutil]>=3.8.0",
]
check-sdist = [
"check-sdist>=1.2.0",
]
coverage = [
"coverage[toml]>=7.10.7",
]
dev = [
{ include-group = "check-sdist" },
{ include-group = "coverage" },
{ include-group = "nox" },
{ include-group = "test" },
{ include-group = "towncrier" },
"ruff==0.17.3",
]
docs = [
"furo>=2025.7.19",
"sphinx>=7.4.7",
"sphinxcontrib-towncrier>=0.5.0a0",
]
gevent = [
"gevent>=26.5.0",
]
nox = [
"nox>=2025.5.1",
]
test = [
"aiosmtpd>=1.4.6",
"kombu>=5.3.0",
"pytest>=8.4.0",
"pytest-env>=1.3.1; python_version >= '3.10'",
"pytest-rerunfailures>=15.1",
]
towncrier = [
"towncrier>=25.8.0",
]
[tool.setuptools]
package-dir = { "" = "src" }
[tool.setuptools.packages.find]
where = ["src"]
namespaces = false
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.pytest_env]
env_files = [".testenv"]
[tool.coverage.run]
branch = true
relative_files = true
source_pkgs = ["logbook"]
source_dirs = ["tests/"]
parallel = true
concurrency = ["thread"]
patch = ["_exit", "subprocess"]
[tool.coverage.paths]
crabwalk = [
"src/logbook",
"*.nox/*/lib*/python*/site-packages/logbook",
"*.nox\\*\\Lib\\site-packages\\logbook",
]
tests = [
"tests/",
"tests\\",
]
[tool.ruff.lint]
select = [
"E4", "E7", "E9", "F", # ruff defaults
"I", # isort
"UP", # pyupgrade
"B0", # flake8-bugbear
"RUF", # ruff-specific
"TID255", # lazy imports resolved at import time
]
ignore = [
"RUF012", # maybe once we have more type annotations
]
[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = ["logbook._fallback.FrozenSequence"]
[tool.cibuildwheel.macos]
archs = ["x86_64", "arm64"]
[[tool.cibuildwheel.overrides]]
select = "cp3{9,10,11}-macosx_x86_64"
environment.MACOSX_DEPLOYMENT_TARGET = "10.12"
[tool.cibuildwheel.linux]
manylinux-x86_64-image = "manylinux2014"
[tool.uv]
cache-keys = [
{ file = "pyproject.toml" },
{ file = "setup.py" },
{ file = "src/rust/**/*.rs" },
{ file = "src/logbook/**/*.py" },
{ file = "src/rust/Cargo.toml" },
{ file = "Cargo.toml" },
{ file = "Cargo.lock" },
{ env = "DISABLE_LOGBOOK_CEXT" },
{ env = "SETUPTOOLS_RUST_CARGO_PROFILE" },
{ env = "RUSTFLAGS" },
]
required-environments = [
"sys_platform == 'linux' and platform_machine == 'x86_64'",
"sys_platform == 'linux' and platform_machine == 'aarch64'",
"sys_platform == 'darwin' and platform_machine == 'x86_64'",
"sys_platform == 'darwin' and platform_machine == 'arm64'",
"sys_platform == 'win32' and platform_machine == 'x86'",
"sys_platform == 'win32' and platform_machine == 'AMD64'",
"sys_platform == 'win32' and platform_machine == 'ARM64'",
]
required-version = ">=0.8.19" # https://github.com/astral-sh/uv/pull/15921
[tool.towncrier]
directory = "newsfragments"
filename = "docs/changelog.rst"
template = "newsfragments/template.rst.jinja"
issue_format = "`#{issue} <https://github.com/getlogbook/logbook/issues/{issue}>`_"
title_format = ""
underlines = ["-", "~"]
[[tool.towncrier.type]]
name = "Added"
[[tool.towncrier.type]]
name = "Changed"
[[tool.towncrier.type]]
name = "Deprecated"
[[tool.towncrier.type]]
name = "Removed"
[[tool.towncrier.type]]
name = "Fixed"
[[tool.towncrier.type]]
name = "Security"
[tool.check-sdist]
git-only = [
".gitattributes",
".gitignore",
".readthedocs.yaml",
"newsfragments/*.rst",
"newsfragments/.gitignore",
]