updated tox.ini

This commit is contained in:
Pravin Kamble 2025-12-07 19:36:53 +05:30
parent fff5e24179
commit b883295d37
3 changed files with 13 additions and 12 deletions

View File

@ -60,7 +60,7 @@ jobs:
python-version: '3.13' python-version: '3.13'
- name: Install dependencies - name: Install dependencies
run: pip install -e .[testing] run: pip install -e .[documentation]
# Start mkdocs server and wait for it to be ready # Start mkdocs server and wait for it to be ready
- run: mkdocs serve & - run: mkdocs serve &

View File

@ -72,6 +72,8 @@ optional-dependencies.testing = [
"pytest>=7.0.1,<8", "pytest>=7.0.1,<8",
"pytest-cov>=4,<5", "pytest-cov>=4,<5",
"pytest-django>=4.5.2,<5", "pytest-django>=4.5.2,<5",
# Remove when dropping support for Django<5.0
"pytz", "pytz",
] ]
urls.Changelog = "https://www.django-rest-framework.org/community/release-notes/" urls.Changelog = "https://www.django-rest-framework.org/community/release-notes/"

21
tox.ini
View File

@ -16,30 +16,29 @@ setenv =
PYTHONDONTWRITEBYTECODE=1 PYTHONDONTWRITEBYTECODE=1
PYTHONWARNINGS=once PYTHONWARNINGS=once
deps = deps =
django42: Django>=4.2,<5.0 django42: Django>=4.2,<5.0
django50: Django>=5.0,<5.1 django50: Django>=5.0,<5.1
django51: Django>=5.1,<5.2 django51: Django>=5.1,<5.2
django52: Django>=5.2,<6.0 django52: Django>=5.2,<6.0
django60: Django>=6.0,<6.1 django60: Django>=6.0,<6.1
djangomain: https://github.com/django/django/archive/main.tar.gz djangomain: https://github.com/django/django/archive/main.tar.gz
.[testing, optional] .[testing,optional]
[testenv:base] [testenv:base]
; Ensure optional dependencies are not required ; Ensure optional dependencies are not required
deps = deps =
.[testing] .[testing]
[testenv:dist] [testenv:dist]
commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarning runtests.py --no-pkgroot --staticfiles {posargs} commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarning runtests.py --no-pkgroot --staticfiles {posargs}
deps = deps =
.[testing, optional] .[testing,optional]
[testenv:docs] [testenv:docs]
skip_install = true skip_install = true
commands = mkdocs build commands = mkdocs build
deps = deps =
.[testing, optional] .[testing,documentation]
[testenv:py312-djangomain] [testenv:py312-djangomain]
ignore_outcome = true ignore_outcome = true