From c47e015b5f5e1ca0aaf5f8c85d1ea3721d1e5fc3 Mon Sep 17 00:00:00 2001 From: Chris Fiege Date: Mon, 16 Dec 2024 10:17:53 +0100 Subject: [PATCH] plugins/sphinx-themes: Fix dependency for Python >=3.12 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. --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 6a9556f..f2cb1b4 100755 --- a/setup.py +++ b/setup.py @@ -43,6 +43,7 @@ 'sphinx-themes': [ 'sphinx>=4.5.0,<7.3.0', 'sphinx_rtd_theme>=1.0.0', + 'setuptools', ], }