mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-12-16 06:34:01 +03:00
Update installation commands for dependency groups in tox.ini and main.yml
This commit is contained in:
parent
1c989dfbca
commit
b05db8b8ba
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
|
@ -60,7 +60,7 @@ jobs:
|
||||||
python-version: '3.13'
|
python-version: '3.13'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pip install -e .[documentation]
|
run: pip install . --group docs
|
||||||
|
|
||||||
# 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 &
|
||||||
|
|
|
||||||
18
tox.ini
18
tox.ini
|
|
@ -15,6 +15,9 @@ envdir = {toxworkdir}/venvs/{envname}
|
||||||
setenv =
|
setenv =
|
||||||
PYTHONDONTWRITEBYTECODE=1
|
PYTHONDONTWRITEBYTECODE=1
|
||||||
PYTHONWARNINGS=once
|
PYTHONWARNINGS=once
|
||||||
|
dependency_groups =
|
||||||
|
test
|
||||||
|
optional
|
||||||
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
|
||||||
|
|
@ -22,23 +25,28 @@ deps =
|
||||||
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]
|
|
||||||
|
|
||||||
[testenv:base]
|
[testenv:base]
|
||||||
; Ensure optional dependencies are not required
|
; Ensure optional dependencies are not required
|
||||||
|
dependency_groups =
|
||||||
|
test
|
||||||
deps =
|
deps =
|
||||||
.[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}
|
||||||
|
dependency_groups =
|
||||||
|
test
|
||||||
|
optional
|
||||||
deps =
|
deps =
|
||||||
.[testing,optional]
|
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
skip_install = true
|
skip_install = true
|
||||||
commands = mkdocs build
|
commands =
|
||||||
|
mkdocs build
|
||||||
|
dependency_groups =
|
||||||
|
test
|
||||||
|
docs
|
||||||
deps =
|
deps =
|
||||||
.[testing,documentation]
|
|
||||||
|
|
||||||
[testenv:py312-djangomain]
|
[testenv:py312-djangomain]
|
||||||
ignore_outcome = true
|
ignore_outcome = true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user