Debian Patches

Status for sentry-python/2.60.0-3

Patch Description Author Forwarded Bugs Origin Last update
debian-hacks/docs-Use-local-inventory-for-Python3.patch docs: Use local inventory for Python3
Patch requires package python3-doc to be installed.
Carsten Schoenert <c.schoenert@t-online.de> not-needed 2022-06-12
debian-hacks/docs-Use-alabaster-theme.patch docs: Use alabaster theme
The shibuya theme isn't packaged yet.
Carsten Schoenert <c.schoenert@t-online.de> not-needed 2024-01-08
docs-conf.py-Drop-TYPE_CHECKING-hack.patch docs/conf.py: Drop the typing.TYPE_CHECKING = True hack
Upstream's conf.py flips `typing.TYPE_CHECKING` to True at import time
so that sphinx-autodoc-typehints can resolve forward references that
would otherwise only be visible to a static type checker. This breaks
the documentation build against Sphinx 9.1 (in sid):

ExtensionError: Could not import extension sphinx.transforms.i18n
(exception: cannot import name '_DocutilsSettings' from
'sphinx.util.docutils')

The failure is order-dependent. `sphinx.util.docutils` is pulled in
transitively (via the `sphinx.builders.*` imports at the top of
conf.py) *before* the flag is flipped, so its `if TYPE_CHECKING:`
block never executes and the name is never bound on the module. Later,
when Sphinx loads the `sphinx.transforms.i18n` extension the flag is
True, so that module's `if TYPE_CHECKING:` block runs and tries to
import the non-existent `_DocutilsSettings` symbol from
`sphinx.util.docutils` which just blows up the build.

Drop the hack. The build then succeeds against Sphinx 9.1 and the
generated docs render correctly; the only loss is that
sphinx-autodoc-typehints can no longer pierce TYPE_CHECKING guards to
fully resolve every annotation, which is an acceptable trade-off for
the Debian package.
Christopher Obbard <obbardc@debian.org> not-needed 2026-05-22

All known versions for source package 'sentry-python'

Links