Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
67 lines (59 loc) · 1.5 KB
/
Copy pathpyproject.toml
File metadata and controls
67 lines (59 loc) · 1.5 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
[build-system]
requires = ["maturin>=1.9,<2"]
build-backend = "maturin"
[project]
name = "msgspec-toon"
version = "0.3.0b5"
description = "A native TOON 4.1 codec with direct msgspec.Struct decoding"
requires-python = ">=3.13"
dependencies = ["msgspec==0.21.1"]
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
"Programming Language :: Rust",
"Typing :: Typed",
]
[dependency-groups]
bench = [
"python-toon==0.1.3",
"tiktoken>=0.13.0",
"toons>=0.7.0",
]
dev = [
"maturin>=1.9,<2",
"pytest>=8.4",
"pytest-benchmark>=5.1",
"ruff>=0.12",
"mypy>=1.17",
"pyyaml>=6.0,<7",
]
[tool.uv]
# Supply-chain cooldown: every resolution refuses artifacts uploaded within
# the last 14 days. Per-package CVE escape hatch: exclude-newer-package
# (e.g. { somepkg = "0 days" }) with the justification in the commit.
exclude-newer = "14 days"
default-groups = ["dev"]
[tool.maturin]
python-source = "python"
module-name = "msgspec_toon._native"
bindings = "pyo3"
features = ["extension-module"]
strip = true
[tool.pytest.ini_options]
addopts = "-ra --strict-config --strict-markers"
testpaths = ["tests"]
[tool.ruff]
target-version = "py313"
line-length = 100
[tool.mypy]
python_version = "3.13"
strict = true
files = ["python/msgspec_toon"]
[[tool.mypy.overrides]]
module = "msgspec_toon._native"
ignore_missing_imports = true