File tree Expand file tree Collapse file tree 3 files changed +28
-19
lines changed Expand file tree Collapse file tree 3 files changed +28
-19
lines changed Original file line number Diff line number Diff line change 50
50
- name : Install dependencies
51
51
run : |
52
52
python -m pip install --upgrade pip
53
- pip install tox==4.11.1
53
+ pip install tox==4.26.0
54
54
55
55
- name : Run tox
56
56
run : tox -e ${{ matrix.name }}
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ classifiers = [
40
40
dependencies = [
41
41
" pytest>=7.0.0" ,
42
42
]
43
- [project . optional-dependencies ]
43
+ [dependency-groups ]
44
44
docs = [
45
45
" sphinx" ,
46
46
" sphinx_rtd_theme" ,
@@ -49,6 +49,23 @@ testing = [
49
49
" Django" ,
50
50
" django-configurations>=2.0" ,
51
51
]
52
+ coverage = [
53
+ " coverage[toml]" ,
54
+ " coverage-enable-subprocess" ,
55
+ ]
56
+ postgres = [
57
+ " psycopg[binary]" ,
58
+ ]
59
+ mysql = [
60
+ " mysqlclient==2.1.0" ,
61
+ ]
62
+ xdist = [
63
+ " pytest-xdist" ,
64
+ ]
65
+ linting = [
66
+ " ruff==0.9.5" ,
67
+ " mypy==1.15.0" ,
68
+ ]
52
69
[project .urls ]
53
70
Documentation = " https://pytest-django.readthedocs.io/"
54
71
Repository = " https://github.com/pytest-dev/pytest-django"
Original file line number Diff line number Diff line change @@ -8,22 +8,19 @@ envlist =
8
8
linting
9
9
10
10
[testenv]
11
- extras = testing
11
+ dependency_groups =
12
+ testing
13
+ coverage: coverage
14
+ mysql: mysql
15
+ postgres: postgres
16
+ xdist: xdist
12
17
deps =
13
18
djmain: https://github.com/django/django/archive/main.tar.gz
14
19
dj52: Django>=5.2a1,<6.0
15
20
dj51: Django>=5.1,<5.2
16
21
dj50: Django>=5.0,<5.1
17
22
dj42: Django>=4.2,<4.3
18
-
19
- mysql: mysqlclient ==2.1.0
20
-
21
- postgres: psycopg[binary]
22
- coverage: coverage[toml]
23
- coverage: coverage-enable-subprocess
24
-
25
23
pytestmin: pytest>=7.0,<7.1
26
- xdist: pytest-xdist>=1.15
27
24
28
25
setenv =
29
26
mysql: DJANGO_SETTINGS_MODULE =pytest_django_test.settings_mysql
@@ -46,26 +43,21 @@ commands =
46
43
coverage: coverage xml
47
44
48
45
[testenv:linting]
49
- extras =
50
- deps =
51
- ruff ==0.9.5
52
- mypy ==1.15.0
46
+ dependency_groups = linting
53
47
commands =
54
48
ruff check --diff {posargs:pytest_django pytest_django_test tests}
55
49
ruff format --quiet --diff {posargs:pytest_django pytest_django_test tests}
56
50
mypy {posargs:pytest_django pytest_django_test tests}
57
51
58
52
[testenv:doc8]
59
- extras =
60
53
basepython = python3
61
54
skip_install = true
55
+ dependency_groups = docs
62
56
deps =
63
- sphinx
64
57
doc8
65
58
commands =
66
59
doc8 docs/
67
60
68
61
[testenv:docs]
69
- deps =
70
- extras = docs
62
+ dependency_groups = docs
71
63
commands = sphinx-build -n -W -b html -d docs/_build/doctrees docs docs/_build/html
You can’t perform that action at this time.
0 commit comments