Skip to content

Commit

Permalink
plugins/sphinx-themes: Fix dependency for Python >=3.12
Browse files Browse the repository at this point in the history
The sphinx-theme plugin uses `pkg_resources` to introspect Sphinx.
In Python 3.12 `pkg_resources` is not available by default, because
`setuptools` is not installed to a venv by default.

So starting with 3.12 the plugin is broken.

But `setuptools` still contains `pkg_resources`, so we can work around
this issue for now by installing `setuptools` manually.
Thus, this change adds this dependency for the `sphinx-themes` plugin.

This has been tested with Python 3.12 and 3.13 with `setuptools` up to 75.6.0.

Signed-off-by: Chris Fiege <[email protected]>
  • Loading branch information
SmithChart committed Dec 16, 2024
1 parent d51d5f2 commit 6a59123
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
'sphinx-themes': [
'sphinx>=4.5.0,<7.3.0',
'sphinx_rtd_theme>=1.0.0',
'setuptools',
],
}

Expand Down

0 comments on commit 6a59123

Please sign in to comment.