Skip to content

Commit a88bda6

Browse files
pyproject.toml: correctly define test envs for fuse testing
Looks like the toml config format of tox does not yet support an easier way for generative test environments.
1 parent 498d836 commit a88bda6

File tree

1 file changed

+48
-7
lines changed

1 file changed

+48
-7
lines changed

pyproject.toml

Lines changed: 48 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ ignore_missing_imports = true
160160

161161
[tool.tox]
162162
requires = ["tox>=4.19", "pkgconfig", "cython", "wheel", "setuptools_scm"]
163+
# Important: when adding/removing Python versions here,
164+
# also update the section "Test environments with different FUSE implementations" accordingly.
163165
env_list = ["py{310,311,312,313,314}-{none,fuse2,fuse3}", "docs", "ruff", "mypy", "bandit"]
164166

165167
[tool.tox.env_run_base]
@@ -171,17 +173,56 @@ pass_env = ["*"] # fakeroot -u needs some env vars
171173
[tool.tox.env_pkg_base]
172174
pass_env = ["*"] # needed by tox4, so env vars are visible for building borg
173175

174-
# Environment-specific configurations
175-
[tool.tox.env."py{310,311,312,313,314}-fuse2"]
176+
# Test environments with different FUSE implementations
177+
[tool.tox.env.py310-none]
178+
179+
[tool.tox.env.py310-fuse2]
176180
set_env = {BORG_FUSE_IMPL = "llfuse"}
177-
deps = ["-rrequirements.d/development.txt", "llfuse"]
181+
extras = ["llfuse"]
178182

179-
[tool.tox.env."py{310,311,312,313,314}-fuse3"]
183+
[tool.tox.env.py310-fuse3]
180184
set_env = {BORG_FUSE_IMPL = "pyfuse3"}
181-
deps = ["-rrequirements.d/development.txt", "pyfuse3"]
185+
extras = ["pyfuse3"]
182186

183-
[tool.tox.env."py{310,311,312,313,314}-none"]
184-
deps = ["-rrequirements.d/development.txt"]
187+
[tool.tox.env.py311-none]
188+
189+
[tool.tox.env.py311-fuse2]
190+
set_env = {BORG_FUSE_IMPL = "llfuse"}
191+
extras = ["llfuse"]
192+
193+
[tool.tox.env.py311-fuse3]
194+
set_env = {BORG_FUSE_IMPL = "pyfuse3"}
195+
extras = ["pyfuse3"]
196+
197+
[tool.tox.env.py312-none]
198+
199+
[tool.tox.env.py312-fuse2]
200+
set_env = {BORG_FUSE_IMPL = "llfuse"}
201+
extras = ["llfuse"]
202+
203+
[tool.tox.env.py312-fuse3]
204+
set_env = {BORG_FUSE_IMPL = "pyfuse3"}
205+
extras = ["pyfuse3"]
206+
207+
[tool.tox.env.py313-none]
208+
209+
[tool.tox.env.py313-fuse2]
210+
set_env = {BORG_FUSE_IMPL = "llfuse"}
211+
extras = ["llfuse"]
212+
213+
[tool.tox.env.py313-fuse3]
214+
set_env = {BORG_FUSE_IMPL = "pyfuse3"}
215+
extras = ["pyfuse3"]
216+
217+
[tool.tox.env.py314-none]
218+
219+
[tool.tox.env.py314-fuse2]
220+
set_env = {BORG_FUSE_IMPL = "llfuse"}
221+
extras = ["llfuse"]
222+
223+
[tool.tox.env.py314-fuse3]
224+
set_env = {BORG_FUSE_IMPL = "pyfuse3"}
225+
extras = ["pyfuse3"]
185226

186227
[tool.tox.env.ruff]
187228
skip_install = true

0 commit comments

Comments
 (0)