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'
- name: Install dependencies
run: pip install -e .[testing]
run: pip install -e .[documentation]
# Start mkdocs server and wait for it to be ready
- run: mkdocs serve &

View File

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

21
tox.ini
View File

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