Skip to content

Commit

Permalink
Add setuptools as a dependency
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jonathansick committed Feb 21, 2024
1 parent 7ae0a07 commit 05b7628
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog.d/20240221_130347_jsick_DM_42967.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Bug fixes

- `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`.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ dependencies = [
"requests",
"click",
"sphinxcontrib-bibtex>=2.0.0", # for pybtex extension
"setuptools", # for pkg_resources, used by pybtex
"pydantic >= 2.0.0",
"urllib3",
"pylatexenc",
Expand Down

0 comments on commit 05b7628

Please sign in to comment.