Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
101 lines (88 loc) · 2.94 KB
/
Copy pathpyproject.toml
File metadata and controls
101 lines (88 loc) · 2.94 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
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=77.0"]
[project]
name = "ijson"
license = "BSD-3-Clause AND ISC"
description = "Iterative JSON parser with standard Python iterator interfaces"
readme = "README.rst"
authors = [
{ name = "Rodrigo Tobar", email = "rtobar@icrar.org" },
{ name = "Ivan Sagalaev", email = "maniac@softwaremaniacs.org" },
]
classifiers = [
'Development Status :: 5 - Production/Stable',
'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 :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries :: Python Modules',
]
requires-python = ">=3.10"
dynamic = ["version"]
[project.urls]
"Homepage" = "https://github.com/ICRAR/ijson"
[tool.setuptools.dynamic]
version = { attr = "ijson.version.__version__" }
[tool.setuptools.exclude-package-data]
"ijson.backends.ext._yajl2" = ["*.c", "*.h"]
[tool.tox]
requires = ["tox>=4.23"]
env_list = [
"py310",
"py311",
"py312",
"py313",
"py313t",
"py314",
"py314t",
"py315",
"py315t",
]
[tool.tox.env_run_base]
description = "Run unit tests with {base_python}"
labels = ["test"]
# YAJL_DLL can be used to manually point to a yajl installation
passenv = ["YAJL_DLL"]
commands = [["pytest", "-v"]]
deps = ["-r test-requirements.txt"]
[tool.tox.env.memleaks]
description = "Run memory leak tests"
labels = ["memleaks"]
commands = [["pytest", "-v", "--memleaks-only"]]
[tool.tox.env.benchmark]
description = "Run benchmark"
labels = ["benchmark"]
commands = [["{env_python}", "-m", "ijson.benchmark", { replace = "posargs", extend = true }]]
passenv = ["IJSON_BACKEND"]
parallel_show_output = true
[tool.tox.env.readme]
description = "Converts README.rst to HTML"
commands = [['rst2html5', "--strict", "README.rst", "--output=readme.html"]]
deps = ["docutils", "Pygments"]
[tool.cibuildwheel]
before-all = "bash -c 'cd \"{project}\"; sh .github/tools/install_yajl.sh'"
# uv-created venvs don't ship pip
before-test = "uv pip install -r test-requirements.txt"
build-frontend = "build[uv]"
build-verbosity = 1
enable = [
"pypy",
]
# Our C extension made PyPy < 7.3.13 crash (a bug on their end)
# it doesn't make sense to build wheels for platforms not supported by that version
skip = "pp39*"
test-command = "pytest -vv {project}/tests"
[tool.cibuildwheel.macos.environment]
IJSON_EMBED_YAJL = "1"
[tool.cibuildwheel.windows.environment]
IJSON_EMBED_YAJL = "1"
# Let riscv64 builds fall back to the RISE package index for binary
# wheels that aren't on PyPI yet
[[tool.cibuildwheel.overrides]]
select = "*linux_riscv64"
environment = { UV_EXTRA_INDEX_URL = "https://pypi.riseproject.dev/simple/", UV_INDEX_STRATEGY = "unsafe-best-match" }