Skip to content

Commit b883295

Browse files
committed
updated tox.ini
1 parent fff5e24 commit b883295

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
python-version: '3.13'
6161

6262
- name: Install dependencies
63-
run: pip install -e .[testing]
63+
run: pip install -e .[documentation]
6464

6565
# Start mkdocs server and wait for it to be ready
6666
- run: mkdocs serve &

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ optional-dependencies.testing = [
7272
"pytest>=7.0.1,<8",
7373
"pytest-cov>=4,<5",
7474
"pytest-django>=4.5.2,<5",
75+
76+
# Remove when dropping support for Django<5.0
7577
"pytz",
7678
]
7779
urls.Changelog = "https://www.django-rest-framework.org/community/release-notes/"

tox.ini

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,29 @@ setenv =
1616
PYTHONDONTWRITEBYTECODE=1
1717
PYTHONWARNINGS=once
1818
deps =
19-
django42: Django>=4.2,<5.0
20-
django50: Django>=5.0,<5.1
21-
django51: Django>=5.1,<5.2
22-
django52: Django>=5.2,<6.0
23-
django60: Django>=6.0,<6.1
24-
djangomain: https://github.com/django/django/archive/main.tar.gz
25-
.[testing, optional]
19+
django42: Django>=4.2,<5.0
20+
django50: Django>=5.0,<5.1
21+
django51: Django>=5.1,<5.2
22+
django52: Django>=5.2,<6.0
23+
django60: Django>=6.0,<6.1
24+
djangomain: https://github.com/django/django/archive/main.tar.gz
25+
.[testing,optional]
2626

2727
[testenv:base]
2828
; Ensure optional dependencies are not required
2929
deps =
30-
.[testing]
30+
.[testing]
3131

3232
[testenv:dist]
3333
commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarning runtests.py --no-pkgroot --staticfiles {posargs}
3434
deps =
35-
.[testing, optional]
35+
.[testing,optional]
3636

3737
[testenv:docs]
3838
skip_install = true
3939
commands = mkdocs build
4040
deps =
41-
.[testing, optional]
42-
41+
.[testing,documentation]
4342

4443
[testenv:py312-djangomain]
4544
ignore_outcome = true

0 commit comments

Comments
 (0)