Description: Restore the html5lib distribution name
The 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-.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
Forwarded: not-needed
Last-Update: 2026-09-18
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -3,7 +3,7 @@ requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
-name = "html5lib-modern"
+name = "html5lib"
authors = [
# HTML5Lib-modern author:
{name = "Ashley Sommer", email = "ashleysommer@gmail.com"},