Skip to content

Commit 05b7628

Browse files
committed
Add setuptools as a dependency
This is required by pybtex, which is used by documenteer.ext.bibtex. Ideally pybtex will switch to importlib.metadata so that this dependency will no longer be required.
1 parent 7ae0a07 commit 05b7628

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Bug fixes
2+
3+
- `setuptools` is now included in the core package dependencies. The `documenteer.ext.bibtex` extension uses `pybtex`, which is turn uses `pkg_resources` from `setuptools`. In Python 3.12, setuptools is not available in Python environments by default. This direct dependency can be removed once `pybtex` is updated to use `importlib.metadata`.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ dependencies = [
3030
"requests",
3131
"click",
3232
"sphinxcontrib-bibtex>=2.0.0", # for pybtex extension
33+
"setuptools", # for pkg_resources, used by pybtex
3334
"pydantic >= 2.0.0",
3435
"urllib3",
3536
"pylatexenc",

0 commit comments

Comments
 (0)