From 6ac72388032a56d5126059813ade274dcfd29211 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sat, 1 Nov 2025 23:55:28 +0100 Subject: www/py-html5lib: fix ast.Str -> ast.Constant ast.Str had been deprecated since Python 3.8 (replaced by ast.Constant) and got removed in 3.14. --- www/py-html5lib/files/patch-setup.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 www/py-html5lib/files/patch-setup.py (limited to 'www/py-html5lib/files/patch-setup.py') diff --git a/www/py-html5lib/files/patch-setup.py b/www/py-html5lib/files/patch-setup.py new file mode 100644 index 000000000000..1dea77f968f7 --- /dev/null +++ b/www/py-html5lib/files/patch-setup.py @@ -0,0 +1,13 @@ +--- setup.py.orig 2020-06-22 23:23:02 UTC ++++ setup.py +@@ -90,8 +90,8 @@ with open(join(here, "html5lib", "__init__.py"), "rb") + 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 ++ isinstance(a.value, ast.Constant)): ++ version = a.value + + setup(name='html5lib', + version=version, -- cgit v1.2.3