django-rest-framework/tox.ini
Pravin edba7ad774
Removed requirements txt files from project. (#9842)
* removed requirements txt files

* Updated Testing section from Contributing.md

* updated command to install dependencies for documentation in CI

* updated tox.ini

* build: Adopt PEP 735 for development dependency management

* Update installation commands for dependency groups in tox.ini and main.yml

* update installation command in testing section of contributing docs

* Clean up old `requirements text files` references in workflows and docs

* Removed references to `requirements.txt` in GitHub Actions workflows.
* Updated `mkdocs-deploy.yml` and `main.yml` to install dependencies using `pyproject.toml`.
* Cleaned up documentation to remove mentions of the `requirements` folder.

* Fix invalid pyproject.toml

Project's URLs should be in the [project] table

* Keep full versions in package groups

* Specify all tox deps as dependency groups

---------

Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2025-12-23 02:23:10 +06:00

56 lines
1.3 KiB
INI

[tox]
envlist =
{py310}-{django42,django51,django52}
{py311}-{django42,django51,django52}
{py312}-{django42,django51,django52,django60,djangomain}
{py313}-{django51,django52,django60,djangomain}
{py314}-{django52,django60,djangomain}
base
dist
docs
[testenv]
commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarning runtests.py --coverage {posargs}
envdir = {toxworkdir}/venvs/{envname}
setenv =
PYTHONDONTWRITEBYTECODE=1
PYTHONWARNINGS=once
dependency_groups =
test
optional
django42: django42
django50: django50
django51: django51
django52: django52
django60: django60
djangomain: djangomain
[testenv:base]
; Ensure optional dependencies are not required
dependency_groups =
test
deps =
[testenv:dist]
commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarning runtests.py --no-pkgroot --staticfiles {posargs}
dependency_groups =
test
optional
[testenv:docs]
skip_install = true
commands =
mkdocs build
dependency_groups =
test
docs
[testenv:py312-djangomain]
ignore_outcome = true
[testenv:py313-djangomain]
ignore_outcome = true
[testenv:py314-djangomain]
ignore_outcome = true