-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathpyproject.toml
More file actions
115 lines (104 loc) · 3.96 KB
/
Copy pathpyproject.toml
File metadata and controls
115 lines (104 loc) · 3.96 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
[build-system]
requires = ["poetry-core>=2.4.1", "setuptools>=84.0.0", "Cython>=3.2.9"]
build-backend = "poetry.core.masonry.api"
[project]
name = "python-constraint2" # when set back to "python-constraint", don't forget to remove '2' in other places (e.g. README)
description = "python-constraint is a module for efficiently solving CSPs (Constraint Solving Problems) over finite domains."
version = "2.7.0" # adhere to PEP440 versioning: https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/#id55
authors = [
{name = "Floris-Jan Willemsen", email = "fjwillemsen97@gmail.com"},
{name = "Sébastien Celles", email = "s.celles@gmail.com"},
{name = "Gustavo Niemeyer", email = "gustavo@niemeyer.net"},
]
license = "BSD-2-Clause"
readme = "README.rst"
maintainers = [{name = "Floris-Jan Willemsen", email = "fjwillemsen97@gmail.com"}]
keywords = [
"CSP",
"constraint solving problems",
"problem solver",
"SMT",
"satisfiability modulo theory",
"SAT",
]
classifiers = [
"Environment :: Console",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"Natural Language :: English",
"Programming Language :: C",
"Programming Language :: Cython",
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
# ATTENTION: if anything is changed here, run `poetry update`
requires-python = ">= 3.11" # when changing the Python versions, also change the test versions in the Noxfile and GitHub Actions
[project.urls]
Homepage = "http://python-constraint.github.io/python-constraint/"
Repository = "https://github.com/python-constraint/python-constraint"
Documentation = "http://python-constraint.github.io/python-constraint/"
Issues = "https://github.com/python-constraint/python-constraint/issues"
Changelog = "https://github.com/python-constraint/python-constraint/blob/main/CHANGELOG.md"
[tool.poetry]
include = [{ path = "constraint/*.so", format = "wheel" }]
packages = [
{ include = "constraint", from = "." },
{ include = "tests", format = "sdist" }
]
[tool.poetry.build]
generate-setup-file = false
script = "cythonize_build.py"
# ATTENTION: if anything is changed here, run `poetry update` and `poetry export --with docs --without-hashes --format=requirements.txt > docs/requirements.txt`
[tool.poetry.group.docs]
optional = true
[tool.poetry.requires-plugins]
poetry-plugin-export = ">=1.10"
[tool.poetry.group.docs.dependencies]
sphinx = ">=8.0.0" # can be updated to >=9.*.* when Python 3.12 is dropped
sphinx-autodoc-typehints = ">=3.0.0"
sphinx_rtd_theme = "^3.0.2"
sphinx-pyproject = "^0.3.0"
# ATTENTION: if anything is changed here, run `poetry update`
[tool.poetry.group.dev.dependencies]
Cython = "^3.2.9"
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
pytest = "^9.1.1"
pytest-benchmark = "^5.2.3"
pytest-cov = "^7.1.0"
nox = "^2026.8.10"
ruff = "^0.16.3"
pep440 = "^0.1.2"
# development dependencies are unused for now, as this is already covered by test and docs
# # ATTENTION: if anything is changed here, run `poetry update`
# [tool.poetry.group.dev.dependencies]
[tool.black]
line-length = 120
[tool.ruff]
line-length = 120
src = ["constraint"]
respect-gitignore = true
exclude = ["docs", "examples", "tests"]
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes,
"D", # pydocstyle,
"UP", # pyupgrade
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pytest.ini_options]
minversion = "9.1.1"
pythonpath = [
"constraint",
] # necessary to get coverage reports without installing with `-e`
addopts = "--cov --cov-config=.coveragerc --cov-report xml --cov-report term-missing --cov-fail-under 80"
testpaths = ["tests"]