Description: Devendor webencodings Import the system python3-webencodings rather than the copy upstream vendorised for 1.2, and stop building that copy into the binary package: once the import is redirected nothing under html5lib/ references html5lib.contrib at all. Author: Debian Python Team Forwarded: not-needed Last-Update: 2026-09-18 --- a/html5lib/_inputstream.py +++ b/html5lib/_inputstream.py @@ -6,7 +6,7 @@ import codecs import re from io import BytesIO, StringIO -from .contrib import webencodings +import webencodings from .constants import EOF, spaceCharacters, asciiLetters, asciiUppercase from .constants import _ReparseException --- a/pyproject.toml +++ b/pyproject.toml @@ -42,6 +42,6 @@ readme = {file = ["README.rst", "AUTHORS [tool.setuptools.packages.find] where = ["."] # list of folders that contain the packages (["."] by default) include = ["html5lib*"] # package names should match these glob patterns (["*"] by default) -exclude = ["html5lib.tests*"] # exclude packages matching these glob patterns (empty by default) +exclude = ["html5lib.tests*", "html5lib.contrib*"] # exclude packages matching these glob patterns (empty by default) namespaces = false # to disable scanning PEP 420 namespaces (true by default)