mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-12-15 06:04:00 +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'
|
||||
|
||||
- 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 &
|
||||
|
|
|
|||
18
tox.ini
18
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user