Debian Codegraph @

pyproject.toml

raw
1 # --------------------------------------------------------------------------------------
2 # Copyright (c) 2013-2026, Nucleic Development Team.
3 #
4 # Distributed under the terms of the Modified BSD License.
5 #
6 # The full license is in the file LICENSE, distributed with this software.
7 # --------------------------------------------------------------------------------------
8
9 [project]
10 name = "kiwisolver"
11 description = "A fast implementation of the Cassowary constraint solver"
12 readme = "README.rst"
13 requires-python = ">=3.10"
14 license = { file = "LICENSE" }
15 authors = [{ name = "The Nucleic Development Team", email = "[email protected]" }]
16 maintainers = [{ name = "Matthieu C. Dartiailh", email = "[email protected]" }]
17 classifiers = [
18 "License :: OSI Approved :: BSD License",
19 "Programming Language :: Python",
20 "Programming Language :: Python :: 3",
21 "Programming Language :: Python :: 3.10",
22 "Programming Language :: Python :: 3.11",
23 "Programming Language :: Python :: 3.12",
24 "Programming Language :: Python :: 3.13",
25 "Programming Language :: Python :: 3.14",
26 "Programming Language :: Python :: 3.15",
27 "Programming Language :: Python :: Implementation :: CPython",
28 "Programming Language :: Python :: Implementation :: PyPy",
29 "Programming Language :: Python :: Implementation :: GraalPy",
30 ]
31 dynamic = ["version"]
32
33 [project.urls]
34 homepage = "https://github.com/nucleic/kiwi"
35 documentation = "https://kiwisolver.readthedocs.io/en/latest/"
36 repository = "https://github.com/nucleic/kiwi"
37 changelog = "https://github.com/nucleic/kiwi/blob/main/releasenotes.rst"
38
39 [build-system]
40 requires = [
41 "setuptools>=61.2; implementation_name == 'cpython'",
42 "setuptools>=61.2,<=72.1.0; implementation_name != 'cpython'",
43 "setuptools_scm[toml]>=3.4.3",
44 "cppy>=1.3.0"
45 ]
46 build-backend = "setuptools.build_meta"
47
48 [tool.setuptools]
49 include-package-data = false
50 package-data = { kiwisolver = ["py.typed", "*.pyi"] }
51
52 [tool.setuptools.packages.find]
53 where = ["py"]
54 include = ["kiwisolver"]
55
56 [tool.setuptools_scm]
57 write_to = "py/src/version.h"
58 write_to_template = """
59 /* ----------------------------------------------------------------------------
60 | Copyright (c) 2013-2026, Nucleic Development Team.
61 |
62 | Distributed under the terms of the Modified BSD License.
63 |
64 | The full license is in the file LICENSE, distributed with this software.
65 | ---------------------------------------------------------------------------*/
66 // This file is auto-generated by setuptools-scm do NOT edit it.
67
68 #pragma once
69
70 #define PY_KIWI_VERSION "{version}"
71
72 """
73
74 [tool.cibuildwheel]
75 test-requires = ["pytest"]
76 test-command = "python -m pytest {package}/py/tests -v"
77
78 [tool.cibuildwheel.ios]
79 xbuild-tools = []
80 test-sources = ["py/tests"]
81 test-command = "python -m pytest py/tests -vv"
82
83 [tool.ruff]
84 src = ["src"]
85 line-length = 88
86 [tool.ruff.lint]
87 select = ["C", "E", "F", "W", "I", "C90", "RUF"]
88 extend-ignore = ["E501", "RUF012"]
89
90 [tool.ruff.lint.isort]
91 combine-as-imports = true
92 known-first-party = ["kiwisolver"]
93
94 [tool.ruff.lint.mccabe]
95 max-complexity = 20
96
97 [tool.pytest.ini_options]
98 minversion = "6.0"
99
100 [tool.mypy]
101 follow_imports = "normal"
102 strict_optional = true