Skip to content
Open
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
8 changes: 2 additions & 6 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,8 @@ build:
os: ubuntu-24.04
tools:
python: "3.10"
commands:
- pip install --group docs
Comment on lines +11 to +12
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think now this should work


sphinx:
configuration: docs/conf.py

python:
install:
- requirements: requirements_dev.txt
- method: pip
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think part was just to install the dependencies only.

path: .
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

.. _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

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
35 changes: 35 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,41 @@ 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]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please rework the comments here to be more similar to what was used in the requirements file? It looks like things got jostled around.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will rework this. I think pyproject-fmt jostled the comments around as it sorted dependecies.

dev = [
{ include-group = "django_async" },
{ include-group = "docs" },
{ include-group = "other" },
{ include-group = "run_time" },
{ include-group = "test" },
]
test = [
"black",
"coverage[toml]",
"django-csp", # Used in tests/test_csp_rendering
"django-template-partials",
"html5lib",
"selenium",
"tox",
]
docs = [
"sphinx",
"sphinx-rtd-theme>1",
"sphinxcontrib-spelling",
]
run_time = [
"django",
"jinja2",
"sqlparse",
]
django_async = [
"daphne", # Integration support
"whitenoise",
]
other = [
"pre-commit",
]

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

This file was deleted.

Loading