python3-prettytable update; fix ptests
cover python3-prettytable update; fix ptests
The prior version did not run any ptests, since the test_prettytable.py was not discovered by pytest. Also, since python3-pytest upgrade to 8.0.0 the python3-pytest-lazy-fixture module was non-functional.
* Add python3-pytest-lazy-fixtures (with the s)
* Upgrade to the latest python3-prettytable 3.10.0
* Drop python3-pytest-lazy-fixture (without the s)
All the ptests for meta-python-image-ptest-python3-prettytable pass on qemux86-64:
$ resulttool report build/tmp/log/oeqa/testresults.json ============================================================================================================== Test Result Status Summary (Counts/Percentages sorted by testseries, ID) ============================================================================================================== -------------------------------------------------------------------------------------------------------------- Test Series | ID | Passed | Failed | Skipped -------------------------------------------------------------------------------------------------------------- oeqa | runtime_meta-python-image-ptest-python3-prettytable_qemux86-64_20240220002104 | 171 (99%) | 0 (0%) | 1 (1%) -------------------------------------------------------------------------------------------------------------- Total | 1 | 171 | 0 | 1 --------------------------------------------------------------------------------------------------------------
==============================================================================================================
qemux86-64 PTest Result Summary
==============================================================================================================
--------------------------------------------------------------------------------------------------------------
Recipe | Passed | Failed | Skipped | Time(s)
--------------------------------------------------------------------------------------------------------------
python3-prettytable | 166 | 0 | 0 | 0
--------------------------------------------------------------------------------------------------------------
The following changes since commit ae28f34aab8c7e32e610446fe82868dc020e088a:
python3-meson-python: move to oe-core (2024-02-19 10:22:55 -0800)
are available in the Git repository at:
https://git.openembedded.org/meta-openembedded-contrib timo/python3-prettytable-update
https://git.openembedded.org/meta-openembedded-contrib/log/?h=timo/python3-prettytable-update
Tim Orling (3):
python3-pytest-lazy-fixtures: add 1.0.5
python3-prettytable: upgrade 3.9.0 => 3.10.0; fix ptests python3-pytest-lazy-fixture: drop recipe
.../ptest-packagelists-meta-python.inc | 1 -
.../packagegroups/packagegroup-meta-python.bb | 3 +-
...3.9.0.bb => python3-prettytable_3.10.0.bb} | 33 ++++++++++---------
.../python3-pytest-lazy-fixture/run-ptest | 3 --
.../python3-pytest-lazy-fixture_0.6.3.bb | 26 ---------------
.../python3-pytest-lazy-fixtures_1.0.5.bb | 21 ++++++++++++
6 files changed, 39 insertions(+), 48 deletions(-)
rename meta-python/recipes-devtools/python/{python3-prettytable_3.9.0.bb => python3-prettytable_3.10.0.bb} (67%)
delete mode 100644 meta-python/recipes-devtools/python/python3-pytest-lazy-fixture/run-ptest
delete mode 100644 meta-python/recipes-devtools/python/python3-pytest-lazy-fixture_0.6.3.bb
create mode 100644 meta-python/recipes-devtools/python/python3-pytest-lazy-fixtures_1.0.5.bbSignature · 1 line
2.34.1
PATCH 1/3 python3-pytest-lazy-fixtures: add 1.0.5
Use your fixtures in @pytest.mark.parametrize.
This project was inspired by pytest-lazy-fixture.
Improvements that have been made in this project:
1. You can use fixtures in any data structures
2. You can access the attributes of fixtures
3. You can use functions in fixtures
* Dependency for python3-prettytable ptest.
(Not the same as python3-pytest-lazy-fixture without the s)
* Upstream does not package tests/ in the sdist on pypi, so we do not try to enable ptest at this time (it would require using git fetcher instead of pypi.bbclass).
* The ptest for the predecessor (python3-pytest-lazy-fixture without the s) was already in PTEST_PROBLEMS, meaning its ptests did not run cleanly.
--- .../python3-pytest-lazy-fixtures_1.0.5.bb | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pytest-lazy-fixtures_1.0.5.bb
meta-python/recipes-devtools/python/python3-pytest-lazy-fixtures_1.0.5.bb new file +21 -0
@@ -0,0 +1,21 @@ +SUMMARY = "Allows you to use fixtures in @pytest.mark.parametrize." +DESCRIPTION = "Use your fixtures in @pytest.mark.parametrize. \ +\ +This project was inspired by pytest-lazy-fixture.\ +\ +Improvements that have been made in this project:\ +\ +* You can use fixtures in any data structures\ +* You can access the attributes of fixtures\ +* You can use functions in fixtures" +HOMEPAGE = "https://github.com/dev-petrov/pytest-lazy-fixtures" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=4475e66fcfabe27395e6764c8f69c876" + +SRC_URI[sha256sum] = "066b253a94c249e6d9cdfad465e2503d2219139fb468d8f687243dfde39ab9cb" + +inherit pypi python_poetry_core + +PYPI_PACKAGE = "pytest_lazy_fixtures" + +RDEPENDS:${PN} = "python3-pytest"
Signature · 1 line
2.34.1
PATCH 2/3 python3-prettytable: upgrade 3.9.0 => 3.10.0; fix ptests
In reply to Tim Orling* Add all tests/* to be more complete and also to help pytest find the tests (previously, no test cases were actually being run)
* Sort RDEPENDS alphabetically
* ptest now RDEPENDS on python3-pytest-lazy-fixtures (with the s) instead of python3-pytest-lazy-fixture (without the s) because of python3-pytest 8.0.0 compatability.
* Rearrange the recipe a bit
https://github.com/jazzband/prettytable/releases/tag/3.10.0
Added
* Add support for Python 3.13 (#281) @hugovk
Changed
* Speedup: lazy imports and remove import (#276) @hugovk
* Use GitHub Flavored Markdown for table formatting (#268) @mumblingMac
* Use flake8-errmsg for friendlier tracebacks (#254) @hugovk
* Replace Flake8 with Ruff (#278) @hugovk
---
...3.9.0.bb => python3-prettytable_3.10.0.bb} | 33 ++++++++++---------
1 file changed, 17 insertions(+), 16 deletions(-)
rename meta-python/recipes-devtools/python/{python3-prettytable_3.9.0.bb => python3-prettytable_3.10.0.bb} (67%)meta-python/recipes-devtools/python/python3-prettytable_3.10.0.bb renamed from meta-python/recipes-devtools/python/python3-prettytable_3.9.0.bb +17 -16
@@ -3,7 +3,12 @@ HOMEPAGE = "http://code.google.com/p/prettytable" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=c9a6829fcd174d9535b46211917c7671" -SRC_URI[sha256sum] = "f4ed94803c23073a90620b201965e5dc0bccf1760b7a7eaf3158cab8aaffdf34" + +SRC_URI[sha256sum] = "9665594d137fb08a1117518c25551e0ede1687197cf353a4fdc78d27e1073568" +SRC_URI += " \ + file://run-ptest \ +" +inherit pypi ptest python_hatchling do_install:append() { perm_files=`find "${D}${PYTHON_SITEPACKAGES_DIR}/" -name "*.txt" -o -name "PKG-INFO"`
@@ -12,33 +17,29 @@ do_install:append() { done } -BBCLASSEXTEND = "native nativesdk" -inherit pypi ptest python_hatchling - -SRC_URI += " \ - file://run-ptest \ -" - DEPENDS += "\ python3-hatch-vcs-native \ " RDEPENDS:${PN} += " \ - python3-math \ - python3-html \ - python3-wcwidth \ - python3-json \ - python3-compression \ - python3-importlib-metadata \ + python3-compression \ + python3-html \ + python3-importlib-metadata \ + python3-json \ + python3-math \ + python3-wcwidth \ " RDEPENDS:${PN}-ptest += " \ python3-pytest \ - python3-pytest-lazy-fixture \ + python3-pytest-lazy-fixtures \ python3-sqlite3 \ python3-unittest-automake-output \ " do_install_ptest() { - cp -f ${S}/tests/test_prettytable.py ${D}${PTEST_PATH}/ + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ } + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.34.1
PATCH 3/3 python3-pytest-lazy-fixture: drop recipe
In reply to Tim OrlingThis recipe is no longer maintained (since 2020) and is not compliant with python3-pytest_8.0.0+.
The only dependency in meta-python was the old version of python3-prettytable-ptest, which now RDEPENDS upon python3-pytest-lazy-fixtures (with the s).
Drop the recipe
Drop it from packagegroup-meta-python
Drop it from PTEST_PROBLEMS in ptest-packagelists-meta-python.inc
--- .../ptest-packagelists-meta-python.inc | 1 - .../packagegroups/packagegroup-meta-python.bb | 3 +-- .../python3-pytest-lazy-fixture/run-ptest | 3 --- .../python3-pytest-lazy-fixture_0.6.3.bb | 26 ------------------- 4 files changed, 1 insertion(+), 32 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-pytest-lazy-fixture/run-ptest delete mode 100644 meta-python/recipes-devtools/python/python3-pytest-lazy-fixture_0.6.3.bb
meta-python/conf/include/ptest-packagelists-meta-python.inc +0 -1
@@ -79,7 +79,6 @@ PTESTS_PROBLEMS_META_PYTHON ="\ python3-parse \ python3-pillow \ python3-pint \ - python3-pytest-lazy-fixture \ python3-pyzmq \ python3-scrypt \ python3-service-identity \
meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +1 -2
@@ -348,7 +348,7 @@ RDEPENDS:packagegroup-meta-python3 = "\ python3-pytest-forked \ python3-pytest-helpers-namespace \ python3-pytest-html \ - python3-pytest-lazy-fixture \ + python3-pytest-lazy-fixtures \ python3-pytest-metadata \ python3-pytest-tempdir \ python3-pytest-timeout \
@@ -507,7 +507,6 @@ RDEPENDS:packagegroup-meta-python3-ptest = "\ python3-pyasn1-modules-ptest \ python3-pyroute2-ptest \ python3-pyserial-ptest \ - python3-pytest-lazy-fixture-ptest \ python3-pytoml-ptest \ python3-pyzmq-ptest \ python3-requests-file-ptest \
meta-python/recipes-devtools/python/python3-pytest-lazy-fixture/run-ptest deleted +0 -3
@@ -1,3 +0,0 @@ -#!/bin/sh - -pytest --automake
meta-python/recipes-devtools/python/python3-pytest-lazy-fixture_0.6.3.bb deleted +0 -26
@@ -1,26 +0,0 @@ -# Copyright (C) 2022 Wind River Systems - -SUMMARY = "Use your fixtures in @pytest.mark.parametrize." -HOMEPAGE = "https://github.com/tvorog/pytest-lazy-fixture" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=aae6f2b7c9b3ced83e0b5bb42346d4dd" - -SRC_URI[sha256sum] = "0e7d0c7f74ba33e6e80905e9bfd81f9d15ef9a790de97993e34213deb5ad10ac" - -SRC_URI += "file://run-ptest \ - " - - -inherit ptest pypi setuptools3 - -do_install_ptest() { - install -d ${D}${PTEST_PATH}/tests - cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ -} - - -RDEPENDS:${PN} += "python3-core python3-pytest" -RDEPENDS:${PN}-ptest = " \ - python3-unixadmin \ - python3-unittest-automake-output \ - "
Signature · 1 line
2.34.1
cool. Please rebase it on top of master-next and re-send.
Quoted 70 lines · Tim Orling
The prior version did not run any ptests, since the
test_prettytable.pywas not discovered by pytest. Also, since python3-pytest upgrade to 8.0.0 the python3-pytest-lazy-fixture module was non-functional.* Add python3-pytest-lazy-fixtures (with the s)
* Upgrade to the latest python3-prettytable 3.10.0
* Drop python3-pytest-lazy-fixture (without the s)All the ptests for meta-python-image-ptest-python3-prettytable pass on qemux86-64:
$ resulttool report build/tmp/log/oeqa/testresults.json ============================================================================================================== Test Result Status Summary (Counts/Percentages sorted by testseries, ID) ============================================================================================================== -------------------------------------------------------------------------------------------------------------- Test Series | ID | Passed | Failed | Skipped -------------------------------------------------------------------------------------------------------------- oeqa | runtime_meta-python-image-ptest-python3-prettytable_qemux86-64_20240220002104 | 171 (99%) | 0 (0%) | 1 (1%) -------------------------------------------------------------------------------------------------------------- Total | 1 | 171 | 0 | 1 --------------------------------------------------------------------------------------------------------------==============================================================================================================
qemux86-64 PTest Result Summary
==============================================================================================================
--------------------------------------------------------------------------------------------------------------
Recipe | Passed | Failed | Skipped | Time(s)
--------------------------------------------------------------------------------------------------------------
python3-prettytable | 166 | 0 | 0 | 0
--------------------------------------------------------------------------------------------------------------The following changes since commit
ae28f34aab8c7e32e610446fe82868dc020e088a:python3-meson-python: move to oe-core (2024-02-19 10:22:55 -0800)
are available in the Git repository at:
https://git.openembedded.org/meta-openembedded-contrib timo/python3-prettytable-update
https://git.openembedded.org/meta-openembedded-contrib/log/?h=timo/python3-prettytable-updateTim Orling (3):
python3-pytest-lazy-fixtures: add 1.0.5
python3-prettytable: upgrade 3.9.0 => 3.10.0; fix ptests python3-pytest-lazy-fixture: drop recipe.../ptest-packagelists-meta-python.inc | 1 - .../packagegroups/packagegroup-meta-python.bb | 3 +- ...3.9.0.bb => python3-prettytable_3.10.0.bb} | 33 ++++++++++--------- .../python3-pytest-lazy-fixture/run-ptest | 3 -- .../python3-pytest-lazy-fixture_0.6.3.bb | 26 --------------- .../python3-pytest-lazy-fixtures_1.0.5.bb | 21 ++++++++++++ 6 files changed, 39 insertions(+), 48 deletions(-) rename meta-python/recipes-devtools/python/{python3-prettytable_3.9.0.bb => python3-prettytable_3.10.0.bb} (67%) delete mode 100644 meta-python/recipes-devtools/python/python3-pytest-lazy-fixture/run-ptest delete mode 100644 meta-python/recipes-devtools/python/python3-pytest-lazy-fixture_0.6.3.bb create mode 100644 meta-python/recipes-devtools/python/python3-pytest-lazy-fixtures_1.0.5.bb--
2.34.1-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#108894): https://lists.openembedded.org/g/openembedded-devel/message/108894
Mute This Topic: https://lists.openembedded.org/mt/104459444/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-