Repository navigation
Commit ca6b60e
build(tox): install documentation dependencies from the
The documentation build dependencies (Sphinx and its extensions) used
to be the `doc` extra. 9e54de4 (gitpython-developers#2243) moved them to a PEP 735 `doc`
dependency group in `pyproject.toml`, and CI now installs them with
`pip install --group doc`, but the tox `html` environment still asked
for the `doc` extra. GitPython no longer has that extra, so
`tox -e html` failed before building anything. tox 4.67.1 reports:
html: failed with extras not found for package GitPython: doc
(available: gix, test)
tox 4.22.0 instead installs the environment without Sphinx and fails
when `make` runs it, with `make: sphinx-build: No such file or
directory`.
Install the `doc` dependency group with `dependency_groups = doc`
instead. `extras =` is set to empty, so the environment still installs
only GitPython and the documentation dependencies, as it did with
`extras = doc`, rather than inheriting `extras = test` from `[testenv]`.
`dependency_groups` was added in tox 4.22, so raise the `requires`
floor from `tox>=4` to `tox>=4.22`. With an older tox installed, tox
then provisions a new enough one rather than ignoring the setting.
Run locally with tox 4.67.1, `tox -e html` now installs the group and
builds the HTML documentation successfully, with no Sphinx warnings,
as in CI's documentation build on Python 3.13.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>doc group1 parent ad0420e commit ca6b60e
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
0 commit comments