Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@ build:
os: ubuntu-24.04
tools:
python: "3.10"
jobs:
install:
- pip install --group docs

sphinx:
configuration: docs/conf.py

python:
install:
- requirements: requirements_dev.txt
- method: pip
path: .
3 changes: 3 additions & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Change log
Pending
-------

* Replaced ``requirements_dev.txt`` file for ``pyproject.toml`` support with
dependency groups.

6.2.0 (2026-01-20)
------------------

Expand Down
4 changes: 2 additions & 2 deletions docs/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ you'll have to deactivate it for this repository::
Once you've obtained a checkout, you should create a virtualenv_ and install
the libraries required for working on the Debug Toolbar::

$ python -m pip install -r requirements_dev.txt
$ python -m pip install --group dev --group docs

.. _virtualenv: https://virtualenv.pypa.io/

Expand Down Expand Up @@ -267,7 +267,7 @@ activated and all dependencies are installed:

.. code-block:: bash

pip install -r requirements_dev.txt
pip install --group dev --group docs

Alternatively, you can build the documentation using Tox, which automatically
handles dependencies and environment setup:
Expand Down
2 changes: 1 addition & 1 deletion example/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ How to
The example project requires a working installation of Django and a few other
packages::

$ python -m pip install -r requirements_dev.txt
$ python -m pip install --group dev

The following command must run from the root directory of Django Debug Toolbar,
i.e. the directory that contains ``example/``::
Expand Down
26 changes: 26 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,32 @@ urls.Homepage = "https://github.com/django-commons/django-debug-toolbar"
urls.Issues = "https://github.com/django-commons/django-debug-toolbar/issues"
urls.Source = "https://github.com/django-commons/django-debug-toolbar"

[dependency-groups]
dev = [
"black",
"coverage[toml]",
"daphne", # async in Example app
"django",
"django-csp", # Used in tests/test_csp_rendering

"django-template-partials",
"html5lib",
"jinja2",
"pre-commit",
"pygments",

"selenium",
"sqlparse",
"tox",
"whitenoise", # To avoid dealing with static files

]
docs = [
"sphinx",
"sphinx-rtd-theme>1",
"sphinxcontrib-spelling",
]

[tool.hatch.build.targets.wheel]
packages = [
"debug_toolbar",
Expand Down
33 changes: 0 additions & 33 deletions requirements_dev.txt

This file was deleted.

16 changes: 4 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@ deps =
postgis: psycopg2-binary
postgis3: psycopg[binary]
mysql: mysqlclient
coverage[toml]
Jinja2
html5lib
pygments
selenium>=4.8.0
sqlparse
django-csp
django-template-partials
passenv=
CI
COVERAGE_ARGS
Expand All @@ -51,6 +43,8 @@ setenv =
DJANGO_SETTINGS_MODULE = tests.settings
allowlist_externals = make
pip_pre = True
dependency_groups =
dev
commands = python -b -W always -m coverage run -m django test -v2 {posargs:tests}


Expand Down Expand Up @@ -84,10 +78,8 @@ setenv =

[testenv:docs]
commands = make -C {toxinidir}/docs {posargs:spelling}
deps =
Sphinx
sphinxcontrib-spelling
sphinx-rtd-theme
dependency_groups =
docs

[testenv:packaging]
commands =
Expand Down
Loading