| 1 |
Description: Devendor webencodings |
| 2 |
Import the system python3-webencodings rather than the copy upstream |
| 3 |
vendorised for 1.2, and stop building that copy into the binary package: |
| 4 |
once the import is redirected nothing under html5lib/ references |
| 5 |
html5lib.contrib at all. |
| 6 |
Author: Debian Python Team <[email protected]> |
| 7 |
Forwarded: not-needed |
| 8 |
Last-Update: 2026-09-18 |
| 9 |
--- a/html5lib/_inputstream.py |
| 10 |
+++ b/html5lib/_inputstream.py |
| 11 |
@@ -6,7 +6,7 @@ import codecs |
| 12 |
import re |
| 13 |
from io import BytesIO, StringIO |
| 14 |
|
| 15 |
-from .contrib import webencodings |
| 16 |
+import webencodings |
| 17 |
|
| 18 |
from .constants import EOF, spaceCharacters, asciiLetters, asciiUppercase |
| 19 |
from .constants import _ReparseException |
| 20 |
--- a/pyproject.toml |
| 21 |
+++ b/pyproject.toml |
| 22 |
@@ -42,6 +42,6 @@ readme = {file = ["README.rst", "AUTHORS |
| 23 |
[tool.setuptools.packages.find] |
| 24 |
where = ["."] # list of folders that contain the packages (["."] by default) |
| 25 |
include = ["html5lib*"] # package names should match these glob patterns (["*"] by default) |
| 26 |
-exclude = ["html5lib.tests*"] # exclude packages matching these glob patterns (empty by default) |
| 27 |
+exclude = ["html5lib.tests*", "html5lib.contrib*"] # exclude packages matching these glob patterns (empty by default) |
| 28 |
namespaces = false # to disable scanning PEP 420 namespaces (true by default) |
| 29 |
|