Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
From b90dafff1bf342d34d539098013d0b9f318c7641 Mon Sep 17 00:00:00 2001
|
||||
From: Andrew Sukach <andrew@sukach.org>
|
||||
Date: Fri, 12 Sep 2025 21:53:31 -0700
|
||||
Subject: [PATCH] `setup.py`: fix version parsing on Python 3.14 (ast.Str
|
||||
removed)
|
||||
|
||||
Python 3.14 removes the ast.Str node type. String literals now appear
|
||||
as ast.Constant(value=str).
|
||||
Update the AST check to accept both ast.Str (for older Pythons) and
|
||||
ast.Constant with a string value (for Python 3.8+), allowing html5lib to
|
||||
build successfully on Python 3.14 while remaining compatible with older
|
||||
version.
|
||||
|
||||
Upstream: https://github.com/html5lib/html5lib-python/pull/589
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
setup.py | 11 ++++++++---
|
||||
1 file changed, 8 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 30ee0575..42ab6f67 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -92,9 +92,14 @@ def default_environment():
|
||||
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,
|
||||
8
package/python-html5lib/Config.in
Normal file
8
package/python-html5lib/Config.in
Normal file
@@ -0,0 +1,8 @@
|
||||
config BR2_PACKAGE_PYTHON_HTML5LIB
|
||||
bool "python-html5lib"
|
||||
select BR2_PACKAGE_PYTHON_SIX # runtime
|
||||
select BR2_PACKAGE_PYTHON_WEBENCODINGS # runtime
|
||||
help
|
||||
HTML parser based on the WHATWG HTML specification.
|
||||
|
||||
https://github.com/html5lib/html5lib-python
|
||||
5
package/python-html5lib/python-html5lib.hash
Normal file
5
package/python-html5lib/python-html5lib.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# md5, sha256 from https://pypi.org/pypi/html5lib/json
|
||||
md5 6748742e2ec4cb99287a6bc82bcfe2b0 html5lib-1.1.tar.gz
|
||||
sha256 b2e5b40261e20f354d198eae92afc10d750afb487ed5e50f9c4eaf07c184146f html5lib-1.1.tar.gz
|
||||
# Locally computed sha256 checksums
|
||||
sha256 16a39991619e92f18680932da2a9199fdf7d95df3ecaedc52ea06218aabafd6f LICENSE
|
||||
16
package/python-html5lib/python-html5lib.mk
Normal file
16
package/python-html5lib/python-html5lib.mk
Normal file
@@ -0,0 +1,16 @@
|
||||
################################################################################
|
||||
#
|
||||
# python-html5lib
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PYTHON_HTML5LIB_VERSION = 1.1
|
||||
PYTHON_HTML5LIB_SOURCE = html5lib-$(PYTHON_HTML5LIB_VERSION).tar.gz
|
||||
PYTHON_HTML5LIB_SITE = https://files.pythonhosted.org/packages/ac/b6/b55c3f49042f1df3dcd422b7f224f939892ee94f22abcf503a9b7339eaf2
|
||||
PYTHON_HTML5LIB_LICENSE = MIT
|
||||
PYTHON_HTML5LIB_LICENSE_FILES = LICENSE
|
||||
PYTHON_HTML5LIB_SETUP_TYPE = setuptools
|
||||
PYTHON_HTML5LIB_CPE_ID_VENDOR = html5lib
|
||||
PYTHON_HTML5LIB_CPE_ID_PRODUCT = html5lib
|
||||
|
||||
$(eval $(python-package))
|
||||
Reference in New Issue
Block a user