From b883295d3796aa64ddb76c7cb19bf5bb14a21655 Mon Sep 17 00:00:00 2001 From: Pravin Kamble Date: Sun, 7 Dec 2025 19:36:53 +0530 Subject: [PATCH] updated tox.ini --- .github/workflows/main.yml | 2 +- pyproject.toml | 2 ++ tox.ini | 21 ++++++++++----------- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9262c38d4..9844fb761 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 & diff --git a/pyproject.toml b/pyproject.toml index aa4722f33..58802944b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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/" diff --git a/tox.ini b/tox.ini index 936527f16..f194b3f9b 100644 --- a/tox.ini +++ b/tox.ini @@ -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