Repository navigation
Commit a14eca7
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:
html: failed with extras not found for package GitPython: doc
(available: gix, test)
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. Sphinx reports one
warning, about the docstring of
`git.objects.submodule.util.is_relative_url`. CI's documentation build
reports the same single warning.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>doc group1 parent 3513562 commit a14eca7
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