From b05db8b8ba7d3f0057f968927d3e8edaace82e4c Mon Sep 17 00:00:00 2001 From: Pravin Kamble Date: Mon, 8 Dec 2025 10:49:09 +0530 Subject: [PATCH] Update installation commands for dependency groups in tox.ini and main.yml --- .github/workflows/main.yml | 2 +- tox.ini | 18 +++++++++++++----- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9844fb761..0ecdf0a7a 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 .[documentation] + run: pip install . --group docs # Start mkdocs server and wait for it to be ready - run: mkdocs serve & diff --git a/tox.ini b/tox.ini index f194b3f9b..8c7d861ca 100644 --- a/tox.ini +++ b/tox.ini @@ -15,6 +15,9 @@ envdir = {toxworkdir}/venvs/{envname} setenv = PYTHONDONTWRITEBYTECODE=1 PYTHONWARNINGS=once +dependency_groups = + test + optional deps = django42: Django>=4.2,<5.0 django50: Django>=5.0,<5.1 @@ -22,23 +25,28 @@ deps = 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 +dependency_groups = + test deps = - .[testing] [testenv:dist] commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarning runtests.py --no-pkgroot --staticfiles {posargs} +dependency_groups = + test + optional deps = - .[testing,optional] [testenv:docs] skip_install = true -commands = mkdocs build +commands = + mkdocs build +dependency_groups = + test + docs deps = - .[testing,documentation] [testenv:py312-djangomain] ignore_outcome = true