forked from PyVRP/PyVRP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
180 lines (146 loc) · 3.82 KB
/
pyproject.toml
File metadata and controls
180 lines (146 loc) · 3.82 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
[project]
name = "pyvrp"
version = "0.12.0a0"
description = "A state-of-the-art vehicle routing problem solver."
authors = [
{ name = "Niels Wouda", email = "nielswouda@gmail.com" },
{ name = "Leon Lan", email = "leon.lanyidong@gmail.com" },
{ name = "Wouter Kool", email = "wouter.kool@ortec.com" },
]
license = "MIT"
license-files = ["LICENSE.md"]
readme = "README.md"
keywords = [
"vehicle routing problem",
"hybrid genetic search",
"metaheuristic",
]
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Development Status :: 5 - Production/Stable",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">=3.10"
dependencies = [
"numpy>=1.15.2; python_version < '3.12'",
"numpy>=1.26.0; python_version >= '3.12'",
"matplotlib>=2.2.0",
"vrplib>=1.4.0",
"tqdm>=4.64.1",
"tomli>=2.0.1",
]
[project.urls]
homepage = "https://pyvrp.org/"
documentation = "https://pyvrp.org/"
source = "https://github.com/PyVRP/PyVRP"
issues = "https://github.com/PyVRP/PyVRP/issues"
[project.scripts]
pyvrp = "pyvrp.cli:main"
[dependency-groups]
build = [
"meson>=1.0.0",
"ninja>=1.11.1",
"gcovr>=7.2",
"docblock>=0.1.6",
]
dev = [
"pre-commit>=2.20.0",
"pytest>=6.0.0",
"pytest-cov>=6.1.1",
"pytest-codspeed>=2.2.1",
"pytest-xdist>=3.6.1",
"pytest-sugar>=1.0.0",
"codecov",
]
docs = [
"sphinx>=7.3.0,<8.2.0",
"nbsphinx>=0.8.9",
"ipython>=8.6.0",
"numpydoc>=1.5.0",
"sphinx-immaterial>=0.11.12",
]
examples = [
"jupyter>=1.0.0",
"tabulate>=0.9.0",
]
[tool.uv]
default-groups = ["build", "dev"]
package = true
[tool.ruff]
line-length = 79
[tool.ruff.lint]
select = [
"E", "F", "I", "NPY", "PYI", "Q", "RET", "RSE", "RUF", "SLF", "SIM", "TC"
]
[tool.ruff.lint.isort]
case-sensitive = true
known-first-party = ["pyvrp", "tests"]
[tool.mypy]
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = [
"--cov",
"--cov-report=xml",
"--cov-report=term",
"--numprocesses=auto",
]
testpaths = "tests"
[tool.coverage.run]
omit = [
"buildtools/*.py", # build scripts
"pyvrp/show_versions.py", # only prints debug information
"pyvrp/cli.py", # tested in other ways than unit tests
".venv/*",
"benchmarks/*",
"docs/*",
"tests/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"@abstract",
"if TYPE_CHECKING:",
]
[tool.cibuildwheel]
# We do not support old Python versions and somewhat uncommon platforms. For
# musllinux-based builds we assume users can compile the thing themselves.
build = "cp310-* cp311-* cp312-* cp313-*"
skip = "pp* *_ppc64le *_i686 *_s390x *-win32 *-musllinux*"
build-frontend = "build"
test-requires = [
"pytest>=6.0.0",
"pytest-cov>=6.1.1",
"pytest-xdist>=3.6.1",
"pytest-sugar>=1.0.0",
]
test-command = "pytest {package}/tests"
[tool.poetry]
include = [
{ path = "benchmarks/", format = "sdist" },
{ path = "docs/", format = "sdist" },
{ path = "tests/", format = "sdist" },
{ path = "meson.build", format = "sdist" },
{ path = "buildtools/*.py", format = "sdist" },
{ path = "subprojects/*.wrap", format = "sdist" },
{ path = "pyvrp/**/*.so", format = "wheel" },
{ path = "pyvrp/**/*.pyd", format = "wheel" },
]
exclude = [
"docs/build",
]
packages = [
{ include = "pyvrp" },
]
[tool.poetry.build]
generate-setup-file = false
script = "buildtools/build_wrapper.py"
[build-system]
requires = ["poetry-core>=1.0.0", "meson", "ninja", "docblock"]
build-backend = "poetry.core.masonry.api"