Skip to content

Commit 5dfbebb

Browse files
authored
Respect uv.lock in tox envs (#206)
same as marshmallow-code/marshmallow#2983
1 parent c72748d commit 5dfbebb

3 files changed

Lines changed: 29 additions & 10 deletions

File tree

‎pyproject.toml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,13 @@ tests = [
3131
"bottle>=0.12.25",
3232
"aiohttp>=3.9.3",
3333
]
34-
dev = [{ include-group = "tests" }, "tox", "tox-uv", "pre-commit>=3.5,<5.0"]
34+
lint = ["pre-commit>=3.5,<5.0"]
35+
dev = [
36+
{ include-group = "tests" },
37+
{ include-group = "lint" },
38+
"tox",
39+
"tox-uv",
40+
]
3541

3642
[tool.uv]
3743
default-groups = ["dev"]

‎tox.ini‎

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,38 @@
11
[tox]
2+
requires = tox-uv
23
envlist=
34
lint
45
py{310,311,312,313,314}
56
py314-apispecdev
67
py310-lowest
78

89
[testenv]
10+
runner = uv-venv-lock-runner
911
dependency_groups = tests
10-
deps =
11-
apispecdev: https://github.com/marshmallow-code/apispec/archive/dev.tar.gz
12-
lowest: aiohttp==3.9.3
13-
lowest: flask==2.3.3
14-
lowest: tornado==6.0.0
15-
lowest: bottle==0.12.25
16-
lowest: apispec[yaml]==6.0.0
1712
commands = pytest {posargs}
1813

14+
[testenv:py314-apispecdev]
15+
runner = uv-venv-runner
16+
deps = https://github.com/marshmallow-code/apispec/archive/dev.tar.gz
17+
18+
[testenv:py310-lowest]
19+
runner = uv-venv-runner
20+
deps =
21+
aiohttp==3.9.3
22+
flask==2.3.3
23+
tornado==6.0.0
24+
bottle==0.12.25
25+
apispec[yaml]==6.0.0
26+
1927
[testenv:lint]
20-
deps = pre-commit>=3.5,<5.0
28+
dependency_groups = lint
2129
skip_install = true
2230
commands = pre-commit run --all-files
2331

2432
; Below tasks are for development only (not run in CI)
2533

2634
[testenv:watch-readme]
35+
runner = uv-venv-runner
2736
deps = restview
2837
skip_install = true
2938
commands = restview README.rst

‎uv.lock‎

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)