debian/patches/
6 patches in series
-
0001-devendor-webencodings.patchImport 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 <[email protected]>
- Forwarded
- not-needed
- Last update
- 2026-09-18
-
-
-
0004-Close-the-addinfourl-wrapper-in-test_stream.patchtest_python_issue_20007_b leaves the addinfourl it wraps around the fake HTTPResponse unclosed, so the socket is only released when the object is garbage collected, emitting a ResourceWarning at some arbitrary later point in the run. Close it explicitly instead. This replaces 0004-Ignore-ResourceWarning-with-Python-3.14.patch, which handled the same leak from the other end by suppressing ResourceWarning for every tokenizer test. Neither patch is needed to build against pytest 9.1 and Python 3.14 -- the suite passes with both removed -- but the leak itself is real and upstream has a fix pending.- Author
- Dale Richards <[email protected]>
- Origin
- upstream: https://github.com/html5lib/html5lib-python/pull/591
- Forwarded
- https://github.com/html5lib/html5lib-python/pull/591
- Last update
- 2026-09-18
-
0005-Replace-pkg_resources-usage.patchsetuptools 82 dropped pkg_resources, so both setup.py and the test suite's conftest.py now fail on import. Make the setup.py import optional -- its only consumer is a workaround for setuptools older than 18.5, which cannot be the case when pkg_resources is missing -- and port conftest.py to packaging plus importlib.metadata. Adapted from the upstream pull request, without its importlib_metadata fallback: this fork requires Python >= 3.8, where importlib.metadata is part of the standard library.- Author
- Dale Richards <[email protected]>
- Origin
- upstream: https://github.com/html5lib/html5lib-python/pull/594
- Forwarded
- https://github.com/html5lib/html5lib-python/pull/594
- Debian bug
- https://bugs.debian.org/1147391
- Bug
- https://github.com/html5lib/html5lib-python/issues/593
- Last update
- 2026-09-18
-
0006-Restore-the-html5lib-distribution-name.patchThe html5lib-modern fork renamed the distribution so it could be published next to the original on PyPI, but it keeps the html5lib module name and upstream's own setup.py still passes name='html5lib'. Debian has no such namespace to contend with: the binary package is python3-html5lib and it stands in for html5lib outright. Building under the pyproject name installs html5lib_modern-<v>.dist-info, which has two consequences. importlib.metadata.version("html5lib") raises PackageNotFoundError, where it worked up to 1.1-6 (which shipped html5lib-1.1.egg-info); and dh_python3 cannot map a "Requires-Dist: html5lib" onto python3-html5lib, so it drops that dependency from ${python3:Depends} with only a log.info line to show for it. debian/python3-html5lib.pydist keeps the html5lib-modern spelling resolvable for packages that ask for the fork by name.- Author
- Dale Richards <[email protected]>
- Forwarded
- not-needed
- Last update
- 2026-09-18