| 1 |
Description: Restore the html5lib distribution name |
| 2 |
The html5lib-modern fork renamed the distribution so it could be published |
| 3 |
next to the original on PyPI, but it keeps the html5lib module name and |
| 4 |
upstream's own setup.py still passes name='html5lib'. Debian has no such |
| 5 |
namespace to contend with: the binary package is python3-html5lib and it |
| 6 |
stands in for html5lib outright. |
| 7 |
. |
| 8 |
Building under the pyproject name installs html5lib_modern-<v>.dist-info, |
| 9 |
which has two consequences. importlib.metadata.version("html5lib") raises |
| 10 |
PackageNotFoundError, where it worked up to 1.1-6 (which shipped |
| 11 |
html5lib-1.1.egg-info); and dh_python3 cannot map a "Requires-Dist: |
| 12 |
html5lib" onto python3-html5lib, so it drops that dependency from |
| 13 |
${python3:Depends} with only a log.info line to show for it. |
| 14 |
. |
| 15 |
debian/python3-html5lib.pydist keeps the html5lib-modern spelling |
| 16 |
resolvable for packages that ask for the fork by name. |
| 17 |
Author: Dale Richards <[email protected]> |
| 18 |
Forwarded: not-needed |
| 19 |
Last-Update: 2026-09-18 |
| 20 |
--- a/pyproject.toml |
| 21 |
+++ b/pyproject.toml |
| 22 |
@@ -3,7 +3,7 @@ requires = ["setuptools", "wheel"] |
| 23 |
build-backend = "setuptools.build_meta" |
| 24 |
|
| 25 |
[project] |
| 26 |
-name = "html5lib-modern" |
| 27 |
+name = "html5lib" |
| 28 |
authors = [ |
| 29 |
# HTML5Lib-modern author: |
| 30 |
{name = "Ashley Sommer", email = "[email protected]"}, |