python3-dominate: Upgrade 2.9.1 -> 3.1.0
PATCH 1/2 python3-dominate: Upgrade 2.9.1 -> 3.1.0
Upgrade to release 3.1.0:
- Add reference to JavaScript functionality
- Update requires-python version to >=3.7
- Update tests for docstring dedenting in Python 3.13
- Replace get_event_loop() with get_running_loop() for asyncio compatibility
- Add support for Python 3.14, drop EOL 3.9
- docs: fix typo 'array-line' -> 'array-like' in README.md
- docs: fix 2 comment typos in dominate/dom_tag.py (thie -> the, presense -> presence)
- fix: handle out-of-range numeric HTML entities in unescape()
- Use normal index deletion for child nodes
- Keep copied async DOM contexts separate
- fix(tags): preserve inline link whitespace
- Preserve numeric zero attribute values
- Fix rendering standalone lazy nodes
Fetch the source from GitHub instead of PyPI, as the PyPI sdist lacks dominate/community, which ptest-runner python3-dominate needs to pass.
--- ...1-pyproject.toml-Include-subpackages.patch | 35 ++++++++++++++++ ...d7fdb171f80ed6ce97e6ca4409723975c47f.patch | 40 ------------------- .../python/python3-dominate_2.9.1.bb | 16 -------- .../python/python3-dominate_3.1.0.bb | 19 +++++++++ 4 files changed, 54 insertions(+), 56 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-dominate/0001-pyproject.toml-Include-subpackages.patch delete mode 100644 meta-python/recipes-devtools/python/python3-dominate/58f7d7fdb171f80ed6ce97e6ca4409723975c47f.patch delete mode 100644 meta-python/recipes-devtools/python/python3-dominate_2.9.1.bb create mode 100644 meta-python/recipes-devtools/python/python3-dominate_3.1.0.bb
meta-python/recipes-devtools/python/python3-dominate/0001-pyproject.toml-Include-subpackages.patch new file +35 -0
@@ -0,0 +1,35 @@ +From 3447817e6a7253d3e43af5fd6248f472cb46d6bf Mon Sep 17 00:00:00 2001 +From: Leon Anavi <[email protected]> +Date: Mon, 16 Nov 2026 11:02:29 +0200 +Subject: [PATCH] pyproject.toml: Include subpackages + +Extend tool.setuptools with "dominate.community". + +Fixes the following error when running tests in Yocto/OpenEmbedded +setup with ptest-runner python3-dominate: + +E ModuleNotFoundError: No module named 'dominate.community' + +Upstream-Status: Pending [https://github.com/Knio/dominate/pull/246] + +Signed-off-by: Leon Anavi <[email protected]> +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 2b1743f..f33862f 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -37,7 +37,7 @@ requires = ["setuptools>=75"] + build-backend = "setuptools.build_meta" + + [tool.setuptools] +-packages = ["dominate"] ++packages = ["dominate", "dominate.community"] + + [tool.setuptools.package-data] + dominate = ["README.md"] +-- +2.47.3 +
meta-python/recipes-devtools/python/python3-dominate/58f7d7fdb171f80ed6ce97e6ca4409723975c47f.patch deleted +0 -40
@@ -1,40 +0,0 @@ -From 58f7d7fdb171f80ed6ce97e6ca4409723975c47f Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <[email protected]> -Date: Sat, 3 Aug 2024 16:07:38 +0200 -Subject: [PATCH] Update tests for docstring dedenting in Python 3.13 - -Update the `get_expected()` function to account for the fact that -Python 3.13 automatically dedents all the docstrings, and therefore -does not require explicitly removing the indent (which effectively -removes too much indent). - -Fixes #199 - -Upstream-Status: Submitted [https://github.com/Knio/dominate/pull/202] -Signed-off-by: Khem Raj <[email protected]> ---- - tests/test_svg.py | 7 ++++++- - 1 file changed, 6 insertions(+), 1 deletion(-) - -diff --git a/tests/test_svg.py b/tests/test_svg.py -index e5bbec3..ea7d98f 100644 ---- a/tests/test_svg.py -+++ b/tests/test_svg.py -@@ -1,3 +1,5 @@ -+import sys -+ - import dominate.svg - from dominate.tags import * - from dominate.svg import * -@@ -14,7 +16,10 @@ def base(): - - - def get_expected(func): -- return func.__doc__.replace('\n ', '\n').strip() -+ doc = func.__doc__ -+ if sys.version_info < (3, 13): -+ doc = doc.replace('\n ', '\n') -+ return doc.strip() - - - def output_test(func):
meta-python/recipes-devtools/python/python3-dominate_2.9.1.bb deleted +0 -16
@@ -1,16 +0,0 @@ -SUMMARY = "Dominate is a Python library for creating and manipulating HTML documents using an elegant DOM API." -LICENSE = "LGPL-3.0-only" -LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b52f2d57d10c4f7ee67a7eb9615d5d24" - -SRC_URI[sha256sum] = "558284687d9b8aae1904e3d6051ad132dd4a8c0cf551b37ea4e7e42a31d19dc4" - -inherit pypi ptest-python-pytest python_setuptools_build_meta - -SRC_URI += " \ - file://58f7d7fdb171f80ed6ce97e6ca4409723975c47f.patch \ -" - -RDEPENDS:${PN} += "\ - python3-numbers \ - python3-threading \ - "
meta-python/recipes-devtools/python/python3-dominate_3.1.0.bb new file +19 -0
@@ -0,0 +1,19 @@ +SUMMARY = "Dominate is a Python library for creating and manipulating HTML documents using an elegant DOM API." +LICENSE = "LGPL-3.0-only" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b52f2d57d10c4f7ee67a7eb9615d5d24" + +SRC_URI[sha256sum] = "926989c819db2fe91e590590a2902183685edd94829c8cfba5fd71af57c1a982" + +inherit ptest-python-pytest python_setuptools_build_meta + +SRC_URI = "\ + git://github.com/Knio/dominate.git;protocol=https;branch=master;tag=${PV} \ + file://0001-pyproject.toml-Include-subpackages.patch \ +" + +SRCREV = "33120ac155461cea04610c4dc5ad69e54ff66f68" + +RDEPENDS:${PN} += "\ + python3-numbers \ + python3-threading \ + "
Signature · 1 line
2.47.3
PATCH 2/2 python3-pycurl: Upgrade 7.48.0 -> 7.49.0
Upgrade to release 7.49.0:
- Fix test_readfunction_unsetopt hanging with a tty on stdin
- Fix skip location reporting in tests/util.py decorators
- Document AsyncCurlMulti blocking limitations
- Add SSH_HOSTKEYFUNCTION and some missing libcurl SSH constants
- Add a debug build of Python to Linux CI/CD
- Preserve pending exception across CurlMulti dealloc cleanup
- Ignore ResourceWarning in test_option_refcounting
- Fix Sphinx documentation build warnings
- Clean up the build system, removing dead and redundant setup.py and Makefile code
- Remove obsolete cruft from tests directory
- Remove outdated example scripts
- Move dev dependencies into PEP 735 groups and drop requirements-dev.txt
- Update LGPL v2.1 license text to the latest version
- Stop installing docs/examples via data_files in wheels
- Drop setup.py CLI argument parsing in favor of environment variables
- Remove dead Windows XP/pre-VS2010 handling, update OpenSSL lib default
- Add GitHub Actions workflow to build the docs
- Make releases a single dispatch-and-approve workflow
- Skip numpy for tests on Windows ARM64 with Python 3.10
- Make object teardown exception-safe and move Curl cleanup into tp_finalize
- Move CurlMulti cleanup into tp_finalize
- Drop the removed vcpkg non-http curl feature
- Use Python 3.12 for the vcpkg install on Linux
- Move CurlMime cleanup into tp_finalize
- Allow to free a mime that isn't attached to a Curl
- Accept CurlShare subclasses in setopt
- Clone and bootstrap vcpkg on all platforms
- Invalidate a mime part's subparts when its content is replaced
- Unify CurlShare cleanup into tp_finalize
Install README.rst tests/post_test.py:PostTest.test_post_file.
License-Update: Update LGPL v2.1 license text to the latest version
---
.../{python3-pycurl_7.48.0.bb => python3-pycurl_7.49.0.bb} | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
rename meta-python/recipes-devtools/python/{python3-pycurl_7.48.0.bb => python3-pycurl_7.49.0.bb} (81%)meta-python/recipes-devtools/python/python3-pycurl_7.49.0.bb renamed from meta-python/recipes-devtools/python/python3-pycurl_7.48.0.bb +3 -2
@@ -8,11 +8,11 @@ SECTION = "devel/python" HOMEPAGE = "http://pycurl.io/" LICENSE = "LGPL-2.1-only OR MIT" -LIC_FILES_CHKSUM = "file://COPYING-LGPL;md5=4fbd65380cdd255951079008b364516c \ +LIC_FILES_CHKSUM = "file://COPYING-LGPL;md5=4bf661c1e3793e55c8d1051bc5e0ae21 \ file://COPYING-MIT;md5=be42e1b1e58c8d59c2901fd747bfc55d \ " -SRC_URI[sha256sum] = "b70961a76c412cd34f9cc2c9558e63f89fb37045c59eee396c585b52973be280" +SRC_URI[sha256sum] = "d4327da9dea72768f942f831bbaa5a64adca4d7c89f3141da7a833d3c600ab90" SRC_URI += " file://run-ptest"
@@ -37,6 +37,7 @@ do_install_ptest() { install -d ${D}${PTEST_PATH}/tests cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ cp -f ${S}/setup.py ${D}${PTEST_PATH} + install -m 0644 ${S}/README.rst ${D}${PTEST_PATH}/ } BBCLASSEXTEND += "native nativesdk"
Signature · 1 line
2.47.3