pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/textproc/py-html5lib
Module Name: pkgsrc
Committed By: wiz
Date: Thu Oct 9 11:59:29 UTC 2025
Modified Files:
pkgsrc/textproc/py-html5lib: distinfo
Added Files:
pkgsrc/textproc/py-html5lib/patches: patch-setup.py
Log Message:
py-html5lib: fix build with Python 3.14
Using a comment from an upstream bug report
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/textproc/py-html5lib/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/py-html5lib/patches/patch-setup.py
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/textproc/py-html5lib/distinfo
diff -u pkgsrc/textproc/py-html5lib/distinfo:1.13 pkgsrc/textproc/py-html5lib/distinfo:1.14
--- pkgsrc/textproc/py-html5lib/distinfo:1.13 Tue Apr 30 09:01:14 2024
+++ pkgsrc/textproc/py-html5lib/distinfo Thu Oct 9 11:59:29 2025
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.13 2024/04/30 09:01:14 wiz Exp $
+$NetBSD: distinfo,v 1.14 2025/10/09 11:59:29 wiz Exp $
BLAKE2s (html5lib-1.1.tar.gz) = de98dc78f784829b373e37ad38851c062983d16b91322a32a2a77113e34b3240
SHA512 (html5lib-1.1.tar.gz) = af7c29591007fded99be6c38e3d0ae5a4ac32d71d26046a615918ae732cb1c1ecbf754f47ceca1a53726c3843f3ecea7af87a7362281b45ff3af495815818626
@@ -8,3 +8,4 @@ SHA1 (patch-html5lib_tests_sanitizer.py)
SHA1 (patch-html5lib_tests_tokenizer.py) = 069535e27579ab9e297986da60ea5072ea15c4f8
SHA1 (patch-html5lib_tests_tree__construction.py) = 471730a2408cb7c46e1d76448101f6a708b298f4
SHA1 (patch-requirements-test.txt) = e9c89a4bbd6fac87f5143bc4b1f0016993c14450
+SHA1 (patch-setup.py) = 7bb1360dfb5a355b3b6b26acdcb3f8e46b5553ac
Added files:
Index: pkgsrc/textproc/py-html5lib/patches/patch-setup.py
diff -u /dev/null pkgsrc/textproc/py-html5lib/patches/patch-setup.py:1.1
--- /dev/null Thu Oct 9 11:59:29 2025
+++ pkgsrc/textproc/py-html5lib/patches/patch-setup.py Thu Oct 9 11:59:29 2025
@@ -0,0 +1,26 @@
+$NetBSD: patch-setup.py,v 1.1 2025/10/09 11:59:29 wiz Exp $
+
+Fix build with Python 3.14
+Based on a comment in
+https://github.com/html5lib/html5lib-python/pull/589
+
+--- setup.py.orig 2025-10-09 11:57:09.810246679 +0000
++++ setup.py
+@@ -89,9 +89,14 @@ with open(join(here, "html5lib", "__init
+ for a in assignments:
+ if (len(a.targets) == 1 and
+ isinstance(a.targets[0], ast.Name) and
+- a.targets[0].id == "__version__" and
+- isinstance(a.value, ast.Str)):
+- version = a.value.s
++ a.targets[0].id == "__version__"):
++ if hasattr(ast, "Str") and isinstance(a.value, ast.Str):
++ version = a.value.s
++ elif (hasattr(ast, "Constant")
++ and isinstance(a.value, ast.Constant)
++ and isinstance(a.value.value, str)):
++ version = a.value.value
++assert version is not None
+
+ setup(name='html5lib',
+ version=version,
Home |
Main Index |
Thread Index |
Old Index