python3-html2text: Add missing rdep on py3 html module
PATCH 1/3 python3-html2text: Add missing rdep on py3 html module
Fixes
ModuleNotFoundError: No module named 'html'
Signed-off-by Khem Raj <[email protected]>
--- .../recipes-devtools/python/python3-html2text_2024.2.26.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-html2text_2024.2.26.bb +2 -0
@@ -12,6 +12,8 @@ SRC_URI += " \ file://run-ptest \ " +RDEPENDS:${PN} += "python3-html" + RDEPENDS:${PN}-ptest += " \ python3-pytest \ python3-unittest-automake-output \
PATCH 2/3 python3-whoosh: Remove
This package is unmaintained upstream, and has no
new releases since 2016, now it does not build with python 3.13 since it needs cgi module which has been removed in 3.13+
if we still need this functionality
then something like whoosh-reloaded might be better
https://pypi.org/project/Whoosh-Reloaded/
Signed-off-by Khem Raj <[email protected]>
--- .../ptest-packagelists-meta-python.inc | 1 - .../packagegroups/packagegroup-meta-python.bb | 2 - ...nstic-test_minimize_dfa-test-as-XFAI.patch | 29 ------------- .../python/python3-whoosh/run-ptest | 3 -- .../python/python3-whoosh_2.7.4.bb | 42 ------------------- 5 files changed, 77 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-whoosh/0001-Mark-non-determinstic-test_minimize_dfa-test-as-XFAI.patch delete mode 100644 meta-python/recipes-devtools/python/python3-whoosh/run-ptest delete mode 100644 meta-python/recipes-devtools/python/python3-whoosh_2.7.4.bb
meta-python/conf/include/ptest-packagelists-meta-python.inc +0 -1
@@ -116,5 +116,4 @@ PTESTS_PROBLEMS_META_PYTHON ="\ python3-dnspython \ python3-fastjsonschema \ python3-pyzmq \ - python3-whoosh \ "
meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +0 -2
@@ -452,7 +452,6 @@ RDEPENDS:packagegroup-meta-python3 = "\ python3-websocket-client \ python3-werkzeug \ python3-werkzeug \ - python3-whoosh \ python3-wrapt \ python3-wtforms \ python3-xlrd \
@@ -524,7 +523,6 @@ RDEPENDS:packagegroup-meta-python3-ptest = "\ python3-unidiff-ptest \ python3-uritemplate-ptest \ python3-webcolors-ptest \ - python3-whoosh-ptest \ python3-wpa-supplicant \ python3-xlrd-ptest \ python3-xmltodict-ptest \
meta-python/recipes-devtools/python/python3-whoosh/0001-Mark-non-determinstic-test_minimize_dfa-test-as-XFAI.patch deleted +0 -29
@@ -1,29 +0,0 @@ -From ede95a4f4487b4fc3cad8452ae388376966fca0e Mon Sep 17 00:00:00 2001 -From: Chris Lamb <[email protected]> -Date: Fri, 5 Apr 2019 15:48:23 +0200 -Subject: [PATCH] Mark non-determinstic test_minimize_dfa test as XFAIL - -Sourced from Debian [1] -[1] https://sources.debian.org/src/python-whoosh/2.7.4%2Bgit6-g9134ad92-8/debian/patches/0003-Mark-non-determinstic-test_minimize_dfa-test-as-XFAI.patch/ - -Upstream-Status: Pending -Signed-off-by: Khem Raj <[email protected]> ---- - tests/test_automata.py | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/tests/test_automata.py b/tests/test_automata.py -index daab96c..7031dc3 100644 ---- a/tests/test_automata.py -+++ b/tests/test_automata.py -@@ -327,6 +327,7 @@ def test_regular(): - assert not ex.accept("bc") - - [email protected](strict=False) - def test_minimize_dfa(): - # Example from www.cs.odu.edu/~toida/nerzic/390teched/regular/fa/min-fa.html - --- -2.44.0 -
meta-python/recipes-devtools/python/python3-whoosh/run-ptest deleted +0 -3
@@ -1,3 +0,0 @@ -#!/bin/sh - -pytest --automake
meta-python/recipes-devtools/python/python3-whoosh_2.7.4.bb deleted +0 -42
42 lines not on this page · raw message
PATCH 3/3 python3-dominate: Fix ptests with python 3.13
In reply to Khem RajSigned-off-by Khem Raj <[email protected]>
--- ...d7fdb171f80ed6ce97e6ca4409723975c47f.patch | 40 +++++++++++++++++++ .../python/python3-dominate_2.9.1.bb | 1 + 2 files changed, 41 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-dominate/58f7d7fdb171f80ed6ce97e6ca4409723975c47f.patch
meta-python/recipes-devtools/python/python3-dominate/58f7d7fdb171f80ed6ce97e6ca4409723975c47f.patch new file +40 -0
@@ -0,0 +1,40 @@ +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 +1 -0
@@ -7,6 +7,7 @@ SRC_URI[sha256sum] = "558284687d9b8aae1904e3d6051ad132dd4a8c0cf551b37ea4e7e42a31 inherit pypi ptest python_setuptools_build_meta SRC_URI += " \ + file://58f7d7fdb171f80ed6ce97e6ca4409723975c47f.patch \ file://run-ptest \ "