Debian Codegraph @

debian/patches/tox-envpython

raw
1 From: Stefano Rivera <[email protected]>
2 Date: Sat, 5 Apr 2025 18:50:16 -0400
3 Subject: Run tox commands via envpython
4
5 Otherwise we need to list the commands in allowlist_externals, with our
6 system virtualenv tox approach.
7
8 Forwarded: not-needed
9 ---
10 pyproject.toml | 4 ++--
11 1 file changed, 2 insertions(+), 2 deletions(-)
12
13 diff --git a/pyproject.toml b/pyproject.toml
14 index 752a91e..13c1043 100644
15 --- a/pyproject.toml
16 +++ b/pyproject.toml
17 @@ -127,7 +127,7 @@ requires = ["tox >= 4.22"]
18 [tool.tox.env_run_base]
19 depends = ["lint"]
20 package = "wheel"
21 -commands = [["pytest", { replace = "posargs", extend = true }]]
22 +commands = [["{envpython}", "-m", "pytest", { replace = "posargs", extend = true }]]
23 dependency_groups = ["test"]
24 set_env = { PYTHONWARNDEFAULTENCODING = "1" }
25
26 @@ -135,4 +135,4 @@ set_env = { PYTHONWARNDEFAULTENCODING = "1" }
27 depends = []
28 deps = ["pre-commit"]
29 package = "skip"
30 -commands = [["pre-commit", "run", "-a"]]
31 +commands = [["{envpython}", "-m", "pre_commit", "run", "-a"]]