1
1
[tox]
2
2
requires =
3
3
setuptools>=65.3
4
- tox>=4.11.3
5
- tox-uv>=1.16
4
+ tox>=4.25
5
+ tox-extra>=2.1
6
+ tox-uv>=1.25
6
7
env_list =
7
8
py
8
9
deps
9
10
docs
10
11
lint
11
- milestone
12
+ devel
12
13
pkg
13
14
skip_missing_interpreters = true
14
15
15
16
[testenv]
16
- description = Run pytest under {basepython}
17
+ description = Run pytest
18
+ devel: with development dependencies
17
19
package = editable
20
+ deps =
21
+ devel: ansible-core@ git+https://github.com/ansible/ansible.git
18
22
extras =
19
23
test
20
24
pass_env =
@@ -29,14 +33,16 @@ pass_env =
29
33
TERM
30
34
USER
31
35
set_env =
32
- !milestone: PIP_CONSTRAINT = {toxinidir}/.config/constraints.txt
33
- !milestone: UV_CONSTRAINT = {toxinidir}/.config/constraints.txt
34
36
COVERAGE_COMBINED = {envdir}/.coverage
35
- COVERAGE_FILE = {env:COVERAGE_FILE:{envdir }/.coverage.{envname}}
37
+ COVERAGE_FILE = {env:COVERAGE_FILE:{env_dir }/.coverage.{envname}}
36
38
COVERAGE_PROCESS_START = {toxinidir}/pyproject.toml
37
39
FORCE_COLOR = 1
40
+ PIP_CONSTRAINT = {toxinidir}/.config/constraints.txt
38
41
PRE_COMMIT_COLOR = always
39
42
TERM = xterm-256color
43
+ UV_CONSTRAINT = {toxinidir}/.config/constraints.txt
44
+ deps, devel: PIP_CONSTRAINT = /dev/null
45
+ deps, devel: UV_CONSTRAINT = /dev/null
40
46
commands_pre =
41
47
sh -c " rm -f {envdir}/.coverage* 2>/dev/null || true"
42
48
commands =
@@ -91,15 +97,6 @@ set_env =
91
97
commands =
92
98
pre-commit run --show-diff-on-failure --all-files
93
99
94
- [testenv:milestone]
95
- description =
96
- Run tests with ansible-core milestone branch and without dependencies constraints
97
- deps =
98
- ansible-core@ https://github.com/ansible/ansible/archive/milestone.tar.gz
99
- set_env =
100
- {[testenv]set_env}
101
- PIP_CONSTRAINT = /dev/null
102
-
103
100
[testenv:pkg]
104
101
description =
105
102
Do packaging/distribution
0 commit comments