Re: [oe] [meta-python][PATCH] python3-pandas: upgrade 2.0.3 -> 2.2.2
On 2024-08-12 11:38 p.m., Khem Raj wrote: On Mon, Aug 12, 2024 at 11:20 AM Trevor Gamblin via lists.openembedded.org wrote: pandas 2.2.2 is the first version compatible with numpy 2.0.x. The package now uses meson as the build backend, so change the recipe to inherit that. Its pyproject.toml pins required versions for Cython and meson, but newer upstream pandas releases are using different versions and compatibility strings, so just add an OE-specific patch to relax the requirements a bit for us. Changelog: https://pandas.pydata.org/pandas-docs/version/2.2.2/whatsnew/v2.2.2.html Signed-off-by: Trevor Gamblin --- ...t.toml-don-t-pin-dependency-versions.patch | 37 +++ ...andas_2.0.3.bb => python3-pandas_2.2.2.bb} | 8 +++- 2 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-don-t-pin-dependency-versions.patch rename meta-python/recipes-devtools/python/{python3-pandas_2.0.3.bb => python3-pandas_2.2.2.bb} (81%) diff --git a/meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-don-t-pin-dependency-versions.patch b/meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-don-t-pin-dependency-versions.patch new file mode 100644 index 0..f60f43a5b --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-don-t-pin-dependency-versions.patch @@ -0,0 +1,37 @@ +From d46b8720a6bccb345f6bdd7ee2f5c357e7eb227b Mon Sep 17 00:00:00 2001 +From: Trevor Gamblin +Date: Mon, 12 Aug 2024 11:27:36 -0400 +Subject: [PATCH] pyproject.toml: don't pin dependency versions + +Pandas will fail to build if the exact versions aren't found, but newer +ones actually work. Since newer versions of pandas are adjusting the +requires section of pyproject toml further, just patch it for us. + +Upstream-Status: Inappropriate [OE-Specific] + +Signed-off-by: Trevor Gamblin +--- + pyproject.toml | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index db9f055799..5158d60f59 100644 +--- a/pyproject.toml b/pyproject.toml +@@ -2,10 +2,10 @@ + # Minimum requirements for the build system to execute. + # See https://github.com/scipy/scipy/pull/12940 for the AIX issue. + requires = [ +-"meson-python==0.13.1", +-"meson==1.2.1", ++"meson-python>=0.13.1", ++"meson>=1.2.1", + "wheel", +-"Cython==3.0.5", # Note: sync with setup.py, environment.yml and asv.conf.json ++"Cython>=3.0.5", # Note: sync with setup.py, environment.yml and asv.conf.json + # Force numpy higher than 2.0rc1, so that built wheels are compatible + # with both numpy 1 and 2 + "numpy>=2.0.0rc1", This means I have to synchronise this patch with the numpy 2.x upgrade patch in oe-core Yes, once that is merged then this should be OK to merge as well. - Trevor +-- +2.39.2 + diff --git a/meta-python/recipes-devtools/python/python3-pandas_2.0.3.bb b/meta-python/recipes-devtools/python/python3-pandas_2.2.2.bb similarity index 81% rename from meta-python/recipes-devtools/python/python3-pandas_2.0.3.bb rename to meta-python/recipes-devtools/python/python3-pandas_2.2.2.bb index 91e76d991..ac8d46984 100644 --- a/meta-python/recipes-devtools/python/python3-pandas_2.0.3.bb +++ b/meta-python/recipes-devtools/python/python3-pandas_2.2.2.bb @@ -6,9 +6,13 @@ HOMEPAGE = "http://pandas.pydata.org/"; LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=cb819092901ddb13a7d0a4f5e05f098a" -SRC_URI[sha256sum] = "c02f372a88e0d17f36d3093a644c73cfc1788e876a7c4bcb4020a77512e2043c" +SRC_URI += " \ +file://0001-pyproject.toml-don-t-pin-dependency-versions.patch \ +" -inherit pypi setuptools3 +SRC_URI[sha256sum] = "9e79019aba43cb4fda9e4d983f8e88ca0373adbb697ae9c6c43093218de28b54" + +inherit pypi python_mesonpy DEPENDS += " \ python3-cython-native \ -- 2.39.2 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#111791): https://lists.openembedded.org/g/openembedded-devel/message/111791 Mute This Topic: https://lists.openembedded.org/mt/107862188/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH] python3-pandas: upgrade 2.0.3 -> 2.2.2
pandas 2.2.2 is the first version compatible with numpy 2.0.x. The package now uses meson as the build backend, so change the recipe to inherit that. Its pyproject.toml pins required versions for Cython and meson, but newer upstream pandas releases are using different versions and compatibility strings, so just add an OE-specific patch to relax the requirements a bit for us. Changelog: https://pandas.pydata.org/pandas-docs/version/2.2.2/whatsnew/v2.2.2.html Signed-off-by: Trevor Gamblin --- ...t.toml-don-t-pin-dependency-versions.patch | 37 +++ ...andas_2.0.3.bb => python3-pandas_2.2.2.bb} | 8 +++- 2 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-don-t-pin-dependency-versions.patch rename meta-python/recipes-devtools/python/{python3-pandas_2.0.3.bb => python3-pandas_2.2.2.bb} (81%) diff --git a/meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-don-t-pin-dependency-versions.patch b/meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-don-t-pin-dependency-versions.patch new file mode 100644 index 0..f60f43a5b --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-don-t-pin-dependency-versions.patch @@ -0,0 +1,37 @@ +From d46b8720a6bccb345f6bdd7ee2f5c357e7eb227b Mon Sep 17 00:00:00 2001 +From: Trevor Gamblin +Date: Mon, 12 Aug 2024 11:27:36 -0400 +Subject: [PATCH] pyproject.toml: don't pin dependency versions + +Pandas will fail to build if the exact versions aren't found, but newer +ones actually work. Since newer versions of pandas are adjusting the +requires section of pyproject toml further, just patch it for us. + +Upstream-Status: Inappropriate [OE-Specific] + +Signed-off-by: Trevor Gamblin +--- + pyproject.toml | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index db9f055799..5158d60f59 100644 +--- a/pyproject.toml b/pyproject.toml +@@ -2,10 +2,10 @@ + # Minimum requirements for the build system to execute. + # See https://github.com/scipy/scipy/pull/12940 for the AIX issue. + requires = [ +-"meson-python==0.13.1", +-"meson==1.2.1", ++"meson-python>=0.13.1", ++"meson>=1.2.1", + "wheel", +-"Cython==3.0.5", # Note: sync with setup.py, environment.yml and asv.conf.json ++"Cython>=3.0.5", # Note: sync with setup.py, environment.yml and asv.conf.json + # Force numpy higher than 2.0rc1, so that built wheels are compatible + # with both numpy 1 and 2 + "numpy>=2.0.0rc1", +-- +2.39.2 + diff --git a/meta-python/recipes-devtools/python/python3-pandas_2.0.3.bb b/meta-python/recipes-devtools/python/python3-pandas_2.2.2.bb similarity index 81% rename from meta-python/recipes-devtools/python/python3-pandas_2.0.3.bb rename to meta-python/recipes-devtools/python/python3-pandas_2.2.2.bb index 91e76d991..ac8d46984 100644 --- a/meta-python/recipes-devtools/python/python3-pandas_2.0.3.bb +++ b/meta-python/recipes-devtools/python/python3-pandas_2.2.2.bb @@ -6,9 +6,13 @@ HOMEPAGE = "http://pandas.pydata.org/"; LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=cb819092901ddb13a7d0a4f5e05f098a" -SRC_URI[sha256sum] = "c02f372a88e0d17f36d3093a644c73cfc1788e876a7c4bcb4020a77512e2043c" +SRC_URI += " \ +file://0001-pyproject.toml-don-t-pin-dependency-versions.patch \ +" -inherit pypi setuptools3 +SRC_URI[sha256sum] = "9e79019aba43cb4fda9e4d983f8e88ca0373adbb697ae9c6c43093218de28b54" + +inherit pypi python_mesonpy DEPENDS += " \ python3-cython-native \ -- 2.39.2 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#111773): https://lists.openembedded.org/g/openembedded-devel/message/111773 Mute This Topic: https://lists.openembedded.org/mt/107862188/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-oe][PATCH 2/2] xkbutils: upgrade 1.0.5 -> 1.0.6
In particular, make it build with gcc 14. License-Update: Remove "All rights reserved" from copyright line Changelog: 2939632 xkbutils 1.0.6 e2ee9c2 Change sprintf calls to use snprintf instead aa03a3b Remove uSetErrorFile() 5f875c8 xkbwatch: Fix -Wincompatible-pointer-types warning (Issue #2) 6dbcbb5 Remove "All rights reserved" from Oracle copyright notices 56c99e3 gitlab CI: stop requiring Signed-off-by in commits Signed-off-by: Trevor Gamblin --- .../xorg-app/{xkbutils_1.0.5.bb => xkbutils_1.0.6.bb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta-oe/recipes-graphics/xorg-app/{xkbutils_1.0.5.bb => xkbutils_1.0.6.bb} (75%) diff --git a/meta-oe/recipes-graphics/xorg-app/xkbutils_1.0.5.bb b/meta-oe/recipes-graphics/xorg-app/xkbutils_1.0.6.bb similarity index 75% rename from meta-oe/recipes-graphics/xorg-app/xkbutils_1.0.5.bb rename to meta-oe/recipes-graphics/xorg-app/xkbutils_1.0.6.bb index f078ad60e..0274608d0 100644 --- a/meta-oe/recipes-graphics/xorg-app/xkbutils_1.0.5.bb +++ b/meta-oe/recipes-graphics/xorg-app/xkbutils_1.0.6.bb @@ -9,9 +9,9 @@ It includes: \ xkbvleds - display the state of LEDs on an XKB keyboard in a window \ xkbwatch - reports changes in the XKB keyboard state \ " -LIC_FILES_CHKSUM = "file://COPYING;md5=64322fab5239f5c8d97cf6e0e14f1c62" +LIC_FILES_CHKSUM = "file://COPYING;md5=6767a97a97e21260134637b657b922ae" DEPENDS += "libxaw libxkbfile" SRC_URI_EXT = "xz" -SRC_URI[sha256sum] = "f6a4a8e9c54582beb3787b1faa8168caab125c1fee0ca9cfa5b6c9c1df25eea4" +SRC_URI[sha256sum] = "31a2bbee1e09ccba01de92897b8f540b545de812f318d31de07bd3a5a75ee25e" -- 2.45.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#110293): https://lists.openembedded.org/g/openembedded-devel/message/110293 Mute This Topic: https://lists.openembedded.org/mt/106007573/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-oe][PATCH 1/2] xlsfonts: upgrade 1.0.7 -> 1.0.8
In particular, make it build with gcc 14. Changelog: d20bea4 xlsfonts 1.0.8 71d8e89 Use reallocarray() if available 2b9d8f5 Fix -Wincompatible-pointer-types warning from gcc (issue #1) e53bf74 gitlab CI: stop requiring Signed-off-by in commits 314d802 man page: emphasize this program is for querying an X server Signed-off-by: Trevor Gamblin --- .../xorg-app/{xlsfonts_1.0.7.bb => xlsfonts_1.0.8.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-oe/recipes-graphics/xorg-app/{xlsfonts_1.0.7.bb => xlsfonts_1.0.8.bb} (76%) diff --git a/meta-oe/recipes-graphics/xorg-app/xlsfonts_1.0.7.bb b/meta-oe/recipes-graphics/xorg-app/xlsfonts_1.0.8.bb similarity index 76% rename from meta-oe/recipes-graphics/xorg-app/xlsfonts_1.0.7.bb rename to meta-oe/recipes-graphics/xorg-app/xlsfonts_1.0.8.bb index e5cd0ce6f..4ddb1b988 100644 --- a/meta-oe/recipes-graphics/xorg-app/xlsfonts_1.0.7.bb +++ b/meta-oe/recipes-graphics/xorg-app/xlsfonts_1.0.8.bb @@ -7,4 +7,4 @@ LICENSE = "MIT" LIC_FILES_CHKSUM = "file://COPYING;md5=5ec74dd7ea4d10c4715a7c44f159a40b" SRC_URI_EXT = "xz" -SRC_URI[sha256sum] = "7b726945a967b44c35cddee5edd74802907a239ce2e2e515730b8a32c8e50465" +SRC_URI[sha256sum] = "807f909eace684b866fc63b3e962729c120822a6c96e051ff51cf350b3ffb6cd" -- 2.45.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#110292): https://lists.openembedded.org/g/openembedded-devel/message/110292 Mute This Topic: https://lists.openembedded.org/mt/106007572/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH v2] python3-pytest-mock: disable broken ptests
Two introspection-related ptests are consistently failing. For now, disable them so that a clean ptest run is available. Signed-off-by: Trevor Gamblin --- v2 adds the missing python3-pytest-asyncio dependency needed for all non-skipped tests to pass. ...t_mock-skip-args-introspection-tests.patch | 38 +++ .../python/python3-pytest-mock_3.11.1.bb | 2 + 2 files changed, 40 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch diff --git a/meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch b/meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch new file mode 100644 index 00..f024e79d93 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch @@ -0,0 +1,38 @@ +From e184fb950ad3b52c5c16438d39fe4d516c784e30 Mon Sep 17 00:00:00 2001 +From: Trevor Gamblin +Date: Thu, 12 Oct 2023 17:32:40 -0400 +Subject: [PATCH] test_pytest_mock: skip args introspection tests + +Disable these two tests for now so that python3-pytest-mock can have +successful ptest runs. + +Upstream-Status: Inappropriate [OE-Specific] + +Signed-off-by: Trevor Gamblin +--- + tests/test_pytest_mock.py | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/tests/test_pytest_mock.py b/tests/test_pytest_mock.py +index 3d53241..157b6c3 100644 +--- a/tests/test_pytest_mock.py b/tests/test_pytest_mock.py +@@ -581,6 +581,7 @@ def test_assert_called_wrapper(mocker: MockerFixture) -> None: + stub.assert_called() + + ++@pytest.mark.skip("Async not correctly detected, skip for now") + @pytest.mark.usefixtures("needs_assert_rewrite") + def test_assert_called_args_with_introspection(mocker: MockerFixture) -> None: + stub = mocker.stub() +@@ -597,6 +598,7 @@ def test_assert_called_args_with_introspection(mocker: MockerFixture) -> None: + stub.assert_called_once_with(*wrong_args) + + ++@pytest.mark.skip("Async not correctly detected, skip for now") + @pytest.mark.usefixtures("needs_assert_rewrite") + def test_assert_called_kwargs_with_introspection(mocker: MockerFixture) -> None: + stub = mocker.stub() +-- +2.41.0 + diff --git a/meta-python/recipes-devtools/python/python3-pytest-mock_3.11.1.bb b/meta-python/recipes-devtools/python/python3-pytest-mock_3.11.1.bb index 69d74567c3..5dda1da469 100644 --- a/meta-python/recipes-devtools/python/python3-pytest-mock_3.11.1.bb +++ b/meta-python/recipes-devtools/python/python3-pytest-mock_3.11.1.bb @@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = " \ SRC_URI = " \ git://github.com/pytest-dev/pytest-mock;branch=main;protocol=https \ file://run-ptest \ +file://0001-test_pytest_mock-skip-args-introspection-tests.patch \ " SRCREV ?= "d3e73f2e93f7b93eba0a36e17e43bafd969da4fe" @@ -21,6 +22,7 @@ DEPENDS += "${PYTHON_PN}-setuptools-scm-native" RDEPENDS:${PN} += " \ python3-asyncio \ python3-pytest \ +python3-pytest-asyncio \ python3-unittest \ " -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#105493): https://lists.openembedded.org/g/openembedded-devel/message/105493 Mute This Topic: https://lists.openembedded.org/mt/101947435/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-python][PATCH 4/4] python3-pytest-mock: disable broken ptests
On 2023-10-13 14:08, Khem Raj wrote: Fails for me AssertionError: Failed ptests: {'python3-pytest-mock': ['tests/test_pytest_mock.py::test_detailed_introspection_async', 'tests/test_pytest_mock.py::test_plain_stopall', 'tests/test_pytest_mock.py::test_used_with_class_scope', 'tests/test_pytest_mock.py::test_used_with_module_scope', 'tests/test_pytest_mock.py::test_used_with_package_scope', 'tests/test_pytest_mock.py::test_used_with_session_scope']} here is detailed ptest log https://snips.sh/f/abkZuQSUsK Weird. Can you take the python3-git-pw and python3-arrow recipes, and I'll take a look at these? On Fri, Oct 13, 2023 at 10:33 AM Khem Raj wrote: On 10/13/23 10:30 AM, Trevor Gamblin wrote: On 2023-10-13 13:15, Khem Raj wrote: On Fri, Oct 13, 2023 at 10:08 AM Trevor Gamblin wrote: Two introspection-related ptests are consistently failing. For now, disable them so that a clean ptest run is available. For regular runs can we move it out of PTESTS_PROBLEMS_META_PYTHON into either PTESTS_FAST_META_PYTHON or PTESTS_SLOW_META_PYTHON Done, sent a patch to move both recipes. Thanks, it will start running in my regular CI jobs now. Signed-off-by: Trevor Gamblin --- ...t_mock-skip-args-introspection-tests.patch | 38 +++ .../python/python3-pytest-mock_3.11.1.bb | 1 + 2 files changed, 39 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch diff --git a/meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch b/meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch new file mode 100644 index 00..f024e79d93 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch @@ -0,0 +1,38 @@ +From e184fb950ad3b52c5c16438d39fe4d516c784e30 Mon Sep 17 00:00:00 2001 +From: Trevor Gamblin +Date: Thu, 12 Oct 2023 17:32:40 -0400 +Subject: [PATCH] test_pytest_mock: skip args introspection tests + +Disable these two tests for now so that python3-pytest-mock can have +successful ptest runs. + +Upstream-Status: Inappropriate [OE-Specific] + +Signed-off-by: Trevor Gamblin +--- + tests/test_pytest_mock.py | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/tests/test_pytest_mock.py b/tests/test_pytest_mock.py +index 3d53241..157b6c3 100644 +--- a/tests/test_pytest_mock.py b/tests/test_pytest_mock.py +@@ -581,6 +581,7 @@ def test_assert_called_wrapper(mocker: MockerFixture) -> None: + stub.assert_called() + + ++@pytest.mark.skip("Async not correctly detected, skip for now") + @pytest.mark.usefixtures("needs_assert_rewrite") + def test_assert_called_args_with_introspection(mocker: MockerFixture) -> None: + stub = mocker.stub() +@@ -597,6 +598,7 @@ def test_assert_called_args_with_introspection(mocker: MockerFixture) -> None: + stub.assert_called_once_with(*wrong_args) + + ++@pytest.mark.skip("Async not correctly detected, skip for now") + @pytest.mark.usefixtures("needs_assert_rewrite") + def test_assert_called_kwargs_with_introspection(mocker: MockerFixture) -> None: + stub = mocker.stub() +-- +2.41.0 + diff --git a/meta-python/recipes-devtools/python/python3-pytest-mock_3.11.1.bb b/meta-python/recipes-devtools/python/python3-pytest-mock_3.11.1.bb index 69d74567c3..7fd998edc6 100644 --- a/meta-python/recipes-devtools/python/python3-pytest-mock_3.11.1.bb +++ b/meta-python/recipes-devtools/python/python3-pytest-mock_3.11.1.bb @@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = " \ SRC_URI = " \ git://github.com/pytest-dev/pytest-mock;branch=main;protocol=https \ file://run-ptest \ +file://0001-test_pytest_mock-skip-args-introspection-tests.patch \ " SRCREV ?= "d3e73f2e93f7b93eba0a36e17e43bafd969da4fe" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#105491): https://lists.openembedded.org/g/openembedded-devel/message/105491 Mute This Topic: https://lists.openembedded.org/mt/101944758/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-python][PATCH 4/4] python3-pytest-mock: disable broken ptests
On 2023-10-13 13:15, Khem Raj wrote: On Fri, Oct 13, 2023 at 10:08 AM Trevor Gamblin wrote: Two introspection-related ptests are consistently failing. For now, disable them so that a clean ptest run is available. For regular runs can we move it out of PTESTS_PROBLEMS_META_PYTHON into either PTESTS_FAST_META_PYTHON or PTESTS_SLOW_META_PYTHON Done, sent a patch to move both recipes. Signed-off-by: Trevor Gamblin --- ...t_mock-skip-args-introspection-tests.patch | 38 +++ .../python/python3-pytest-mock_3.11.1.bb | 1 + 2 files changed, 39 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch diff --git a/meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch b/meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch new file mode 100644 index 00..f024e79d93 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch @@ -0,0 +1,38 @@ +From e184fb950ad3b52c5c16438d39fe4d516c784e30 Mon Sep 17 00:00:00 2001 +From: Trevor Gamblin +Date: Thu, 12 Oct 2023 17:32:40 -0400 +Subject: [PATCH] test_pytest_mock: skip args introspection tests + +Disable these two tests for now so that python3-pytest-mock can have +successful ptest runs. + +Upstream-Status: Inappropriate [OE-Specific] + +Signed-off-by: Trevor Gamblin +--- + tests/test_pytest_mock.py | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/tests/test_pytest_mock.py b/tests/test_pytest_mock.py +index 3d53241..157b6c3 100644 +--- a/tests/test_pytest_mock.py b/tests/test_pytest_mock.py +@@ -581,6 +581,7 @@ def test_assert_called_wrapper(mocker: MockerFixture) -> None: + stub.assert_called() + + ++@pytest.mark.skip("Async not correctly detected, skip for now") + @pytest.mark.usefixtures("needs_assert_rewrite") + def test_assert_called_args_with_introspection(mocker: MockerFixture) -> None: + stub = mocker.stub() +@@ -597,6 +598,7 @@ def test_assert_called_args_with_introspection(mocker: MockerFixture) -> None: + stub.assert_called_once_with(*wrong_args) + + ++@pytest.mark.skip("Async not correctly detected, skip for now") + @pytest.mark.usefixtures("needs_assert_rewrite") + def test_assert_called_kwargs_with_introspection(mocker: MockerFixture) -> None: + stub = mocker.stub() +-- +2.41.0 + diff --git a/meta-python/recipes-devtools/python/python3-pytest-mock_3.11.1.bb b/meta-python/recipes-devtools/python/python3-pytest-mock_3.11.1.bb index 69d74567c3..7fd998edc6 100644 --- a/meta-python/recipes-devtools/python/python3-pytest-mock_3.11.1.bb +++ b/meta-python/recipes-devtools/python/python3-pytest-mock_3.11.1.bb @@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = " \ SRC_URI = " \ git://github.com/pytest-dev/pytest-mock;branch=main;protocol=https \ file://run-ptest \ +file://0001-test_pytest_mock-skip-args-introspection-tests.patch \ " SRCREV ?= "d3e73f2e93f7b93eba0a36e17e43bafd969da4fe" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#105488): https://lists.openembedded.org/g/openembedded-devel/message/105488 Mute This Topic: https://lists.openembedded.org/mt/101944758/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH] meta-python: update ptests status for py-cpuinfo, pytest-mock
Move python3-py-cpuinfo and python3-pytest-mock into the FAST ptests list since their failing ptests are being disabled. Signed-off-by: Trevor Gamblin --- meta-python/conf/include/ptest-packagelists-meta-python.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc index c4a752ae61..043d4a1358 100644 --- a/meta-python/conf/include/ptest-packagelists-meta-python.inc +++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc @@ -29,9 +29,11 @@ PTESTS_FAST_META_PYTHON = "\ python3-prettytable \ python3-pylint \ python3-ptyprocess \ +python3-py-cpuinfo \ python3-pyasn1-modules \ python3-pyroute2 \ python3-pyserial \ +python3-pytest-mock \ python3-pytoml \ python3-requests-file \ python3-requests-toolbelt \ @@ -70,9 +72,7 @@ PTESTS_PROBLEMS_META_PYTHON ="\ python3-parse \ python3-pillow \ python3-pint \ -python3-py-cpuinfo \ python3-pytest-lazy-fixture \ -python3-pytest-mock \ python3-pyzmq \ python3-scrypt \ python3-service-identity \ -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#105487): https://lists.openembedded.org/g/openembedded-devel/message/105487 Mute This Topic: https://lists.openembedded.org/mt/101945292/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 4/4] python3-pytest-mock: disable broken ptests
Two introspection-related ptests are consistently failing. For now, disable them so that a clean ptest run is available. Signed-off-by: Trevor Gamblin --- ...t_mock-skip-args-introspection-tests.patch | 38 +++ .../python/python3-pytest-mock_3.11.1.bb | 1 + 2 files changed, 39 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch diff --git a/meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch b/meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch new file mode 100644 index 00..f024e79d93 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch @@ -0,0 +1,38 @@ +From e184fb950ad3b52c5c16438d39fe4d516c784e30 Mon Sep 17 00:00:00 2001 +From: Trevor Gamblin +Date: Thu, 12 Oct 2023 17:32:40 -0400 +Subject: [PATCH] test_pytest_mock: skip args introspection tests + +Disable these two tests for now so that python3-pytest-mock can have +successful ptest runs. + +Upstream-Status: Inappropriate [OE-Specific] + +Signed-off-by: Trevor Gamblin +--- + tests/test_pytest_mock.py | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/tests/test_pytest_mock.py b/tests/test_pytest_mock.py +index 3d53241..157b6c3 100644 +--- a/tests/test_pytest_mock.py b/tests/test_pytest_mock.py +@@ -581,6 +581,7 @@ def test_assert_called_wrapper(mocker: MockerFixture) -> None: + stub.assert_called() + + ++@pytest.mark.skip("Async not correctly detected, skip for now") + @pytest.mark.usefixtures("needs_assert_rewrite") + def test_assert_called_args_with_introspection(mocker: MockerFixture) -> None: + stub = mocker.stub() +@@ -597,6 +598,7 @@ def test_assert_called_args_with_introspection(mocker: MockerFixture) -> None: + stub.assert_called_once_with(*wrong_args) + + ++@pytest.mark.skip("Async not correctly detected, skip for now") + @pytest.mark.usefixtures("needs_assert_rewrite") + def test_assert_called_kwargs_with_introspection(mocker: MockerFixture) -> None: + stub = mocker.stub() +-- +2.41.0 + diff --git a/meta-python/recipes-devtools/python/python3-pytest-mock_3.11.1.bb b/meta-python/recipes-devtools/python/python3-pytest-mock_3.11.1.bb index 69d74567c3..7fd998edc6 100644 --- a/meta-python/recipes-devtools/python/python3-pytest-mock_3.11.1.bb +++ b/meta-python/recipes-devtools/python/python3-pytest-mock_3.11.1.bb @@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = " \ SRC_URI = " \ git://github.com/pytest-dev/pytest-mock;branch=main;protocol=https \ file://run-ptest \ +file://0001-test_pytest_mock-skip-args-introspection-tests.patch \ " SRCREV ?= "d3e73f2e93f7b93eba0a36e17e43bafd969da4fe" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#105483): https://lists.openembedded.org/g/openembedded-devel/message/105483 Mute This Topic: https://lists.openembedded.org/mt/101944758/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 3/4] python3-py-cpuinfo: disable broken ptests
There are a handful of CLI-related ptests that consistently fail with an apparent permissions issue, but making the .../site-packages/cpuinfo/cpuinfo.py script executable does not seem to fix the problem. Skip these tests for now, and make sure that the right /usr/bin/env line is present in py-cpuinfo's scripts on the image. Signed-off-by: Trevor Gamblin --- .../0001-test_cli.py-disable.patch| 32 +++ .../python/python3-py-cpuinfo_9.0.0.bb| 8 + 2 files changed, 40 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-py-cpuinfo/0001-test_cli.py-disable.patch diff --git a/meta-python/recipes-devtools/python/python3-py-cpuinfo/0001-test_cli.py-disable.patch b/meta-python/recipes-devtools/python/python3-py-cpuinfo/0001-test_cli.py-disable.patch new file mode 100644 index 00..e4165d2d66 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-py-cpuinfo/0001-test_cli.py-disable.patch @@ -0,0 +1,32 @@ +From 620cb80b0bb5ec58fe15592f033487a4e1cd3859 Mon Sep 17 00:00:00 2001 +From: Trevor Gamblin +Date: Thu, 12 Oct 2023 16:46:53 -0400 +Subject: [PATCH] test_cli.py: disable + +These tests fail if .../site-packages/cpuinfo/cpuinfo.py isn't +executable, but setting it so during do_install doesn't seem to work. +Disable them for now so that the ptests work with the remaining ~150 +successes. + +Upstream-Status: Inappropriate [OE-Specific] + +Signed-off-by: Trevor Gamblin +--- + tests/test_cli.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/tests/test_cli.py b/tests/test_cli.py +index a6b1985..43c4334 100644 +--- a/tests/test_cli.py b/tests/test_cli.py +@@ -6,6 +6,7 @@ import helpers + + + ++@unittest.skip("Disable while permissions issues are figured out") + class TestCLI(unittest.TestCase): + def setUp(self): + helpers.backup_data_source(cpuinfo) +-- +2.41.0 + diff --git a/meta-python/recipes-devtools/python/python3-py-cpuinfo_9.0.0.bb b/meta-python/recipes-devtools/python/python3-py-cpuinfo_9.0.0.bb index 5fbac03ac0..84172c058e 100644 --- a/meta-python/recipes-devtools/python/python3-py-cpuinfo_9.0.0.bb +++ b/meta-python/recipes-devtools/python/python3-py-cpuinfo_9.0.0.bb @@ -11,8 +11,16 @@ SRC_URI[sha256sum] = "3cdbbf3fac90dc6f118bfd64384f309edeadd902d7c8fb17f02ffa1fc3 inherit ptest pypi setuptools3 SRC_URI += "file://run-ptest \ +file://0001-test_cli.py-disable.patch \ " +do_install:append() { +# Make sure we use /usr/bin/env python3 +for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do +sed -i -e '1s|^#!.*|#!/usr/bin/env ${PYTHON_PN}|' $PYTHSCRIPT +done +} + do_install_ptest() { install -d ${D}${PTEST_PATH}/tests cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#105482): https://lists.openembedded.org/g/openembedded-devel/message/105482 Mute This Topic: https://lists.openembedded.org/mt/101944756/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 2/4] python3-arrow: add from meta-patchtest
arrow is a module that aims to provide a more user-friendly approach to date and time in Python. It is required by git-pw which in turn is required by patchtest, so add a recipe for it. The version is updated 1.2.2 -> 1.3.0 from the meta-patchtest layer. Signed-off-by: Trevor Gamblin --- .../recipes-devtools/python/python3-arrow_1.3.0.bb | 13 + 1 file changed, 13 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-arrow_1.3.0.bb diff --git a/meta-python/recipes-devtools/python/python3-arrow_1.3.0.bb b/meta-python/recipes-devtools/python/python3-arrow_1.3.0.bb new file mode 100644 index 00..ec49d04eb9 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-arrow_1.3.0.bb @@ -0,0 +1,13 @@ +SUMMARY = "Better dates and times for Python" +HOMEPAGE = "https://github.com/crsmithdev/arrow"; +SECTION = "devel/python" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=14a2e29a9d542fb9052d75344d67619d" + +SRC_URI[sha256sum] = "d4540617648cb5f895730f1ad8c82a65f2dad0166f57b75f3ca54759c4d67a85" + +inherit setuptools3 pypi + +RDEPENDS:${PN} += " \ +${PYTHON_PN}-dateutil \ +" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#105481): https://lists.openembedded.org/g/openembedded-devel/message/105481 Mute This Topic: https://lists.openembedded.org/mt/101944755/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 1/4] python-git-pw: add from meta-patchtest
git-pw is a tool for integrating Git with Patchwork instances. Add it to meta-python from meta-patchtest so that more workflows can take advantage of it. Signed-off-by: Trevor Gamblin --- .../python/python3-git-pw_2.5.0.bb| 20 +++ 1 file changed, 20 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-git-pw_2.5.0.bb diff --git a/meta-python/recipes-devtools/python/python3-git-pw_2.5.0.bb b/meta-python/recipes-devtools/python/python3-git-pw_2.5.0.bb new file mode 100644 index 00..d060a922b7 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-git-pw_2.5.0.bb @@ -0,0 +1,20 @@ +SUMMARY = "A tool for integrating Git with Patchwork" +HOMEPAGE = "https://github.com/getpatchwork/git-pw"; +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=26e1a171d943c64f00c51f90c256b9d4" + +SRC_URI[sha256sum] = "c60169f9566bd6710f9c0985a005a0c326460b739d3f2b5c5c71e85211584590" + +inherit pypi python_setuptools_build_meta + +DEPENDS += " \ +python3-pbr-native \ +" + +RDEPENDS:${PN} += " \ +python3-arrow \ +python3-click \ +python3-pyyaml \ +python3-requests \ +python3-tabulate \ +" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#105480): https://lists.openembedded.org/g/openembedded-devel/message/105480 Mute This Topic: https://lists.openembedded.org/mt/101944754/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH] python3-aiofiles: upgrade 23.1.0 -> 23.2.1
The new version requires hatchling to build, so add that and remove poetry (which isn't actually needed). Note that the changelog says it switched to PDM from poetry. Changelog: https://github.com/Tinche/aiofiles#history Signed-off-by: Trevor Gamblin --- ...{python3-aiofiles_23.1.0.bb => python3-aiofiles_23.2.1.bb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta-python/recipes-devtools/python/{python3-aiofiles_23.1.0.bb => python3-aiofiles_23.2.1.bb} (73%) diff --git a/meta-python/recipes-devtools/python/python3-aiofiles_23.1.0.bb b/meta-python/recipes-devtools/python/python3-aiofiles_23.2.1.bb similarity index 73% rename from meta-python/recipes-devtools/python/python3-aiofiles_23.1.0.bb rename to meta-python/recipes-devtools/python/python3-aiofiles_23.2.1.bb index c06f09fb6a..7992b00f3e 100644 --- a/meta-python/recipes-devtools/python/python3-aiofiles_23.1.0.bb +++ b/meta-python/recipes-devtools/python/python3-aiofiles_23.2.1.bb @@ -4,11 +4,11 @@ HOMEPAGE = "https://github.com/aio-libs/aiohttp"; LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=d2794c0df5b907fdace235a619d80314" -SRC_URI[sha256sum] = "edd247df9a19e0db16534d4baaf536d6609a43e1de5401d7a4c1c148753a1635" +SRC_URI[sha256sum] = "84ec2218d8419404abcb9f0c02df3f34c6e0a68ed41072acfb1cef5cbc29051a" PYPI_PACKAGE = "aiofiles" -inherit pypi python_poetry_core +inherit pypi python_hatchling RDEPENDS:${PN} = "\ ${PYTHON_PN}-asyncio \ -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#104895): https://lists.openembedded.org/g/openembedded-devel/message/104895 Mute This Topic: https://lists.openembedded.org/mt/101387569/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH] python3-kivy: fix filename
Signed-off-by: Trevor Gamblin --- .../python/{python3-kivy_2.1.0..bb => python3-kivy_2.1.0.bb} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename meta-python/recipes-devtools/python/{python3-kivy_2.1.0..bb => python3-kivy_2.1.0.bb} (100%) diff --git a/meta-python/recipes-devtools/python/python3-kivy_2.1.0..bb b/meta-python/recipes-devtools/python/python3-kivy_2.1.0.bb similarity index 100% rename from meta-python/recipes-devtools/python/python3-kivy_2.1.0..bb rename to meta-python/recipes-devtools/python/python3-kivy_2.1.0.bb -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#104519): https://lists.openembedded.org/g/openembedded-devel/message/104519 Mute This Topic: https://lists.openembedded.org/mt/100897375/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-python][PATCH 3/7] python3-m2crypto: upgrade 0.38.0 -> 0.39.0
On 2023-08-02 16:44, Khem Raj wrote: On Wed, Aug 2, 2023 at 12:23 PM Trevor Gamblin wrote: On 2023-07-30 21:03, Khem Raj wrote: Hi Trevor I am seeing a failure on qemux86 on ubuntu 22.04 host and its fairly regular. https://errors.yoctoproject.org/Errors/Details/729506/ it seems rpmdeps is crashing with signal 9. I wonder if its something to do with rpm changes we might have got in core but, I can confirm that it was not an issue two weeks ago. It worked ok on Jul 17th but broke on Jul 27th CI builds. Missed this until now. I see it's been merged; is this still an issue? yes it still is. Hmm, I can't seem to reproduce it yet. Do you want to revert the patch for now? On Tue, Jul 25, 2023 at 12:09 PM Trevor Gamblin wrote: Remove the CVE-2020-25657 patch, as it is fixed in 0.39.0: [tgamblin@megalith m2crypto]$ git log --oneline --grep="CVE-2020-25657" 84c5395 Mitigate the Bleichenbacher timing attacks in the RSA decryption API (CVE-2020-25657) [tgamblin@megalith m2crypto]$ git tag --contains 84c53958def0f510e92119fca14d74f94215827a 0.39.0 Changelog (https://gitlab.com/m2crypto/m2crypto/-/blob/master/CHANGES?ref_type=heads): 0.39.0 - 2023-01-31 --- - SUPPORT FOR PYTHON 2 HAS BEEN DEPRECATED AND IT WILL BE COMPLETELY REMOVED IN THE NEXT RELEASE. - Remove dependency on parameterized and use unittest.subTest instead. - Upgrade embedded six.py module to 1.16.0 (really tiny inconsequential changes). - Make tests working on MacOS again (test_bio_membuf: Use fork) - Use OpenSSL_version_num() instead of unrealiable parsing of .h file. - Mitigate the Bleichenbacher timing attacks in the RSA decryption API (CVE-2020-25657) - Add functionality to extract EC key from public key + Update tests - Worked around compatibility issues with OpenSSL 3.* - Support for Twisted has been deprecated (they have their own SSL support anyway). - Generate TAP while testing. - Stop using GitHub for testing. - Accept a small deviation from time in the testsuite (for systems with non-standard HZ kernel parameter). - Use the default BIO.__del__ rather tha overriding in BIO.File (avoid a memleak). - Resolve "X509_Name.as_der() method from X509.py -> class X509_Name caused segmentation fault" Signed-off-by: Trevor Gamblin --- .../python3-m2crypto/CVE-2020-25657.patch | 176 -- ...o_0.38.0.bb => python3-m2crypto_0.39.0.bb} | 3 +- 2 files changed, 1 insertion(+), 178 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-m2crypto/CVE-2020-25657.patch rename meta-python/recipes-devtools/python/{python3-m2crypto_0.38.0.bb => python3-m2crypto_0.39.0.bb} (92%) diff --git a/meta-python/recipes-devtools/python/python3-m2crypto/CVE-2020-25657.patch b/meta-python/recipes-devtools/python/python3-m2crypto/CVE-2020-25657.patch deleted file mode 100644 index 38ecd7a276..00 --- a/meta-python/recipes-devtools/python/python3-m2crypto/CVE-2020-25657.patch +++ /dev/null @@ -1,176 +0,0 @@ -Backport patch to fix CVE-2020-25657. - -Upstream-Status: Backport [https://gitlab.com/m2crypto/m2crypto/-/commit/84c53958] - -Signed-off-by: Kai Kang - -From 84c53958def0f510e92119fca14d74f94215827a Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= -Date: Tue, 28 Jun 2022 21:17:01 +0200 -Subject: [PATCH] Mitigate the Bleichenbacher timing attacks in the RSA - decryption API (CVE-2020-25657) - -Fixes #282 - src/SWIG/_m2crypto_wrap.c | 20 - src/SWIG/_rsa.i | 20 - tests/test_rsa.py | 15 +++ - 3 files changed, 31 insertions(+), 24 deletions(-) - -diff --git a/src/SWIG/_m2crypto_wrap.c b/src/SWIG/_m2crypto_wrap.c -index aba9eb6d..a9f30da9 100644 a/src/SWIG/_m2crypto_wrap.c -+++ b/src/SWIG/_m2crypto_wrap.c -@@ -7040,9 +7040,10 @@ PyObject *rsa_private_encrypt(RSA *rsa, PyObject *from, int padding) { - tlen = RSA_private_encrypt(flen, (unsigned char *)fbuf, - (unsigned char *)tbuf, rsa, padding); - if (tlen == -1) { --m2_PyErr_Msg(_rsa_err); -+ERR_clear_error(); -+PyErr_Clear(); - PyMem_Free(tbuf); --return NULL; -+Py_RETURN_NONE; - } - - ret = PyBytes_FromStringAndSize((const char *)tbuf, tlen); -@@ -7070,9 +7071,10 @@ PyObject *rsa_public_decrypt(RSA *rsa, PyObject *from, int padding) { - tlen = RSA_public_decrypt(flen, (unsigned char *)fbuf, - (unsigned char *)tbuf, rsa, padding); - if (tlen == -1) { --m2_PyErr_Msg(_rsa_err); -+ERR_clear_error(); -+PyErr_Clear(); - PyMem_Free(tbuf); --return NULL; -+Py_RETURN_NONE; - } - - ret = PyBytes_FromStringAndSize((const char *)tbuf, tlen); -@@ -7097,9 +7099,10 @@ PyObject *rsa_public_encrypt(RSA *rsa, PyObject *from, int padding) { - tlen = RSA_public_encrypt(flen, (unsigned char *)fbuf, - (unsign
Re: [oe] [meta-python][PATCH 3/7] python3-m2crypto: upgrade 0.38.0 -> 0.39.0
On 2023-07-30 21:03, Khem Raj wrote: Hi Trevor I am seeing a failure on qemux86 on ubuntu 22.04 host and its fairly regular. https://errors.yoctoproject.org/Errors/Details/729506/ it seems rpmdeps is crashing with signal 9. I wonder if its something to do with rpm changes we might have got in core but, I can confirm that it was not an issue two weeks ago. It worked ok on Jul 17th but broke on Jul 27th CI builds. Missed this until now. I see it's been merged; is this still an issue? On Tue, Jul 25, 2023 at 12:09 PM Trevor Gamblin wrote: Remove the CVE-2020-25657 patch, as it is fixed in 0.39.0: [tgamblin@megalith m2crypto]$ git log --oneline --grep="CVE-2020-25657" 84c5395 Mitigate the Bleichenbacher timing attacks in the RSA decryption API (CVE-2020-25657) [tgamblin@megalith m2crypto]$ git tag --contains 84c53958def0f510e92119fca14d74f94215827a 0.39.0 Changelog (https://gitlab.com/m2crypto/m2crypto/-/blob/master/CHANGES?ref_type=heads): 0.39.0 - 2023-01-31 --- - SUPPORT FOR PYTHON 2 HAS BEEN DEPRECATED AND IT WILL BE COMPLETELY REMOVED IN THE NEXT RELEASE. - Remove dependency on parameterized and use unittest.subTest instead. - Upgrade embedded six.py module to 1.16.0 (really tiny inconsequential changes). - Make tests working on MacOS again (test_bio_membuf: Use fork) - Use OpenSSL_version_num() instead of unrealiable parsing of .h file. - Mitigate the Bleichenbacher timing attacks in the RSA decryption API (CVE-2020-25657) - Add functionality to extract EC key from public key + Update tests - Worked around compatibility issues with OpenSSL 3.* - Support for Twisted has been deprecated (they have their own SSL support anyway). - Generate TAP while testing. - Stop using GitHub for testing. - Accept a small deviation from time in the testsuite (for systems with non-standard HZ kernel parameter). - Use the default BIO.__del__ rather tha overriding in BIO.File (avoid a memleak). - Resolve "X509_Name.as_der() method from X509.py -> class X509_Name caused segmentation fault" Signed-off-by: Trevor Gamblin --- .../python3-m2crypto/CVE-2020-25657.patch | 176 -- ...o_0.38.0.bb => python3-m2crypto_0.39.0.bb} | 3 +- 2 files changed, 1 insertion(+), 178 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-m2crypto/CVE-2020-25657.patch rename meta-python/recipes-devtools/python/{python3-m2crypto_0.38.0.bb => python3-m2crypto_0.39.0.bb} (92%) diff --git a/meta-python/recipes-devtools/python/python3-m2crypto/CVE-2020-25657.patch b/meta-python/recipes-devtools/python/python3-m2crypto/CVE-2020-25657.patch deleted file mode 100644 index 38ecd7a276..00 --- a/meta-python/recipes-devtools/python/python3-m2crypto/CVE-2020-25657.patch +++ /dev/null @@ -1,176 +0,0 @@ -Backport patch to fix CVE-2020-25657. - -Upstream-Status: Backport [https://gitlab.com/m2crypto/m2crypto/-/commit/84c53958] - -Signed-off-by: Kai Kang - -From 84c53958def0f510e92119fca14d74f94215827a Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= -Date: Tue, 28 Jun 2022 21:17:01 +0200 -Subject: [PATCH] Mitigate the Bleichenbacher timing attacks in the RSA - decryption API (CVE-2020-25657) - -Fixes #282 - src/SWIG/_m2crypto_wrap.c | 20 - src/SWIG/_rsa.i | 20 - tests/test_rsa.py | 15 +++ - 3 files changed, 31 insertions(+), 24 deletions(-) - -diff --git a/src/SWIG/_m2crypto_wrap.c b/src/SWIG/_m2crypto_wrap.c -index aba9eb6d..a9f30da9 100644 a/src/SWIG/_m2crypto_wrap.c -+++ b/src/SWIG/_m2crypto_wrap.c -@@ -7040,9 +7040,10 @@ PyObject *rsa_private_encrypt(RSA *rsa, PyObject *from, int padding) { - tlen = RSA_private_encrypt(flen, (unsigned char *)fbuf, - (unsigned char *)tbuf, rsa, padding); - if (tlen == -1) { --m2_PyErr_Msg(_rsa_err); -+ERR_clear_error(); -+PyErr_Clear(); - PyMem_Free(tbuf); --return NULL; -+Py_RETURN_NONE; - } - - ret = PyBytes_FromStringAndSize((const char *)tbuf, tlen); -@@ -7070,9 +7071,10 @@ PyObject *rsa_public_decrypt(RSA *rsa, PyObject *from, int padding) { - tlen = RSA_public_decrypt(flen, (unsigned char *)fbuf, - (unsigned char *)tbuf, rsa, padding); - if (tlen == -1) { --m2_PyErr_Msg(_rsa_err); -+ERR_clear_error(); -+PyErr_Clear(); - PyMem_Free(tbuf); --return NULL; -+Py_RETURN_NONE; - } - - ret = PyBytes_FromStringAndSize((const char *)tbuf, tlen); -@@ -7097,9 +7099,10 @@ PyObject *rsa_public_encrypt(RSA *rsa, PyObject *from, int padding) { - tlen = RSA_public_encrypt(flen, (unsigned char *)fbuf, - (unsigned char *)tbuf, rsa, padding); - if (tlen == -1) { --m2_PyErr_Msg(_rsa_err); -+ERR_clear_error(); -+PyErr_Clear(); - PyMem_Free(tbuf); --return NULL; -+P
Re: [oe] [meta-python][PATCH 5/7] python3-pyaudio: upgrade 0.2.11 -> 0.2.13
On 2023-07-26 10:55, Khem Raj wrote: its failing for me https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/2933/steps/14/logs/stdio If there is a quick fix that will be good, since its already escaped into master, I will have to revert it otherwise. Go ahead and revert. I'm not able to reproduce this exact failure and switching to python_setuptools_build_meta causes extra issues. I'll resubmit once I've figured it out. Thanks, Trevor On Tue, Jul 25, 2023 at 12:09 PM Trevor Gamblin wrote: License-Update: Move to LICENSE.txt Changelog: 2022-12-26 Hubert Pham PyAudio 0.2.13 * Move pyaudio.Stream to pyaudio.PyAudio.Stream. The pyaudio.Stream class is now pyaudio.PyAudio.Stream, nested under the existing pyaudio.PyAudio class. This should not affect existing code, as directly accessing the module-level pyaudio.Stream class has always been unsupported (use PyAudio.open instead). Accessing pyaudio.Stream directly is deprecated and will raise a DeprecationWarning. * Deprecate PaMacCoreStreamInfo's get_channel_map() and get_flags() methods. Use the channel_map and flags properties, respectively, instead. Also deprecates internal method _get_host_api_stream_object. Calling deprecated methods will raise a DeprecationWarning. * Package PyAudio as an actual package (directory). Previously, the library deployed a single pyaudio.py file and a C extension module to the root of site-packages. Now, the library deploys a Python package. * Add default shared library path for Homebrew installations on Apple Silicon. * Refactor and cleanup. - Refactor C extension for better maintainability. - Add more unit tests. - Update and modernize examples directory. - Improve C and python style conformance, plus many cosmetic updates. 2022-07-18 Hubert Pham PyAudio 0.2.12 - Modernize build process for Microsoft Windows, using the native toolchain. Setuptool setup.py and INSTALL instructions are more streamlined. Building from Cygwin/MinGW is no longer supported nor tested. Thanks to Sean Zimmermann for the patches and general help! - Change default frames per buffer size to paFramesPerBufferUnspecified. Previously, pyaudio.py set a default frames per buffer size of 1024, which can lead to dropped frames on some systems. Now, by default, PortAudio selects the buffer size based on host and latency requirements. Thanks to Jason Hihn for the suggestion! - Minor fixes and refactoring for compatibility with Python 3.7+. Updates include: * Remove call to deprecated PyEval_InitThreads() for Python 3.7+ * Use Py_ssize_t types in appropriate places (for Python 3.10+). * Remove the min macro to ease compilation for Windows. - Use the locale's preferred encoding to decode device names. Thanks to Eiichi Takamori for the patch! - Unit tests: add skipIf decorators to skip tests that require hardware. Set the PYAUDIO_SKIP_HW_TESTS environment variable to disable tests that require sound hardware, useful for (automated) test environments without access to audio devices. Thanks to Matěj Cepl for the suggestion and patch! - Documentation, examples, and unit tests: various fixes. * Add more unit tests and repair a few that test the GIL on macOS. * Remove examples/error.py, which is redundant with tests/error_tests.py. * Fix type documentation of return value types in docstrings. Thanks to Vasily Zakharov for pointing out the return-value type errors! - Modernize packaging: add LICENSE.txt, pyproject.toml, and classifiers. Signed-off-by: Trevor Gamblin --- ...{python3-pyaudio_0.2.11.bb => python3-pyaudio_0.2.13.bb} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename meta-python/recipes-devtools/python/{python3-pyaudio_0.2.11.bb => python3-pyaudio_0.2.13.bb} (53%) diff --git a/meta-python/recipes-devtools/python/python3-pyaudio_0.2.11.bb b/meta-python/recipes-devtools/python/python3-pyaudio_0.2.13.bb similarity index 53% rename from meta-python/recipes-devtools/python/python3-pyaudio_0.2.11.bb rename to meta-python/recipes-devtools/python/python3-pyaudio_0.2.13.bb index 802ca35100..dbeed9c2d8 100644 --- a/meta-python/recipes-devtools/python/python3-pyaudio_0.2.11.bb +++ b/meta-python/recipes-devtools/python/python3-pyaudio_0.2.13.bb @@ -1,12 +1,12 @@ SUMMARY = "PyAudio provides Python bindings for PortAudio, the cross-platform audio I/O library" SECTION = "devel/python" LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://README;md5=288793c2b9b05bd67abbd2a8f5d144f7" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=7c3152b432b96d6dc4a1cb35397da9ec" PYPI_PACKAGE = "PyAudio" -SRC_URI[md5sum] = "7e4c88139284033f67b4336c74eda3b8" -SRC
[oe] [meta-python][PATCH 7/7] python3-sqlparse: upgrade 0.4.3 -> 0.4.4
- Use python_flit_core instead of setuptools3 - Modify 0001-sqlparse-change-shebang-to-python3.patch to apply on 0.4.4 - Remove CVE-2023-30608.patch since it's now upstream: [tgamblin@megalith sqlparse]$ git tag --contains c457abd 0.4.4 Changelog (https://github.com/andialbrecht/sqlparse/blob/master/CHANGELOG): Release 0.4.4 (Apr 18, 2023) Notable Changes * IMPORTANT: This release fixes a security vulnerability in the parser where a regular expression vulnerable to ReDOS (Regular Expression Denial of Service) was used. See the security advisory for details: https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-rrm6-wvj7-cwh2 The vulnerability was discovered by @erik-krogh from GitHub Security Lab (GHSL). Thanks for reporting! Bug Fixes * Revert a change from 0.4.0 that changed IN to be a comparison (issue694). The primary expectation is that IN is treated as a keyword and not as a comparison operator. That also follows the definition of reserved keywords for the major SQL syntax definitions. * Fix regular expressions for string parsing. Other * sqlparse now uses pyproject.toml instead of setup.cfg (issue685). Signed-off-by: Trevor Gamblin --- ...1-sqlparse-change-shebang-to-python3.patch | 80 ++- .../python3-sqlparse/CVE-2023-30608.patch | 51 ...rse_0.4.3.bb => python3-sqlparse_0.4.4.bb} | 5 +- 3 files changed, 7 insertions(+), 129 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-sqlparse/CVE-2023-30608.patch rename meta-python/recipes-devtools/python/{python3-sqlparse_0.4.3.bb => python3-sqlparse_0.4.4.bb} (78%) diff --git a/meta-python/recipes-devtools/python/python3-sqlparse/0001-sqlparse-change-shebang-to-python3.patch b/meta-python/recipes-devtools/python/python3-sqlparse/0001-sqlparse-change-shebang-to-python3.patch index 94121340d5..0c9f29a6b8 100644 --- a/meta-python/recipes-devtools/python/python3-sqlparse/0001-sqlparse-change-shebang-to-python3.patch +++ b/meta-python/recipes-devtools/python/python3-sqlparse/0001-sqlparse-change-shebang-to-python3.patch @@ -1,4 +1,4 @@ -From 7fd00ab8c1b663052d57e735b6b956d5c92fbaed Mon Sep 17 00:00:00 2001 +From f236a30dc8528b6f114201580f1efdcc1c447d43 Mon Sep 17 00:00:00 2001 From: Changqing Li Date: Mon, 9 Mar 2020 13:10:37 +0800 Subject: [PATCH] sqlparse: change shebang to python3 @@ -12,80 +12,10 @@ dropped. Signed-off-by: Changqing Li Signed-off-by: Leon Anavi --- - 0001-sqlparse-change-shebang-to-python3.patch | 51 +++ - setup.py | 2 +- - sqlparse/__main__.py | 2 +- - sqlparse/cli.py | 2 +- - 4 files changed, 54 insertions(+), 3 deletions(-) - create mode 100644 0001-sqlparse-change-shebang-to-python3.patch + sqlparse/__main__.py | 2 +- + sqlparse/cli.py | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) -diff --git a/0001-sqlparse-change-shebang-to-python3.patch b/0001-sqlparse-change-shebang-to-python3.patch -new file mode 100644 -index 000..ad6c50f /dev/null -+++ b/0001-sqlparse-change-shebang-to-python3.patch -@@ -0,0 +1,51 @@ -+From 10c9d3341d64d697f678a64ae707f6bda21565bb Mon Sep 17 00:00:00 2001 -+From: Changqing Li -+Date: Mon, 9 Mar 2020 13:10:37 +0800 -+Subject: [PATCH] sqlparse: change shebang to python3 -+ -+Upstream-Status: Pending -+ -+Don't send upstream since upstream still support python2, -+we can only make this change after python2 is offcially -+dropped. -+ -+Signed-off-by: Changqing Li -+--- -+ setup.py | 2 +- -+ sqlparse/__main__.py | 2 +- -+ sqlparse/cli.py | 2 +- -+ 3 files changed, 3 insertions(+), 3 deletions(-) -+ -+diff --git a/setup.py b/setup.py -+index 345d0ce..ce3abc3 100644 -+--- a/setup.py - b/setup.py -+@@ -1,4 +1,4 @@ -+-#!/usr/bin/env python -++#!/usr/bin/env python3 -+ # -*- coding: utf-8 -*- -+ # -+ # Copyright (C) 2009-2018 the sqlparse authors and contributors -+diff --git a/sqlparse/__main__.py b/sqlparse/__main__.py -+index 867d75d..dd0c074 100644 -+--- a/sqlparse/__main__.py - b/sqlparse/__main__.py -+@@ -1,4 +1,4 @@ -+-#!/usr/bin/env python -++#!/usr/bin/env python3 -+ # -*- coding: utf-8 -*- -+ # -+ # Copyright (C) 2009-2018 the sqlparse authors and contributors -+diff --git a/sqlparse/cli.py b/sqlparse/cli.py -+index 2a5..8bf050a 100755 -+--- a/sqlparse/cli.py - b/sqlparse/cli.py -+@@ -1,4 +1,4 @@ -+-#!/usr/bin/env python -++#!/usr/bin/env python3 -+ # -*- coding: utf-8 -*- -+ # -+ # Copyright (C) 2009-2018 the sqlparse authors and contributors -+-- -+2.7.4 -+ -diff --git a/setup.py b/setup.py -index ede0aff..dc6a323 100644 a/setup.py -+++ b/setup.py -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python3 - # - # Copyright (C) 2009-2020 the sqlparse authors and contributors - # diff --git a/sqlparse/__main__.py b/sqlparse/__main__.py index 2bf2513..6a3a1
[oe] [meta-python][PATCH 4/7] python3-matplotlib: upgrade 3.6.3 -> 3.7.2
- Adjust target lines in setup.py for LIC_FILES_CHKSUM, since the content of interest has moved (but not changed) - Tweak matplotlib-disable-download.patch to apply on 3.7.2 - Remove backported patch since it's in 3.7.2: [tgamblin@megalith matplotlib]$ git log --oneline --grep="removed RandomNumberGenerator class" 601d92a885 removed RandomNumberGenerator class, included , replaced random_shuffle with shuffle and used mersenne twister engine to generate uniform random bit generator for the shuffle. [tgamblin@megalith matplotlib]$ git tag --contains 601d92a885 v3.7.0 v3.7.0rc1 v3.7.1 v3.7.2 Changelog: https://github.com/matplotlib/matplotlib/releases Signed-off-by: Trevor Gamblin --- ...mberGenerator-class-included-random-.patch | 59 --- .../matplotlib-disable-download.patch | 28 - ...b_3.6.3.bb => python3-matplotlib_3.7.2.bb} | 7 ++- 3 files changed, 18 insertions(+), 76 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-matplotlib/0001-removed-RandomNumberGenerator-class-included-random-.patch rename meta-python/recipes-devtools/python/{python3-matplotlib_3.6.3.bb => python3-matplotlib_3.7.2.bb} (90%) diff --git a/meta-python/recipes-devtools/python/python3-matplotlib/0001-removed-RandomNumberGenerator-class-included-random-.patch b/meta-python/recipes-devtools/python/python3-matplotlib/0001-removed-RandomNumberGenerator-class-included-random-.patch deleted file mode 100644 index 1f9b8cdeaf..00 --- a/meta-python/recipes-devtools/python/python3-matplotlib/0001-removed-RandomNumberGenerator-class-included-random-.patch +++ /dev/null @@ -1,59 +0,0 @@ -From 3eb9987b02cc10b93e09219ddc86aa6be5f10177 Mon Sep 17 00:00:00 2001 -From: tybeller -Date: Fri, 30 Sep 2022 16:13:41 -0400 -Subject: [PATCH] removed RandomNumberGenerator class, included , - replaced random_shuffle with shuffle and used mersenne twister engine to - generate uniform random bit generator for the shuffle. - -Upstream-Status: Backport [https://github.com/matplotlib/matplotlib/commit/601d92a8850] -Signed-off-by: Khem Raj - src/tri/_tri.cpp | 20 - 1 file changed, 4 insertions(+), 16 deletions(-) - -diff --git a/src/tri/_tri.cpp b/src/tri/_tri.cpp -index b7a87783de..6e639eea44 100644 a/src/tri/_tri.cpp -+++ b/src/tri/_tri.cpp -@@ -12,6 +12,7 @@ - - #include - #include -+#include - - - TriEdge::TriEdge() -@@ -1465,8 +1466,8 @@ TrapezoidMapTriFinder::initialize() - _tree->assert_valid(false); - - // Randomly shuffle all edges other than first 2. --RandomNumberGenerator rng(1234); --std::random_shuffle(_edges.begin()+2, _edges.end(), rng); -+std::mt19937 rng(1234); -+std::shuffle(_edges.begin()+2, _edges.end(), rng); - - // Add edges, one at a time, to tree. - size_t nedges = _edges.size(); -@@ -2055,17 +2056,4 @@ TrapezoidMapTriFinder::Trapezoid::set_upper_right(Trapezoid* upper_right_) - upper_right = upper_right_; - if (upper_right != 0) - upper_right->upper_left = this; --} -- -- -- --RandomNumberGenerator::RandomNumberGenerator(unsigned long seed) --: _m(21870), _a(1291), _c(4621), _seed(seed % _m) --{} -- --unsigned long --RandomNumberGenerator::operator()(unsigned long max_value) --{ --_seed = (_seed*_a + _c) % _m; --return (_seed*max_value) / _m; --} -+} -\ No newline at end of file --- -2.39.0 - diff --git a/meta-python/recipes-devtools/python/python3-matplotlib/matplotlib-disable-download.patch b/meta-python/recipes-devtools/python/python3-matplotlib/matplotlib-disable-download.patch index 899cac624a..aea8f62ea7 100644 --- a/meta-python/recipes-devtools/python/python3-matplotlib/matplotlib-disable-download.patch +++ b/meta-python/recipes-devtools/python/python3-matplotlib/matplotlib-disable-download.patch @@ -4,19 +4,17 @@ Upstream-Status: Inappropriate [disable feature] Signed-off-by: Mark Hatle +Update patch to fit on 3.7.2. + +Signed-off-by: Trevor Gamblin + +diff --git a/setup.py b/setup.py +index 0bea13fa6f..f39d8fc871 100644 --- a/setup.py +++ b/setup.py -@@ -303,7 +303,6 @@ setup( # Finally, pass this all along t - setup_requires=[ - "certifi>=2020.06.20", - "numpy>=1.19", --"setuptools_scm>=7", - ], - install_requires=[ - "contourpy>=1.0.1", -@@ -315,13 +314,7 @@ setup( # Finally, pass this all along t +@@ -327,13 +327,7 @@ setup( # Finally, pass this all along to setuptools to do the heavy lifting. "pillow>=6.2.0", - "pyparsing>=2.2.1", + "pyparsing>=2.3.1,<3.1", "python-dateutil>=2.7", -] + ( -# Installing from a git checkout that is not producing a wheel. @@ -26,12 +24,14 @@ Signed-off-by: Mark Hatle -) else [] -), +], - use_scm_version={ - "v
[oe] [meta-python][PATCH 5/7] python3-pyaudio: upgrade 0.2.11 -> 0.2.13
License-Update: Move to LICENSE.txt Changelog: 2022-12-26 Hubert Pham PyAudio 0.2.13 * Move pyaudio.Stream to pyaudio.PyAudio.Stream. The pyaudio.Stream class is now pyaudio.PyAudio.Stream, nested under the existing pyaudio.PyAudio class. This should not affect existing code, as directly accessing the module-level pyaudio.Stream class has always been unsupported (use PyAudio.open instead). Accessing pyaudio.Stream directly is deprecated and will raise a DeprecationWarning. * Deprecate PaMacCoreStreamInfo's get_channel_map() and get_flags() methods. Use the channel_map and flags properties, respectively, instead. Also deprecates internal method _get_host_api_stream_object. Calling deprecated methods will raise a DeprecationWarning. * Package PyAudio as an actual package (directory). Previously, the library deployed a single pyaudio.py file and a C extension module to the root of site-packages. Now, the library deploys a Python package. * Add default shared library path for Homebrew installations on Apple Silicon. * Refactor and cleanup. - Refactor C extension for better maintainability. - Add more unit tests. - Update and modernize examples directory. - Improve C and python style conformance, plus many cosmetic updates. 2022-07-18 Hubert Pham PyAudio 0.2.12 - Modernize build process for Microsoft Windows, using the native toolchain. Setuptool setup.py and INSTALL instructions are more streamlined. Building from Cygwin/MinGW is no longer supported nor tested. Thanks to Sean Zimmermann for the patches and general help! - Change default frames per buffer size to paFramesPerBufferUnspecified. Previously, pyaudio.py set a default frames per buffer size of 1024, which can lead to dropped frames on some systems. Now, by default, PortAudio selects the buffer size based on host and latency requirements. Thanks to Jason Hihn for the suggestion! - Minor fixes and refactoring for compatibility with Python 3.7+. Updates include: * Remove call to deprecated PyEval_InitThreads() for Python 3.7+ * Use Py_ssize_t types in appropriate places (for Python 3.10+). * Remove the min macro to ease compilation for Windows. - Use the locale's preferred encoding to decode device names. Thanks to Eiichi Takamori for the patch! - Unit tests: add skipIf decorators to skip tests that require hardware. Set the PYAUDIO_SKIP_HW_TESTS environment variable to disable tests that require sound hardware, useful for (automated) test environments without access to audio devices. Thanks to Matěj Cepl for the suggestion and patch! - Documentation, examples, and unit tests: various fixes. * Add more unit tests and repair a few that test the GIL on macOS. * Remove examples/error.py, which is redundant with tests/error_tests.py. * Fix type documentation of return value types in docstrings. Thanks to Vasily Zakharov for pointing out the return-value type errors! - Modernize packaging: add LICENSE.txt, pyproject.toml, and classifiers. Signed-off-by: Trevor Gamblin --- ...{python3-pyaudio_0.2.11.bb => python3-pyaudio_0.2.13.bb} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename meta-python/recipes-devtools/python/{python3-pyaudio_0.2.11.bb => python3-pyaudio_0.2.13.bb} (53%) diff --git a/meta-python/recipes-devtools/python/python3-pyaudio_0.2.11.bb b/meta-python/recipes-devtools/python/python3-pyaudio_0.2.13.bb similarity index 53% rename from meta-python/recipes-devtools/python/python3-pyaudio_0.2.11.bb rename to meta-python/recipes-devtools/python/python3-pyaudio_0.2.13.bb index 802ca35100..dbeed9c2d8 100644 --- a/meta-python/recipes-devtools/python/python3-pyaudio_0.2.11.bb +++ b/meta-python/recipes-devtools/python/python3-pyaudio_0.2.13.bb @@ -1,12 +1,12 @@ SUMMARY = "PyAudio provides Python bindings for PortAudio, the cross-platform audio I/O library" SECTION = "devel/python" LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://README;md5=288793c2b9b05bd67abbd2a8f5d144f7" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=7c3152b432b96d6dc4a1cb35397da9ec" PYPI_PACKAGE = "PyAudio" -SRC_URI[md5sum] = "7e4c88139284033f67b4336c74eda3b8" -SRC_URI[sha256sum] = "93bfde30e0b64e63a46f2fd77e85c41fd51182a4a3413d9edfaf9ffaa26efb74" +SRC_URI[md5sum] = "41199ffd2abbdaf1ce6b88cf8af48cc5" +SRC_URI[sha256sum] = "26bccc81e4243d1c0ff5487e6b481de6329fcd65c79365c267cef38f363a2b56" inherit pypi setuptools3 -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#104022): https://lists.openembedded.org/g/openembedded-devel/message/104022 Mute This Topic: https://lists.openembedded.org/mt/100356782/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 6/7] python3-pybind11: upgrade 2.10.3 -> 2.11.1
Changelog: https://github.com/pybind/pybind11/releases Signed-off-by: Trevor Gamblin --- .../{python3-pybind11_2.10.3.bb => python3-pybind11_2.11.1.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-pybind11_2.10.3.bb => python3-pybind11_2.11.1.bb} (92%) diff --git a/meta-python/recipes-devtools/python/python3-pybind11_2.10.3.bb b/meta-python/recipes-devtools/python/python3-pybind11_2.11.1.bb similarity index 92% rename from meta-python/recipes-devtools/python/python3-pybind11_2.10.3.bb rename to meta-python/recipes-devtools/python/python3-pybind11_2.11.1.bb index bb604982d0..d51dd905a5 100644 --- a/meta-python/recipes-devtools/python/python3-pybind11_2.10.3.bb +++ b/meta-python/recipes-devtools/python/python3-pybind11_2.11.1.bb @@ -7,7 +7,7 @@ DEPENDS = "boost" SRC_URI = "git://github.com/pybind/pybind11.git;branch=stable;protocol=https" -SRCREV = "0bd8896a4010f2d91b2340570c24fa08606ec406" +SRCREV = "8a099e44b3d5f85b20f05828d919d2332a8de841" S = "${WORKDIR}/git" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#104023): https://lists.openembedded.org/g/openembedded-devel/message/104023 Mute This Topic: https://lists.openembedded.org/mt/100356784/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 3/7] python3-m2crypto: upgrade 0.38.0 -> 0.39.0
Remove the CVE-2020-25657 patch, as it is fixed in 0.39.0: [tgamblin@megalith m2crypto]$ git log --oneline --grep="CVE-2020-25657" 84c5395 Mitigate the Bleichenbacher timing attacks in the RSA decryption API (CVE-2020-25657) [tgamblin@megalith m2crypto]$ git tag --contains 84c53958def0f510e92119fca14d74f94215827a 0.39.0 Changelog (https://gitlab.com/m2crypto/m2crypto/-/blob/master/CHANGES?ref_type=heads): 0.39.0 - 2023-01-31 --- - SUPPORT FOR PYTHON 2 HAS BEEN DEPRECATED AND IT WILL BE COMPLETELY REMOVED IN THE NEXT RELEASE. - Remove dependency on parameterized and use unittest.subTest instead. - Upgrade embedded six.py module to 1.16.0 (really tiny inconsequential changes). - Make tests working on MacOS again (test_bio_membuf: Use fork) - Use OpenSSL_version_num() instead of unrealiable parsing of .h file. - Mitigate the Bleichenbacher timing attacks in the RSA decryption API (CVE-2020-25657) - Add functionality to extract EC key from public key + Update tests - Worked around compatibility issues with OpenSSL 3.* - Support for Twisted has been deprecated (they have their own SSL support anyway). - Generate TAP while testing. - Stop using GitHub for testing. - Accept a small deviation from time in the testsuite (for systems with non-standard HZ kernel parameter). - Use the default BIO.__del__ rather tha overriding in BIO.File (avoid a memleak). - Resolve "X509_Name.as_der() method from X509.py -> class X509_Name caused segmentation fault" Signed-off-by: Trevor Gamblin --- .../python3-m2crypto/CVE-2020-25657.patch | 176 -- ...o_0.38.0.bb => python3-m2crypto_0.39.0.bb} | 3 +- 2 files changed, 1 insertion(+), 178 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-m2crypto/CVE-2020-25657.patch rename meta-python/recipes-devtools/python/{python3-m2crypto_0.38.0.bb => python3-m2crypto_0.39.0.bb} (92%) diff --git a/meta-python/recipes-devtools/python/python3-m2crypto/CVE-2020-25657.patch b/meta-python/recipes-devtools/python/python3-m2crypto/CVE-2020-25657.patch deleted file mode 100644 index 38ecd7a276..00 --- a/meta-python/recipes-devtools/python/python3-m2crypto/CVE-2020-25657.patch +++ /dev/null @@ -1,176 +0,0 @@ -Backport patch to fix CVE-2020-25657. - -Upstream-Status: Backport [https://gitlab.com/m2crypto/m2crypto/-/commit/84c53958] - -Signed-off-by: Kai Kang - -From 84c53958def0f510e92119fca14d74f94215827a Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= -Date: Tue, 28 Jun 2022 21:17:01 +0200 -Subject: [PATCH] Mitigate the Bleichenbacher timing attacks in the RSA - decryption API (CVE-2020-25657) - -Fixes #282 - src/SWIG/_m2crypto_wrap.c | 20 - src/SWIG/_rsa.i | 20 - tests/test_rsa.py | 15 +++ - 3 files changed, 31 insertions(+), 24 deletions(-) - -diff --git a/src/SWIG/_m2crypto_wrap.c b/src/SWIG/_m2crypto_wrap.c -index aba9eb6d..a9f30da9 100644 a/src/SWIG/_m2crypto_wrap.c -+++ b/src/SWIG/_m2crypto_wrap.c -@@ -7040,9 +7040,10 @@ PyObject *rsa_private_encrypt(RSA *rsa, PyObject *from, int padding) { - tlen = RSA_private_encrypt(flen, (unsigned char *)fbuf, - (unsigned char *)tbuf, rsa, padding); - if (tlen == -1) { --m2_PyErr_Msg(_rsa_err); -+ERR_clear_error(); -+PyErr_Clear(); - PyMem_Free(tbuf); --return NULL; -+Py_RETURN_NONE; - } - - ret = PyBytes_FromStringAndSize((const char *)tbuf, tlen); -@@ -7070,9 +7071,10 @@ PyObject *rsa_public_decrypt(RSA *rsa, PyObject *from, int padding) { - tlen = RSA_public_decrypt(flen, (unsigned char *)fbuf, - (unsigned char *)tbuf, rsa, padding); - if (tlen == -1) { --m2_PyErr_Msg(_rsa_err); -+ERR_clear_error(); -+PyErr_Clear(); - PyMem_Free(tbuf); --return NULL; -+Py_RETURN_NONE; - } - - ret = PyBytes_FromStringAndSize((const char *)tbuf, tlen); -@@ -7097,9 +7099,10 @@ PyObject *rsa_public_encrypt(RSA *rsa, PyObject *from, int padding) { - tlen = RSA_public_encrypt(flen, (unsigned char *)fbuf, - (unsigned char *)tbuf, rsa, padding); - if (tlen == -1) { --m2_PyErr_Msg(_rsa_err); -+ERR_clear_error(); -+PyErr_Clear(); - PyMem_Free(tbuf); --return NULL; -+Py_RETURN_NONE; - } - - ret = PyBytes_FromStringAndSize((const char *)tbuf, tlen); -@@ -7124,9 +7127,10 @@ PyObject *rsa_private_decrypt(RSA *rsa, PyObject *from, int padding) { - tlen = RSA_private_decrypt(flen, (unsigned char *)fbuf, - (unsigned char *)tbuf, rsa, padding); - if (tlen == -1) { --m2_PyErr_Msg(_rsa_err); -+ERR_clear_error(); -+PyErr_Clear(); - PyMem_Free(tbuf); --return NULL; -+Py_RETURN_NONE; - } - ret = PyBytes_FromStringAndSize((const char *)tbuf, tlen); - -diff --git a/src/
[oe] [meta-python][PATCH 1/7] python3-fastjsonschema: upgrade 2.16.3 -> 2.18.0
Changelog (https://github.com/horejsek/python-fastjsonschema/blob/master/CHANGELOG.txt): === 2.18.0 (2023-07-22) * Improved error message for required props - only missing are reported * Fixed support of boolean schema in if-then-else application === 2.17.1 (2023-05-22) * Fixed tests in sdist === 2.17.0 (2023-05-21) * Added support for Decimals * Added tests in sdist Signed-off-by: Trevor Gamblin --- ...astjsonschema_2.16.3.bb => python3-fastjsonschema_2.18.0.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-fastjsonschema_2.16.3.bb => python3-fastjsonschema_2.18.0.bb} (94%) diff --git a/meta-python/recipes-devtools/python/python3-fastjsonschema_2.16.3.bb b/meta-python/recipes-devtools/python/python3-fastjsonschema_2.18.0.bb similarity index 94% rename from meta-python/recipes-devtools/python/python3-fastjsonschema_2.16.3.bb rename to meta-python/recipes-devtools/python/python3-fastjsonschema_2.18.0.bb index 689fe51a33..e0be7b6160 100644 --- a/meta-python/recipes-devtools/python/python3-fastjsonschema_2.16.3.bb +++ b/meta-python/recipes-devtools/python/python3-fastjsonschema_2.18.0.bb @@ -6,7 +6,7 @@ HOMEPAGE = "https://github.com/seznam/python-fastjsonschema"; LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=18950e8362b69c0c617b42b8bd8e7532" -SRCREV = "4f11540d2e8f7c0aeae1230cdbc65a99f1b277c4" +SRCREV = "756540088687cda351390f687b92e602feaa7dc6" PYPI_SRC_URI = "git://github.com/horejsek/python-fastjsonschema;protocol=https;branch=master" SRC_URI += "file://run-ptest" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#104018): https://lists.openembedded.org/g/openembedded-devel/message/104018 Mute This Topic: https://lists.openembedded.org/mt/100356777/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 2/7] python3-jsonpatch: upgrade 1.32 -> 1.33
Update-License: Change name from COPYING to LICENSE No changelog provided. Commit log: 0b05203 (tag: v1.33) bump version to 1.33 45cfe90 Switch to GitHub actions (#144) 33562b0 Update license text to match official 3-clause-BSD (#142) a76f742 feat(jsondiff): Add support for preserving Unicode characters (#145) 714df3c docs: fix simple typo, raies -> raise (#135) e0b3a9b Merge pull request #134 from Ventilateur/b/fix-invalid-remove-index 46eef55 remove unused import db194f8 fix invalid remove index a652648 Merge pull request #132 from JulienPalard/mdk/TypeError c9bfb91 FIX: TypeError when one forgot to put its operation in a list. Signed-off-by: Trevor Gamblin --- .../{python3-jsonpatch_1.32.bb => python3-jsonpatch_1.33.bb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta-python/recipes-devtools/python/{python3-jsonpatch_1.32.bb => python3-jsonpatch_1.33.bb} (65%) diff --git a/meta-python/recipes-devtools/python/python3-jsonpatch_1.32.bb b/meta-python/recipes-devtools/python/python3-jsonpatch_1.33.bb similarity index 65% rename from meta-python/recipes-devtools/python/python3-jsonpatch_1.32.bb rename to meta-python/recipes-devtools/python/python3-jsonpatch_1.33.bb index 2a653cce88..3d6deb2a61 100644 --- a/meta-python/recipes-devtools/python/python3-jsonpatch_1.32.bb +++ b/meta-python/recipes-devtools/python/python3-jsonpatch_1.33.bb @@ -1,11 +1,11 @@ SUMMARY = "Appling JSON patches in Python 2.6+ and 3.x" HOMEPAGE = "https://github.com/stefankoegl/python-json-patch"; LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://COPYING;md5=32b15c843b7a329130f4e266a281ebb3" +LIC_FILES_CHKSUM = "file://LICENSE;md5=4f81c84f9a053e31fe9402a2a4e78864" inherit pypi setuptools3 -SRC_URI[sha256sum] = "b6ddfe6c3db30d81a96aaeceb6baf916094ffa23d7dd5fa2c13e13f8b6e600c2" +SRC_URI[sha256sum] = "9fcd4009c41e6d12348b4a0ff2563ba56a2923a7dfee731d004e212e1ee5030c" RDEPENDS:${PN} += " \ ${PYTHON_PN}-json \ -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#104019): https://lists.openembedded.org/g/openembedded-devel/message/104019 Mute This Topic: https://lists.openembedded.org/mt/100356778/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH] python3-beautifulsoup4: upgrade 4.11.1 -> 4.12.2
beautifulsoup4 uses hatchling now, so inherit python_hatchling. License-Update: Rename from COPYING.txt to LICENSE, update year Changelog: https://git.launchpad.net/beautifulsoup/tree/CHANGELOG Signed-off-by: Trevor Gamblin --- ...ifulsoup4_4.11.1.bb => python3-beautifulsoup4_4.12.2.bb} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename meta-python/recipes-devtools/python/{python3-beautifulsoup4_4.11.1.bb => python3-beautifulsoup4_4.12.2.bb} (61%) diff --git a/meta-python/recipes-devtools/python/python3-beautifulsoup4_4.11.1.bb b/meta-python/recipes-devtools/python/python3-beautifulsoup4_4.12.2.bb similarity index 61% rename from meta-python/recipes-devtools/python/python3-beautifulsoup4_4.11.1.bb rename to meta-python/recipes-devtools/python/python3-beautifulsoup4_4.12.2.bb index 3037ea83c0..7eb2d7c345 100644 --- a/meta-python/recipes-devtools/python/python3-beautifulsoup4_4.11.1.bb +++ b/meta-python/recipes-devtools/python/python3-beautifulsoup4_4.12.2.bb @@ -1,11 +1,11 @@ SUMMARY = "Screen-scraping library" HOMEPAGE = " https://www.crummy.com/software/BeautifulSoup/bs4"; LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://COPYING.txt;md5=15a76c7c51ecfc5c094d04f3ccd41a09" +LIC_FILES_CHKSUM = "file://LICENSE;md5=96e0034f7c9443910c486773aa1ed9ac" -SRC_URI[sha256sum] = "ad9aa55b65ef2808eb405f46cf74df7fcb7044d5cbc26487f96eb2ef2e436693" +SRC_URI[sha256sum] = "492bbc69dca35d12daac71c4db1bfff0c876c00ef4a2ffacce226d4638eb72da" -inherit pypi setuptools3 +inherit pypi python_hatchling RDEPENDS:${PN} = "\ ${PYTHON_PN}-html5lib \ -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#104017): https://lists.openembedded.org/g/openembedded-devel/message/104017 Mute This Topic: https://lists.openembedded.org/mt/100353069/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 5/5] python3-werkzeug: upgrade 2.2.3 -> 2.3.6
Upstream states that the build backend is now flit, but inheriting python_flit_core alone still causes the following error: | ModuleNotFoundError: No module named 'setuptools' | | ERROR Backend 'setuptools.build_meta' is not available. Instead, inherit python_setuptools_build_meta, which works OK. Changelog: https://github.com/pallets/werkzeug/blob/main/CHANGES.rst Signed-off-by: Trevor Gamblin --- .../{python3-werkzeug_2.2.3.bb => python3-werkzeug_2.3.6.bb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta-python/recipes-devtools/python/{python3-werkzeug_2.2.3.bb => python3-werkzeug_2.3.6.bb} (90%) diff --git a/meta-python/recipes-devtools/python/python3-werkzeug_2.2.3.bb b/meta-python/recipes-devtools/python/python3-werkzeug_2.3.6.bb similarity index 90% rename from meta-python/recipes-devtools/python/python3-werkzeug_2.2.3.bb rename to meta-python/recipes-devtools/python/python3-werkzeug_2.3.6.bb index 5565fb4ead..11441fca2b 100644 --- a/meta-python/recipes-devtools/python/python3-werkzeug_2.2.3.bb +++ b/meta-python/recipes-devtools/python/python3-werkzeug_2.3.6.bb @@ -12,9 +12,9 @@ LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=5dc88300786f1c214c1e9827a5229462" PYPI_PACKAGE = "Werkzeug" -SRC_URI[sha256sum] = "2e1ccc9417d4da358b9de6f174e3ac094391ea1d4fbef2d667865d819dfd0afe" +SRC_URI[sha256sum] = "98c774df2f91b05550078891dee5f0eb0cb797a522c757a2452b9cee5b202330" -inherit pypi setuptools3 +inherit pypi python_setuptools_build_meta CLEANBROKEN = "1" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#104016): https://lists.openembedded.org/g/openembedded-devel/message/104016 Mute This Topic: https://lists.openembedded.org/mt/100350999/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 4/5] python3-snagboot: upgrade 1.0 -> 1.1
The udev file was updated and renamed in 1.1 to 50-snagboot.rules. Changelog (https://github.com/bootlin/snagboot/releases/tag/v1.1): - udev: use uaccess tags instead of group assignments - fix and test i.MX8QM and i.MX93 supports - homogenize i.MX firmware configuration interfaces - don't require contributors to modify license headers - fix README links on PyPI Signed-off-by: Trevor Gamblin --- .../{python3-snagboot_1.0.bb => python3-snagboot_1.1.bb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta-python/recipes-devtools/python/{python3-snagboot_1.0.bb => python3-snagboot_1.1.bb} (69%) diff --git a/meta-python/recipes-devtools/python/python3-snagboot_1.0.bb b/meta-python/recipes-devtools/python/python3-snagboot_1.1.bb similarity index 69% rename from meta-python/recipes-devtools/python/python3-snagboot_1.0.bb rename to meta-python/recipes-devtools/python/python3-snagboot_1.1.bb index 1853596b46..e6f3148ce0 100644 --- a/meta-python/recipes-devtools/python/python3-snagboot_1.0.bb +++ b/meta-python/recipes-devtools/python/python3-snagboot_1.1.bb @@ -3,7 +3,7 @@ SUMMARY = "Snagboot intends to be an open-source replacement vendor-specific too LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263" -SRC_URI[sha256sum] = "c2d21cadddecfd97dd62a8b66b6f88bd56272627b9b71272e9dda6f868ee8715" +SRC_URI[sha256sum] = "40b045e6225f3544080558e4bd604d116d4cffceea80cb84307579d914e4e498" inherit pypi python_setuptools_build_meta @@ -17,5 +17,5 @@ RDEPENDS:${PN} += " \ " do_install:append() { -install -D -m 0644 ${S}/src/snagrecover/80-snagboot.rules ${D}${sysconfdir}/udev/rules.d/80-snagboot.rules +install -D -m 0644 ${S}/src/snagrecover/50-snagboot.rules ${D}${sysconfdir}/udev/rules.d/50-snagboot.rules } -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#104015): https://lists.openembedded.org/g/openembedded-devel/message/104015 Mute This Topic: https://lists.openembedded.org/mt/100350998/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 1/5] python3-semver: upgrade 2.13.0 -> 3.0.1
- Update to point at the proper license file with correct checksum. Previously it was pointing at a subset of a PKG-INFO file, which was a legacy output from distutils - Update build backend and include python3-setuptools-scm-native in DEPENDS - Modify ptest installation and run-ptest script since the tests have been moved into their own folder Changelog: https://github.com/python-semver/python-semver/releases Signed-off-by: Trevor Gamblin --- .../python/python3-semver/run-ptest | 2 +- .../python/python3-semver_2.13.0.bb | 24 - .../python/python3-semver_3.0.1.bb| 26 +++ 3 files changed, 27 insertions(+), 25 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-semver_2.13.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-semver_3.0.1.bb diff --git a/meta-python/recipes-devtools/python/python3-semver/run-ptest b/meta-python/recipes-devtools/python/python3-semver/run-ptest index 43c03b594b..cd2bc8537c 100644 --- a/meta-python/recipes-devtools/python/python3-semver/run-ptest +++ b/meta-python/recipes-devtools/python/python3-semver/run-ptest @@ -1,3 +1,3 @@ #!/bin/sh -pytest -o log_cli=true -o log_cli_level=INFO test_semver.py --disable-warnings| sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}' +pytest -o log_cli=true -o log_cli_level=INFO tests/test_semver.py --disable-warnings| sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}' diff --git a/meta-python/recipes-devtools/python/python3-semver_2.13.0.bb b/meta-python/recipes-devtools/python/python3-semver_2.13.0.bb deleted file mode 100644 index b47bcae008..00 --- a/meta-python/recipes-devtools/python/python3-semver_2.13.0.bb +++ /dev/null @@ -1,24 +0,0 @@ -DESCRIPTION = "Python module for Semantic Versioning" -HOMEPAGE = "https://github.com/k-bx/python-semver"; -BUGTRACKER = "https://github.com/k-bx/python-semver/issues"; -LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=e910b35b0ef4e1f665b9a75d6afb7709" - -SRC_URI[md5sum] = "e98b5fb283ea84daa5195087de83ebf1" -SRC_URI[sha256sum] = "fa0fe2722ee1c3f57eac478820c3a5ae2f624af8264cbdf9000c980ff7f75e3f" - -inherit pypi setuptools3 ptest - -BBCLASSEXTEND = "native nativesdk" - -SRC_URI += " \ -file://run-ptest \ -" - -RDEPENDS:${PN}-ptest += " \ -${PYTHON_PN}-pytest \ -" - -do_install_ptest() { -cp -f ${S}/test_semver.py ${D}${PTEST_PATH}/ -} diff --git a/meta-python/recipes-devtools/python/python3-semver_3.0.1.bb b/meta-python/recipes-devtools/python/python3-semver_3.0.1.bb new file mode 100644 index 00..2d85d789c7 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-semver_3.0.1.bb @@ -0,0 +1,26 @@ +DESCRIPTION = "Python module for Semantic Versioning" +HOMEPAGE = "https://github.com/python-semver/python-semver"; +BUGTRACKER = "https://github.com/python-semver/python-semver"; +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=d9da679db3bdce30a1b4328d5c474f98" + +SRC_URI[md5sum] = "b7502c12ce325eab694fed52f6f5" +SRC_URI[sha256sum] = "9ec78c5447883c67b97f98c3b6212796708191d22e4ad30f4570f840171cbce1" + +inherit pypi python_setuptools_build_meta ptest + +BBCLASSEXTEND = "native nativesdk" + +SRC_URI += " \ +file://run-ptest \ +" + +DEPENDS += " python3-setuptools-scm-native" + +RDEPENDS:${PN}-ptest += " \ +${PYTHON_PN}-pytest \ +" + +do_install_ptest() { +cp -rf ${S}/tests ${D}${PTEST_PATH}/ +} -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#104012): https://lists.openembedded.org/g/openembedded-devel/message/104012 Mute This Topic: https://lists.openembedded.org/mt/100350995/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 3/5] python3-sh: upgrade 1.14.3 -> 2.0.4
- The project uses poetry now, so inherit python_poetry_core - Add python3-asyncio and python3-compression to RDEPENDS Changelog (https://github.com/amoffat/sh/blob/develop/CHANGELOG.md): 2.0.4 - 5/13/22 - Allow ok_code to be used with fg #665 - Make sure new_group never creates a new session #675 2.0.2 / 2.0.3 (misversioned) - 2/13/22 - Performance regression when using a generator with _in #650 - Adding test support for python 3.11 2.0.0 - 2/9/22 - Executed commands now return a unicode string by default - Removed magical module-like execution contexts #636 - Added basic asyncio support via _async - Dropped support for Python < 3.8 - Bumped default tty size to more standard (24, 80) - First argument being a RunningCommand no longer automatically passes it as stdin - RunningCommand.__eq__ no longer has the side effect of executing the command #518 - _tee now supports both "err" and "out" #215 - Removed the builtin override cd link - Altered process launching model to behave more expectedly #495 - Bugfix where _no_out isn't allowed with _iter="err" #638 - Allow keyword arguments to have a list of values #529 Signed-off-by: Trevor Gamblin --- .../python/{python3-sh_1.14.3.bb => python3-sh_2.0.4.bb}| 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) rename meta-python/recipes-devtools/python/{python3-sh_1.14.3.bb => python3-sh_2.0.4.bb} (73%) diff --git a/meta-python/recipes-devtools/python/python3-sh_1.14.3.bb b/meta-python/recipes-devtools/python/python3-sh_2.0.4.bb similarity index 73% rename from meta-python/recipes-devtools/python/python3-sh_1.14.3.bb rename to meta-python/recipes-devtools/python/python3-sh_2.0.4.bb index 317f648dcd..fa9f97a8f9 100644 --- a/meta-python/recipes-devtools/python/python3-sh_1.14.3.bb +++ b/meta-python/recipes-devtools/python/python3-sh_2.0.4.bb @@ -3,14 +3,16 @@ HOMEPAGE = "https://github.com/amoffat/sh"; LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=5317094292296f03405f59ae5f6544b6" -SRC_URI[sha256sum] = "e4045b6c732d9ce75d571c79f5ac2234edd9ae4f5fa9d59b09705082bdca18c7" +SRC_URI[sha256sum] = "a18920f0839991bc9dfddb6dcc006c360b1064ba96257359f0ea356e9fa75a60" PYPI_PACKAGE = "sh" -inherit pypi setuptools3 +inherit pypi python_poetry_core RDEPENDS:${PN} += " \ +${PYTHON_PN}-asyncio \ ${PYTHON_PN}-codecs \ +${PYTHON_PN}-compression \ ${PYTHON_PN}-core \ ${PYTHON_PN}-io \ ${PYTHON_PN}-logging \ -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#104014): https://lists.openembedded.org/g/openembedded-devel/message/104014 Mute This Topic: https://lists.openembedded.org/mt/100350997/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 2/5] python3-send2trash: upgrade 1.8.0 -> 1.8.2
- Update build backend since they use a pyproject.toml file now. - Add python3-io to RDEPENDS so that the module can be imported. Changelog (https://github.com/arsenetar/send2trash/releases): 1.8.2 - Add fallback to HOMETRASH when cross device errors happen in plat_other (#26, #41, #63) - win/legacy: tiny logic simplification by @BoboTiG in #77 - TravisCI is not used anymore by @sobolevn in #73 - fix(ci): Update to latest actions, fix python versions by @arsenetar in #78 1.8.1b0 - Add fallback to HOMETRASH when cross device errors happen in plat_other (#26, #41, #63) Signed-off-by: Trevor Gamblin --- ...3-send2trash_1.8.0.bb => python3-send2trash_1.8.2.bb} | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) rename meta-python/recipes-extended/send2trash/{python3-send2trash_1.8.0.bb => python3-send2trash_1.8.2.bb} (51%) diff --git a/meta-python/recipes-extended/send2trash/python3-send2trash_1.8.0.bb b/meta-python/recipes-extended/send2trash/python3-send2trash_1.8.2.bb similarity index 51% rename from meta-python/recipes-extended/send2trash/python3-send2trash_1.8.0.bb rename to meta-python/recipes-extended/send2trash/python3-send2trash_1.8.2.bb index a20b0194f8..eac89e6297 100644 --- a/meta-python/recipes-extended/send2trash/python3-send2trash_1.8.0.bb +++ b/meta-python/recipes-extended/send2trash/python3-send2trash_1.8.2.bb @@ -2,10 +2,13 @@ SUMMARY = "Send file to trash natively under Mac OS X, Windows and Linux" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=a02659c2d5f4cc626e4dcf6504b865eb" -inherit pypi setuptools3 +inherit pypi python_setuptools_build_meta -SRC_URI[sha256sum] = "d2c24762fd3759860a0aff155e45871447ea58d2be6bdd39b5c8f966a0c99c2d" +SRC_URI[sha256sum] = "c132d59fa44b9ca2b1699af5c86f57ce9f4c5eb56629d5d55fbb7a35f84e2312" PYPI_PACKAGE = "Send2Trash" -RDEPENDS:${PN} += "python3-datetime" +RDEPENDS:${PN} += "\ +python3-io \ +python3-datetime \ +" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#104013): https://lists.openembedded.org/g/openembedded-devel/message/104013 Mute This Topic: https://lists.openembedded.org/mt/100350996/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH] python3-rdflib: upgrade 6.2.0 -> 6.3.2
The LICENSE file's copyright year was updated, so the checksum changed. rdflib now uses poetry as the backend, so switch from setuptools3. Changelog: https://github.com/RDFLib/rdflib/releases Signed-off-by: Trevor Gamblin --- .../{python3-rdflib_6.2.0.bb => python3-rdflib_6.3.2.bb}| 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename meta-python/recipes-devtools/python/{python3-rdflib_6.2.0.bb => python3-rdflib_6.3.2.bb} (63%) diff --git a/meta-python/recipes-devtools/python/python3-rdflib_6.2.0.bb b/meta-python/recipes-devtools/python/python3-rdflib_6.3.2.bb similarity index 63% rename from meta-python/recipes-devtools/python/python3-rdflib_6.2.0.bb rename to meta-python/recipes-devtools/python/python3-rdflib_6.3.2.bb index 282d407090..1b4bb5a40e 100644 --- a/meta-python/recipes-devtools/python/python3-rdflib_6.2.0.bb +++ b/meta-python/recipes-devtools/python/python3-rdflib_6.3.2.bb @@ -1,10 +1,10 @@ SUMMARY = "RDFLib is a pure Python package for working with RDF" LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=bcae79bd3c84b857f42a98a7ccf6ad47" +LIC_FILES_CHKSUM = "file://LICENSE;md5=37d489c0cefe52a17e1d5007e196464a" -SRC_URI[sha256sum] = "62dc3c86d1712db0f55785baf8047f63731fa59b2682be03219cb89262065942" +SRC_URI[sha256sum] = "72af591ff704f4caacea7ecc0c5a9056b8553e0489dd4f35a9bc52dbd41522e0" -inherit pypi setuptools3 +inherit pypi python_poetry_core RDEPENDS:${PN} += " \ ${PYTHON_PN}-isodate \ -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#104007): https://lists.openembedded.org/g/openembedded-devel/message/104007 Mute This Topic: https://lists.openembedded.org/mt/100338343/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH] python3-pyperf: upgrade 2.5.0 -> 2.6.1
inherit python_setuptools_build_meta instead of setuptools3. Changelog: https://github.com/psf/pyperf/releases Signed-off-by: Trevor Gamblin --- .../{python3-pyperf_2.5.0.bb => python3-pyperf_2.6.1.bb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta-python/recipes-devtools/python/{python3-pyperf_2.5.0.bb => python3-pyperf_2.6.1.bb} (85%) diff --git a/meta-python/recipes-devtools/python/python3-pyperf_2.5.0.bb b/meta-python/recipes-devtools/python/python3-pyperf_2.6.1.bb similarity index 85% rename from meta-python/recipes-devtools/python/python3-pyperf_2.5.0.bb rename to meta-python/recipes-devtools/python/python3-pyperf_2.6.1.bb index d5eaa4f607..c63e75cf2e 100644 --- a/meta-python/recipes-devtools/python/python3-pyperf_2.5.0.bb +++ b/meta-python/recipes-devtools/python/python3-pyperf_2.6.1.bb @@ -13,11 +13,11 @@ Features: \ LICENSE = "MIT" LIC_FILES_CHKSUM = "file://COPYING;md5=78bc2e6e87c8c61272937b879e6dc2f8" -SRC_URI[sha256sum] = "9fd9be5b57224e68b5a5b88f7126f15b6c8667573f62a0a39faf14d6fdd13909" +SRC_URI[sha256sum] = "171aea69b8efde61210e512166d8764e7765a9c7678b768052174b01f349f247" DEPENDS += "${PYTHON_PN}-six-native" PYPI_PACKAGE = "pyperf" -inherit pypi setuptools3 +inherit pypi python_setuptools_build_meta RDEPENDS:${PN} += "${PYTHON_PN}-misc ${PYTHON_PN}-statistics" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#104006): https://lists.openembedded.org/g/openembedded-devel/message/104006 Mute This Topic: https://lists.openembedded.org/mt/100338210/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-python][PATCH] python3-pocketsphinx: upgrade 0.1.15 -> 5.0.1
On 2023-07-24 16:08, Trevor Gamblin via lists.openembedded.org wrote: pocketsphinx now requires the skbuild module. It has changed versioning style, explaining the large jump in version numbers. The LICENSE actually has changed to include parts from other projects, which are either BSD-2-Clause or MIT. Also adopt the fix_cythonized_sources function (inspired by the pandas recipe) to fix some QA warnings: WARNING: python3-pocketsphinx-5.0.1-r0 do_package_qa: QA Issue: File /usr/lib/python3.11/site-packages/pocketsphinx/_pocketsphinx.cpython-311-x86_64-linux-gnu.so in package python3-pocketsphinx contains reference to TMPDIR [buildpaths] WARNING: python3-pocketsphinx-5.0.1-r0 do_package_qa: QA Issue: File /usr/src/debug/python3-pocketsphinx/5.0.1-r0/_skbuild/linux-x86_64-3.11/cmake-build/cython/_pocketsphinx.c in package python3-pocketsphinx-src contains reference to TMPDIR [buildpaths] Changelog: https://github.com/cmusphinx/pocketsphinx/releases Signed-off-by: Trevor Gamblin Scratch this patch for now. I went back to try and add missing RDEPENDS (e.g. python3-logging), and the errors that the fixed_cythonized_sources function appeared to fix resurfaced. h5py and pandas use similar methods but I don't see a difference that hints at why this recipe won't work with the same additions. I also tried switching the recipe from setuptools3 to python_setuptools_build_meta, but even after adding cmake-native and ninja-native to DEPENDS, I see this error during pocketsphinx's do_compile: | writing manifest file 'cython/pocketsphinx.egg-info/SOURCES.txt' | | ERROR Missing dependencies: | cmake | ninja --- .../python/python3-pocketsphinx_0.1.15.bb | 14 --- .../python/python3-pocketsphinx_5.0.1.bb | 24 +++ 2 files changed, 24 insertions(+), 14 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-pocketsphinx_0.1.15.bb create mode 100644 meta-python/recipes-devtools/python/python3-pocketsphinx_5.0.1.bb diff --git a/meta-python/recipes-devtools/python/python3-pocketsphinx_0.1.15.bb b/meta-python/recipes-devtools/python/python3-pocketsphinx_0.1.15.bb deleted file mode 100644 index f7ffd9d268..00 --- a/meta-python/recipes-devtools/python/python3-pocketsphinx_0.1.15.bb +++ /dev/null @@ -1,14 +0,0 @@ -SUMMARY = "This package provides a python interface to CMU Sphinxbase and Pocketsphinx libraries created with SWIG and Setuptools." -DESCRIPTION = "Python interface to CMU Sphinxbase and Pocketsphinx libraries" -HOMEPAGE = "https://github.com/bambocher/pocketsphinx-python"; -SECTION = "devel/python" -LICENSE = "BSD-2-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=826ebda787eb48e78aec2624f9faba72" - -SRC_URI[md5sum] = "94d008eebea16acb60a9ffe614575dee" -SRC_URI[sha256sum] = "34d290745c7dbe6fa2cac9815b5c19d10f393e528ecd70e779c21ebc448f9b63" - -inherit pypi setuptools3 features_check - -DEPENDS += "swig-native pulseaudio" -REQUIRED_DISTRO_FEATURES += "pulseaudio" diff --git a/meta-python/recipes-devtools/python/python3-pocketsphinx_5.0.1.bb b/meta-python/recipes-devtools/python/python3-pocketsphinx_5.0.1.bb new file mode 100644 index 00..c6bd978d24 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pocketsphinx_5.0.1.bb @@ -0,0 +1,24 @@ +SUMMARY = "This package provides a python interface to CMU Sphinxbase and Pocketsphinx libraries created with SWIG and Setuptools." +DESCRIPTION = "Python interface to CMU Sphinxbase and Pocketsphinx libraries" +HOMEPAGE = "https://github.com/bambocher/pocketsphinx-python"; +SECTION = "devel/python" +LICENSE = "BSD-2-Clause & MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=c4d720cdc9c6953091f65e8b01524bb4" + +SRC_URI[md5sum] = "fdd1227fb750f087f0636f8c222cbbb9" +SRC_URI[sha256sum] = "cadfe42cf1596399ff1a6818ad75970c658e567c7250d67e758b29444facede9" + +inherit pypi setuptools3 features_check + +DEPENDS += "swig-native pulseaudio python3-scikit-build-native" +REQUIRED_DISTRO_FEATURES += "pulseaudio" + +PACKAGESPLITFUNCS =+ "fix_cythonized_sources" + +fix_cythonized_sources() { +for f in `grep -l -r -e '\/* Generated by Cython.*/$' ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}`; do +if [ -e $f ]; then +sed -i -e 's#${RECIPE_SYSROOT_NATIVE}##g' $f +fi +done +} -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#104005): https://lists.openembedded.org/g/openembedded-devel/message/104005 Mute This Topic: https://lists.openembedded.org/mt/100337092/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH] python3-pocketsphinx: upgrade 0.1.15 -> 5.0.1
pocketsphinx now requires the skbuild module. It has changed versioning style, explaining the large jump in version numbers. The LICENSE actually has changed to include parts from other projects, which are either BSD-2-Clause or MIT. Also adopt the fix_cythonized_sources function (inspired by the pandas recipe) to fix some QA warnings: WARNING: python3-pocketsphinx-5.0.1-r0 do_package_qa: QA Issue: File /usr/lib/python3.11/site-packages/pocketsphinx/_pocketsphinx.cpython-311-x86_64-linux-gnu.so in package python3-pocketsphinx contains reference to TMPDIR [buildpaths] WARNING: python3-pocketsphinx-5.0.1-r0 do_package_qa: QA Issue: File /usr/src/debug/python3-pocketsphinx/5.0.1-r0/_skbuild/linux-x86_64-3.11/cmake-build/cython/_pocketsphinx.c in package python3-pocketsphinx-src contains reference to TMPDIR [buildpaths] Changelog: https://github.com/cmusphinx/pocketsphinx/releases Signed-off-by: Trevor Gamblin --- .../python/python3-pocketsphinx_0.1.15.bb | 14 --- .../python/python3-pocketsphinx_5.0.1.bb | 24 +++ 2 files changed, 24 insertions(+), 14 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-pocketsphinx_0.1.15.bb create mode 100644 meta-python/recipes-devtools/python/python3-pocketsphinx_5.0.1.bb diff --git a/meta-python/recipes-devtools/python/python3-pocketsphinx_0.1.15.bb b/meta-python/recipes-devtools/python/python3-pocketsphinx_0.1.15.bb deleted file mode 100644 index f7ffd9d268..00 --- a/meta-python/recipes-devtools/python/python3-pocketsphinx_0.1.15.bb +++ /dev/null @@ -1,14 +0,0 @@ -SUMMARY = "This package provides a python interface to CMU Sphinxbase and Pocketsphinx libraries created with SWIG and Setuptools." -DESCRIPTION = "Python interface to CMU Sphinxbase and Pocketsphinx libraries" -HOMEPAGE = "https://github.com/bambocher/pocketsphinx-python"; -SECTION = "devel/python" -LICENSE = "BSD-2-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=826ebda787eb48e78aec2624f9faba72" - -SRC_URI[md5sum] = "94d008eebea16acb60a9ffe614575dee" -SRC_URI[sha256sum] = "34d290745c7dbe6fa2cac9815b5c19d10f393e528ecd70e779c21ebc448f9b63" - -inherit pypi setuptools3 features_check - -DEPENDS += "swig-native pulseaudio" -REQUIRED_DISTRO_FEATURES += "pulseaudio" diff --git a/meta-python/recipes-devtools/python/python3-pocketsphinx_5.0.1.bb b/meta-python/recipes-devtools/python/python3-pocketsphinx_5.0.1.bb new file mode 100644 index 00..c6bd978d24 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pocketsphinx_5.0.1.bb @@ -0,0 +1,24 @@ +SUMMARY = "This package provides a python interface to CMU Sphinxbase and Pocketsphinx libraries created with SWIG and Setuptools." +DESCRIPTION = "Python interface to CMU Sphinxbase and Pocketsphinx libraries" +HOMEPAGE = "https://github.com/bambocher/pocketsphinx-python"; +SECTION = "devel/python" +LICENSE = "BSD-2-Clause & MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=c4d720cdc9c6953091f65e8b01524bb4" + +SRC_URI[md5sum] = "fdd1227fb750f087f0636f8c222cbbb9" +SRC_URI[sha256sum] = "cadfe42cf1596399ff1a6818ad75970c658e567c7250d67e758b29444facede9" + +inherit pypi setuptools3 features_check + +DEPENDS += "swig-native pulseaudio python3-scikit-build-native" +REQUIRED_DISTRO_FEATURES += "pulseaudio" + +PACKAGESPLITFUNCS =+ "fix_cythonized_sources" + +fix_cythonized_sources() { +for f in `grep -l -r -e '\/* Generated by Cython.*/$' ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}`; do +if [ -e $f ]; then +sed -i -e 's#${RECIPE_SYSROOT_NATIVE}##g' $f +fi +done +} -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#104004): https://lists.openembedded.org/g/openembedded-devel/message/104004 Mute This Topic: https://lists.openembedded.org/mt/100337092/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH v2] python3-pandas: upgrade 1.5.3 -> 2.0.3
pandas now requires versioneer, so add that to the DEPENDS list. The LICENSE checksum changed but this was due to line endings and not a difference in content. Changelog: https://github.com/pandas-dev/pandas/releases Signed-off-by: Trevor Gamblin --- v2 fixes the recipe name in the subject line and clarifies why the LICENSE checksum changed. .../{python3-pandas_1.5.3.bb => python3-pandas_2.0.3.bb} | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) rename meta-python/recipes-devtools/python/{python3-pandas_1.5.3.bb => python3-pandas_2.0.3.bb} (77%) diff --git a/meta-python/recipes-devtools/python/python3-pandas_1.5.3.bb b/meta-python/recipes-devtools/python/python3-pandas_2.0.3.bb similarity index 77% rename from meta-python/recipes-devtools/python/python3-pandas_1.5.3.bb rename to meta-python/recipes-devtools/python/python3-pandas_2.0.3.bb index 129c3147cf..87a173c8a2 100644 --- a/meta-python/recipes-devtools/python/python3-pandas_1.5.3.bb +++ b/meta-python/recipes-devtools/python/python3-pandas_2.0.3.bb @@ -4,14 +4,16 @@ high-performance, easy-to-use data structures and data analysis tools for \ the Python programming language." HOMEPAGE = "http://pandas.pydata.org/"; LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=c1cc9ab35a8b2aabf933cd6d245b5db3" +LIC_FILES_CHKSUM = "file://LICENSE;md5=cb819092901ddb13a7d0a4f5e05f098a" -SRC_URI[sha256sum] = "74a3fd7e5a7ec052f183273dc7b0acd3a863edf7520f5d3a1765c04ffdb3b0b1" +SRC_URI[sha256sum] = "c02f372a88e0d17f36d3093a644c73cfc1788e876a7c4bcb4020a77512e2043c" inherit pypi setuptools3 DEPENDS += " \ -${PYTHON_PN}-numpy-native ${PYTHON_PN}-cython-native \ +${PYTHON_PN}-cython-native \ +${PYTHON_PN}-numpy-native \ +${PYTHON_PN}-versioneer-native \ " PACKAGESPLITFUNCS =+ "fix_cythonized_sources" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#104002): https://lists.openembedded.org/g/openembedded-devel/message/104002 Mute This Topic: https://lists.openembedded.org/mt/100336616/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH] python3-parse: upgrade 1.19.0 -> 1.19.1
Switch to using git and a SRCREV to make sure we can keep the ptests. Changelog (https://github.com/r1chardj0n3s/parse/releases): - Add support for sign specifiers in number formats. by @anntzer in #134 - Fix handling of unused alignment by @tomerha in #132 - modern packaging by @wimglenn in #151 - universal wheel by @wimglenn in #155 Signed-off-by: Trevor Gamblin --- ...-parse_1.19.0.bb => python3-parse_1.19.1.bb} | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) rename meta-python/recipes-devtools/python/{python3-parse_1.19.0.bb => python3-parse_1.19.1.bb} (63%) diff --git a/meta-python/recipes-devtools/python/python3-parse_1.19.0.bb b/meta-python/recipes-devtools/python/python3-parse_1.19.1.bb similarity index 63% rename from meta-python/recipes-devtools/python/python3-parse_1.19.0.bb rename to meta-python/recipes-devtools/python/python3-parse_1.19.1.bb index 94c1b53c94..9dc7f79318 100644 --- a/meta-python/recipes-devtools/python/python3-parse_1.19.0.bb +++ b/meta-python/recipes-devtools/python/python3-parse_1.19.1.bb @@ -3,9 +3,18 @@ HOMEPAGE = "https://github.com/r1chardj0n3s/parse"; LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=8ab458ad281b60e6f1b39b3feafbfc05" -SRC_URI[sha256sum] = "9ff82852bcb65d139813e2a5197627a94966245c897796760a3a2a8eb66f020b" +SRC_URI[sha256sum] = "cc3a47236ff05da377617ddefa867b7ba983819c664e1afe46249e5b469be464" -inherit pypi setuptools3 ptest +SRC_URI += " \ +git://github.com/r1chardj0n3s/parse.git;branch=master;protocol=https \ +file://run-ptest \ +" + +SRCREV ?= "72776522285d516032faa0f80c4ee6a8964075e8" + +S = "${WORKDIR}/git" + +inherit python_setuptools_build_meta ptest RDEPENDS:${PN} += "\ python3-datetime \ @@ -13,10 +22,6 @@ RDEPENDS:${PN} += "\ python3-numbers \ " -SRC_URI += " \ -file://run-ptest \ -" - RDEPENDS:${PN}-ptest += " \ python3-pytest \ " -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103999): https://lists.openembedded.org/g/openembedded-devel/message/103999 Mute This Topic: https://lists.openembedded.org/mt/100335099/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 1/2] python3-versioneer: add recipe
This module is required by newer versions of pandas, so add it as a recipe. Signed-off-by: Trevor Gamblin --- .../packagegroups/packagegroup-meta-python.bb | 1 + .../python/python3-versioneer_0.29.bb | 18 ++ 2 files changed, 19 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-versioneer_0.29.bb diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb index b23d24c6d4..9500f80e03 100644 --- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb @@ -446,6 +446,7 @@ RDEPENDS:packagegroup-meta-python3 = "\ python3-unidiff \ python3-uritemplate \ python3-vcversioner \ +python3-versioneer \ python3-versiontools \ python3-visitor \ python3-waitress \ diff --git a/meta-python/recipes-devtools/python/python3-versioneer_0.29.bb b/meta-python/recipes-devtools/python/python3-versioneer_0.29.bb new file mode 100644 index 00..bdfbfd1be1 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-versioneer_0.29.bb @@ -0,0 +1,18 @@ +SUMMARY = "Easy VCS-based management of project version strings" +HOMEPAGE = "https://github.com/python-versioneer/python-versioneer"; +SECTION = "devel/python" + +LICENSE = "Unlicense" +LIC_FILES_CHKSUM = "file://LICENSE;md5=f4c62131f879a8445e16a7f265aea635" + +SRC_URI[sha256sum] = "5ab283b9857211d61b53318b7c792cf68e798e765ee17c27ade9f6c924235731" + +inherit pypi python_setuptools_build_meta + +RDEPENDS:${PN} += "\ +python3-json \ +python3-netclient \ +python3-tomllib \ +" + +BBCLASSEXTEND = "native nativesdk" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103997): https://lists.openembedded.org/g/openembedded-devel/message/103997 Mute This Topic: https://lists.openembedded.org/mt/100334401/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 2/2] python-pandas: upgrade 1.5.3 -> 2.0.3
pandas now requires versioneer, so add that to the DEPENDS list. Changelog: https://github.com/pandas-dev/pandas/releases Signed-off-by: Trevor Gamblin --- .../{python3-pandas_1.5.3.bb => python3-pandas_2.0.3.bb} | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) rename meta-python/recipes-devtools/python/{python3-pandas_1.5.3.bb => python3-pandas_2.0.3.bb} (77%) diff --git a/meta-python/recipes-devtools/python/python3-pandas_1.5.3.bb b/meta-python/recipes-devtools/python/python3-pandas_2.0.3.bb similarity index 77% rename from meta-python/recipes-devtools/python/python3-pandas_1.5.3.bb rename to meta-python/recipes-devtools/python/python3-pandas_2.0.3.bb index 129c3147cf..87a173c8a2 100644 --- a/meta-python/recipes-devtools/python/python3-pandas_1.5.3.bb +++ b/meta-python/recipes-devtools/python/python3-pandas_2.0.3.bb @@ -4,14 +4,16 @@ high-performance, easy-to-use data structures and data analysis tools for \ the Python programming language." HOMEPAGE = "http://pandas.pydata.org/"; LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=c1cc9ab35a8b2aabf933cd6d245b5db3" +LIC_FILES_CHKSUM = "file://LICENSE;md5=cb819092901ddb13a7d0a4f5e05f098a" -SRC_URI[sha256sum] = "74a3fd7e5a7ec052f183273dc7b0acd3a863edf7520f5d3a1765c04ffdb3b0b1" +SRC_URI[sha256sum] = "c02f372a88e0d17f36d3093a644c73cfc1788e876a7c4bcb4020a77512e2043c" inherit pypi setuptools3 DEPENDS += " \ -${PYTHON_PN}-numpy-native ${PYTHON_PN}-cython-native \ +${PYTHON_PN}-cython-native \ +${PYTHON_PN}-numpy-native \ +${PYTHON_PN}-versioneer-native \ " PACKAGESPLITFUNCS =+ "fix_cythonized_sources" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103998): https://lists.openembedded.org/g/openembedded-devel/message/103998 Mute This Topic: https://lists.openembedded.org/mt/100334402/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH v2] python3-mypy, python3-mypy-extensions: remove
While attempting to upgrade mypy and mypy-extensions, it was discovered that it depends on new modules, some of which have no maintenance plan in place, e.g.: https://pypi.org/project/types-typed-ast/ Since this is something we want to avoid adding to the ecosystem and mypy isn't a dependency for anything else in meta-python, remove the recipes. Signed-off-by: Trevor Gamblin --- v2 removes the recipes from the packagegroup as well. .../packagegroups/packagegroup-meta-python.bb | 2 -- .../python/python3-mypy-extensions_0.4.3.bb | 12 -- .../python/python3-mypy_0.971.bb | 23 --- 3 files changed, 37 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-mypy-extensions_0.4.3.bb delete mode 100644 meta-python/recipes-devtools/python/python3-mypy_0.971.bb diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb index b23d24c6d4..c12d475047 100644 --- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb @@ -245,8 +245,6 @@ RDEPENDS:packagegroup-meta-python3 = "\ python3-msk \ python3-msm \ python3-multidict \ -python3-mypy \ -python3-mypy-extensions \ python3-natsort \ python3-netaddr \ python3-netifaces \ diff --git a/meta-python/recipes-devtools/python/python3-mypy-extensions_0.4.3.bb b/meta-python/recipes-devtools/python/python3-mypy-extensions_0.4.3.bb deleted file mode 100644 index 83ac5362d6..00 --- a/meta-python/recipes-devtools/python/python3-mypy-extensions_0.4.3.bb +++ /dev/null @@ -1,12 +0,0 @@ -SUMMARY = "Experimental type system extensions for programs checked with the mypy typechecker" -HOMEPAGE = "https://github.com/python/mypy_extensions"; -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=0fe3219e2470a78c0d1837019b8b426e" - -PYPI_PACKAGE = "mypy_extensions" - -inherit pypi setuptools3 - -SRC_URI[sha256sum] = "2d82818f5bb3e369420cb3c4060a7970edba416647068eb4c5343488a6c604a8" - -BBCLASSEXTEND = "native" diff --git a/meta-python/recipes-devtools/python/python3-mypy_0.971.bb b/meta-python/recipes-devtools/python/python3-mypy_0.971.bb deleted file mode 100644 index 31fcb06c9e..00 --- a/meta-python/recipes-devtools/python/python3-mypy_0.971.bb +++ /dev/null @@ -1,23 +0,0 @@ -SUMMARY = "Optional static typing for Python 3 and 2 (PEP 484)" -HOMEPAGE = "https://github.com/python/mypy"; -LICENSE = "MIT & Python-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=6ba8ec528da02073b7e1f4124c0f836f" - -PYPI_PACKAGE = "mypy" - -inherit pypi python_setuptools_build_meta - -SRC_URI[sha256sum] = "40b0f21484238269ae6a57200c807d80debc6459d444c0489a102d7c6a75fa56" - -BBCLASSEXTEND = "native" - -RDEPENDS:${PN} += " \ -${PYTHON_PN}-mypy-extensions \ -${PYTHON_PN}-typed-ast \ -${PYTHON_PN}-typing-extensions \ -${PYTHON_PN}-json \ -${PYTHON_PN}-compression \ -${PYTHON_PN}-pprint \ -${PYTHON_PN}-difflib \ -${PYTHON_PN}-toml \ -" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103996): https://lists.openembedded.org/g/openembedded-devel/message/103996 Mute This Topic: https://lists.openembedded.org/mt/100333071/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 2/2] python3-mypy, python3-mypy-extensions: remove
While attempting to upgrade mypy and mypy-extensions, it was discovered that it depends on new modules, some of which have no maintenance plan in place, e.g.: https://pypi.org/project/types-typed-ast/ Since this is something we want to avoid adding to the ecosystem and mypy isn't a dependency for anything else in meta-python, remove the recipes. Signed-off-by: Trevor Gamblin --- .../python/python3-mypy-extensions_0.4.3.bb | 12 -- .../python/python3-mypy_0.971.bb | 23 --- 2 files changed, 35 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-mypy-extensions_0.4.3.bb delete mode 100644 meta-python/recipes-devtools/python/python3-mypy_0.971.bb diff --git a/meta-python/recipes-devtools/python/python3-mypy-extensions_0.4.3.bb b/meta-python/recipes-devtools/python/python3-mypy-extensions_0.4.3.bb deleted file mode 100644 index 83ac5362d6..00 --- a/meta-python/recipes-devtools/python/python3-mypy-extensions_0.4.3.bb +++ /dev/null @@ -1,12 +0,0 @@ -SUMMARY = "Experimental type system extensions for programs checked with the mypy typechecker" -HOMEPAGE = "https://github.com/python/mypy_extensions"; -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=0fe3219e2470a78c0d1837019b8b426e" - -PYPI_PACKAGE = "mypy_extensions" - -inherit pypi setuptools3 - -SRC_URI[sha256sum] = "2d82818f5bb3e369420cb3c4060a7970edba416647068eb4c5343488a6c604a8" - -BBCLASSEXTEND = "native" diff --git a/meta-python/recipes-devtools/python/python3-mypy_0.971.bb b/meta-python/recipes-devtools/python/python3-mypy_0.971.bb deleted file mode 100644 index 31fcb06c9e..00 --- a/meta-python/recipes-devtools/python/python3-mypy_0.971.bb +++ /dev/null @@ -1,23 +0,0 @@ -SUMMARY = "Optional static typing for Python 3 and 2 (PEP 484)" -HOMEPAGE = "https://github.com/python/mypy"; -LICENSE = "MIT & Python-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=6ba8ec528da02073b7e1f4124c0f836f" - -PYPI_PACKAGE = "mypy" - -inherit pypi python_setuptools_build_meta - -SRC_URI[sha256sum] = "40b0f21484238269ae6a57200c807d80debc6459d444c0489a102d7c6a75fa56" - -BBCLASSEXTEND = "native" - -RDEPENDS:${PN} += " \ -${PYTHON_PN}-mypy-extensions \ -${PYTHON_PN}-typed-ast \ -${PYTHON_PN}-typing-extensions \ -${PYTHON_PN}-json \ -${PYTHON_PN}-compression \ -${PYTHON_PN}-pprint \ -${PYTHON_PN}-difflib \ -${PYTHON_PN}-toml \ -" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103995): https://lists.openembedded.org/g/openembedded-devel/message/103995 Mute This Topic: https://lists.openembedded.org/mt/100332892/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 1/2] python3-humanize: upgrade 4.4.0 -> 4.7.0
humanize moved to hatchling as a build backend, so adjust the recipe to match. Changelog: https://github.com/python-humanize/humanize/releases Signed-off-by: Trevor Gamblin --- .../{python3-humanize_4.4.0.bb => python3-humanize_4.7.0.bb} | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) rename meta-python/recipes-devtools/python/{python3-humanize_4.4.0.bb => python3-humanize_4.7.0.bb} (71%) diff --git a/meta-python/recipes-devtools/python/python3-humanize_4.4.0.bb b/meta-python/recipes-devtools/python/python3-humanize_4.7.0.bb similarity index 71% rename from meta-python/recipes-devtools/python/python3-humanize_4.4.0.bb rename to meta-python/recipes-devtools/python/python3-humanize_4.7.0.bb index 7bb03b75f2..81654af875 100644 --- a/meta-python/recipes-devtools/python/python3-humanize_4.4.0.bb +++ b/meta-python/recipes-devtools/python/python3-humanize_4.7.0.bb @@ -5,12 +5,13 @@ SECTION = "devel/python" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENCE;md5=4ecc42519e84f6f3e23529464df7bd1d" -SRC_URI[sha256sum] = "efb2584565cc86b7ea87a977a15066de34cdedaf341b11c851cfcfd2b964779c" +SRC_URI[sha256sum] = "7ca0e43e870981fa684acb5b062deb307218193bca1a01f2b2676479df849b3a" -inherit pypi python_setuptools_build_meta +inherit pypi python_hatchling DEPENDS += "\ ${PYTHON_PN}-setuptools-scm-native \ +${PYTHON_PN}-hatch-vcs-native \ " RDEPENDS:${PN} += "\ -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103994): https://lists.openembedded.org/g/openembedded-devel/message/103994 Mute This Topic: https://lists.openembedded.org/mt/100332891/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH] python3-greenstalk: upgrade 2.0.0 -> 2.0.2
Switch to python_setuptools_build_meta. No changelog provided Commit history: a4643c4 (HEAD -> main, tag: v2.0.2, origin/main, origin/HEAD) Release 2.0.2 87269f0 Remove redundant wheel dep from pyproject.toml e30d3c4 (tag: v2.0.1) Release 2.0.1 36b348a Require a current version of Python e189f4b Revert breaking API changes 868e9d0 Format with Black 5f4f424 Strip quotes from string stats a31ad74 Add __repr__ to Job and Client ebbb0f2 Improve names of private parsing functions 3ff9ef1 Use phony targets in Makefile 4feaf07 Format with Black 2c9165f Add test for drain mode 5068dc2 Enable strict mode in mypy 383176c Add type hints to integration test decorator 6fb0a48 Polish documentation e8c5f20 Fix reportUnknownVariableType Pylance warnings e7ac1da Polish API reference 9a384a8 Remove __slots__ from Job 45c53b4 Polish error handling 4f79e7c Document and type hint Job attributes 0f576a0 Remove sphinx-autodoc-typehints dev dependency 29a5499 Always use bytes for job bodies 3dc6430 Make it clear the requirements are for development db496d5 Add command for building HTML docs da73ed0 Fix Sphinx import path c93efc0 Update link after changing default branch to main 7fc7eef Add PEP 561 py.typed marker file 5174142 Switch to package directory structure 40a9149 Add python_requires 18196e2 Add project_urls 59e3f99 Avoid installing unnecessary dependencies on CI 764f5bf Stop checking code coverage by default 45de080 Remove Codecov integration 1f0baf6 Specify license with license_files 74cad3b Switch to declarative package configuration 9e6aebb Remove unused Flake8 ignore 48cecff Use variable annotation syntax 56387c8 Drop support for Python 3.5 62e4bbf Update CI to only send one coverage report d168cff Move CI to GitHub Actions 6281716 Add 3.9 to list of supported Python versions Signed-off-by: Trevor Gamblin --- ...thon3-greenstalk_2.0.0.bb => python3-greenstalk_2.0.2.bb} | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) rename meta-python/recipes-devtools/python/{python3-greenstalk_2.0.0.bb => python3-greenstalk_2.0.2.bb} (65%) diff --git a/meta-python/recipes-devtools/python/python3-greenstalk_2.0.0.bb b/meta-python/recipes-devtools/python/python3-greenstalk_2.0.2.bb similarity index 65% rename from meta-python/recipes-devtools/python/python3-greenstalk_2.0.0.bb rename to meta-python/recipes-devtools/python/python3-greenstalk_2.0.2.bb index 841b84ddf6..33eb62d5d9 100644 --- a/meta-python/recipes-devtools/python/python3-greenstalk_2.0.0.bb +++ b/meta-python/recipes-devtools/python/python3-greenstalk_2.0.2.bb @@ -3,9 +3,8 @@ HOMEPAGE = "https://github.com/mayhewj/greenstalk"; LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=8f98432ba1fce3933c556430fd47298f" -SRC_URI[sha256sum] = "0020970abdb6f400586938573cbbec80410e83805d61e46cf76ea3ed71129257" +SRC_URI[sha256sum] = "3ebde5fc9ecf986f96f6779fd6d15a53f33d432c52a2e28012e100a99ee154a4" RDEPENDS:${PN} += "python3-io python3-core" -inherit pypi -inherit setuptools3 +inherit pypi python_setuptools_build_meta -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103984): https://lists.openembedded.org/g/openembedded-devel/message/103984 Mute This Topic: https://lists.openembedded.org/mt/100284323/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 9/9] python3-flask: add python3-blinker to RDEPENDS, alphabetize
flask started depending on blinker in 2.3.0: https://flask.palletsprojects.com/en/2.3.x/changes/#version-2-3-0 Signed-off-by: Trevor Gamblin --- meta-python/recipes-devtools/python/python3-flask_2.3.2.bb | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/meta-python/recipes-devtools/python/python3-flask_2.3.2.bb b/meta-python/recipes-devtools/python/python3-flask_2.3.2.bb index ec9c62a170..c4c1ff7dec 100644 --- a/meta-python/recipes-devtools/python/python3-flask_2.3.2.bb +++ b/meta-python/recipes-devtools/python/python3-flask_2.3.2.bb @@ -15,9 +15,10 @@ inherit pypi python_setuptools_build_meta CLEANBROKEN = "1" RDEPENDS:${PN} = " \ -${PYTHON_PN}-werkzeug \ -${PYTHON_PN}-jinja2 \ -${PYTHON_PN}-itsdangerous \ +${PYTHON_PN}-blinker \ ${PYTHON_PN}-click \ +${PYTHON_PN}-itsdangerous \ +${PYTHON_PN}-jinja2 \ ${PYTHON_PN}-profile \ +${PYTHON_PN}-werkzeug \ " -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103982): https://lists.openembedded.org/g/openembedded-devel/message/103982 Mute This Topic: https://lists.openembedded.org/mt/100283247/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 8/9] python3-flask: upgrade 2.2.3 -> 2.3.2
flask has migrated to using pyproject.toml, so we need python_setuptools_build_meta instead of setuptools3. Changelog: https://flask.palletsprojects.com/en/2.3.x/changes/#version-2-3-0 Signed-off-by: Trevor Gamblin --- .../python/{python3-flask_2.2.3.bb => python3-flask_2.3.2.bb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta-python/recipes-devtools/python/{python3-flask_2.2.3.bb => python3-flask_2.3.2.bb} (81%) diff --git a/meta-python/recipes-devtools/python/python3-flask_2.2.3.bb b/meta-python/recipes-devtools/python/python3-flask_2.3.2.bb similarity index 81% rename from meta-python/recipes-devtools/python/python3-flask_2.2.3.bb rename to meta-python/recipes-devtools/python/python3-flask_2.3.2.bb index 90c56c75a4..ec9c62a170 100644 --- a/meta-python/recipes-devtools/python/python3-flask_2.2.3.bb +++ b/meta-python/recipes-devtools/python/python3-flask_2.3.2.bb @@ -6,11 +6,11 @@ HOMEPAGE = "https://github.com/mitsuhiko/flask/"; LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=ffeffa59c90c9c4a033c7574f8f3fb75" -SRC_URI[sha256sum] = "7eb373984bf1c770023fce9db164ed0c3353cd0b53f130f4693da0ca756a2e6d" +SRC_URI[sha256sum] = "8c2f9abd47a9e8df7f0c3f091ce9497d011dc3b31effcf4c85a6e2b50f4114ef" PYPI_PACKAGE = "Flask" -inherit pypi setuptools3 +inherit pypi python_setuptools_build_meta CLEANBROKEN = "1" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103981): https://lists.openembedded.org/g/openembedded-devel/message/103981 Mute This Topic: https://lists.openembedded.org/mt/100283246/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 7/9] python3-execnet: upgrade 1.9.0 -> 2.0.2
execnet requires hatchling and hatch-vcs now, instead of setuptools. Changelog (https://github.com/pytest-dev/execnet/blob/master/CHANGELOG.rst): 2.0.2 (2023-07-09) - Re-release without code changes, just to include tox.ini into the source distribution. 2.0.1 (2023-07-08) - Re-release without code changes, just to include docs and tests into the source distribution. 2.0.0 (2023-07-06) - Removed support for Python < 3.7. - Applied pyupgrade --py37-plus. - Minimal mypy fixes and dropped Python 2 support code. - Migrated packaging to hatch. - Dropped deprecated APIs of old makegateway names. - Removed py testing dependency. - Explicitly pass encoding when opening files in the gateway to get rid of warnings when using PYTHONWARNDEFAULTENCODING=1 (#195). - Fixed error when loading source code files from a path containing non-ascii characters. Signed-off-by: Trevor Gamblin --- .../{python3-execnet_1.9.0.bb => python3-execnet_2.0.2.bb} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename meta-python/recipes-devtools/python/{python3-execnet_1.9.0.bb => python3-execnet_2.0.2.bb} (82%) diff --git a/meta-python/recipes-devtools/python/python3-execnet_1.9.0.bb b/meta-python/recipes-devtools/python/python3-execnet_2.0.2.bb similarity index 82% rename from meta-python/recipes-devtools/python/python3-execnet_1.9.0.bb rename to meta-python/recipes-devtools/python/python3-execnet_2.0.2.bb index ea17e84143..a934d1c461 100644 --- a/meta-python/recipes-devtools/python/python3-execnet_1.9.0.bb +++ b/meta-python/recipes-devtools/python/python3-execnet_2.0.2.bb @@ -8,14 +8,14 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=772fcdaca14b378878d05c7d857e6c3e" DEPENDS += "\ python3-pip-native \ -python3-setuptools-scm-native \ +python3-hatch-vcs-native \ " SRC_URI += "file://run-ptest \ " -SRC_URI[sha256sum] = "8f694f3ba9cc92cab508b152dcfe322153975c29bda272e2fd7f3f00f36e47c5" +SRC_URI[sha256sum] = "cc59bc4423742fd71ad227122eb0dd44db51efb3dc4095b45ac9a08c770096af" -inherit ptest pypi setuptools3 +inherit ptest pypi python_hatchling do_install_ptest() { install -d ${D}${PTEST_PATH}/tests -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103980): https://lists.openembedded.org/g/openembedded-devel/message/103980 Mute This Topic: https://lists.openembedded.org/mt/100283245/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 2/9] python3-binwalk: upgrade 2.3.3 -> 2.3.4
Changelog (https://github.com/ReFirmLabs/binwalk/releases/tag/v2.3.4): - Merged patch to fix PFS directory traversal / code execution bug. Credit: Quentin Kaiser. Signed-off-by: Trevor Gamblin --- .../{python3-binwalk_2.3.3.bb => python3-binwalk_2.3.4.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-binwalk_2.3.3.bb => python3-binwalk_2.3.4.bb} (92%) diff --git a/meta-python/recipes-devtools/python/python3-binwalk_2.3.3.bb b/meta-python/recipes-devtools/python/python3-binwalk_2.3.4.bb similarity index 92% rename from meta-python/recipes-devtools/python/python3-binwalk_2.3.3.bb rename to meta-python/recipes-devtools/python/python3-binwalk_2.3.4.bb index 1a55a3e4a1..0b7d97fccb 100644 --- a/meta-python/recipes-devtools/python/python3-binwalk_2.3.3.bb +++ b/meta-python/recipes-devtools/python/python3-binwalk_2.3.4.bb @@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=65bbee055d3ea3bfc475f07aecf4de64" SRC_URI = "git://github.com/ReFirmLabs/binwalk;protocol=https;branch=master" -SRCREV = "fa0c0bd59b8588814756942fe4cb5452e76c1dcd" +SRCREV = "cddfede795971045d99422bd7a9676c8803ec5ee" S = "${WORKDIR}/git" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103975): https://lists.openembedded.org/g/openembedded-devel/message/103975 Mute This Topic: https://lists.openembedded.org/mt/100283240/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 5/9] python3-blinker: upgrade 1.5 -> 1.6.2
blinker now needs setuptools.build_meta instead of setuptools3. Changelog (https://github.com/pallets-eco/blinker/blob/main/CHANGES.rst): Version 1.6.2 Released 2023-04-12 - Type annotations are not evaluated at runtime. typing-extensions is not a runtime dependency. :pr:`94` Version 1.6.1 Released 2023-04-09 - Ensure that py.typed is present in the distributions (to enable other projects to use blinker's typing). - Require typing-extensions > 4.2 to ensure it includes ParamSpec. :issue:`90` Version 1.6 Released 2023-04-02 - Add a muted context manager to temporarily turn off a signal. :pr:`84` - Allow int senders (alongside existing string senders). :pr:`83` - Add a send_async method to the Signal to allow signals to send to coroutine receivers. :pr:`76` - Update and modernise the project structure to match that used by the pallets projects. :pr:`77` - Add an intial set of type hints for the project. Signed-off-by: Trevor Gamblin --- .../{python3-blinker_1.5.bb => python3-blinker_1.6.2.bb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta-python/recipes-devtools/python/{python3-blinker_1.5.bb => python3-blinker_1.6.2.bb} (72%) diff --git a/meta-python/recipes-devtools/python/python3-blinker_1.5.bb b/meta-python/recipes-devtools/python/python3-blinker_1.6.2.bb similarity index 72% rename from meta-python/recipes-devtools/python/python3-blinker_1.5.bb rename to meta-python/recipes-devtools/python/python3-blinker_1.6.2.bb index dae1e39437..8e77df088d 100644 --- a/meta-python/recipes-devtools/python/python3-blinker_1.5.bb +++ b/meta-python/recipes-devtools/python/python3-blinker_1.6.2.bb @@ -2,9 +2,9 @@ DESCRIPTION = "Fast, simple object-to-object and broadcast signaling." LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=42cd19c88fc13d1307a4efd64ee90e4e" -SRC_URI[sha256sum] = "923e5e2f69c155f2cc42dafbbd70e16e3fde24d2d4aa2ab72fbe386238892462" +SRC_URI[sha256sum] = "4afd3de66ef3a9f8067559fb7a1cbe555c17dcbe15971b05d1b625c3e7abe213" -inherit pypi setuptools3 ptest +inherit pypi python_setuptools_build_meta ptest SRC_URI += "file://run-ptest" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103978): https://lists.openembedded.org/g/openembedded-devel/message/103978 Mute This Topic: https://lists.openembedded.org/mt/100283243/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 6/9] python3-blinker: add python3-asyncio to RDEPENDS
The module fails to import without this. Signed-off-by: Trevor Gamblin --- meta-python/recipes-devtools/python/python3-blinker_1.6.2.bb | 4 1 file changed, 4 insertions(+) diff --git a/meta-python/recipes-devtools/python/python3-blinker_1.6.2.bb b/meta-python/recipes-devtools/python/python3-blinker_1.6.2.bb index 8e77df088d..b0728e66cd 100644 --- a/meta-python/recipes-devtools/python/python3-blinker_1.6.2.bb +++ b/meta-python/recipes-devtools/python/python3-blinker_1.6.2.bb @@ -8,6 +8,10 @@ inherit pypi python_setuptools_build_meta ptest SRC_URI += "file://run-ptest" +RDEPENDS:${PN} += "\ +${PYTHON_PN}-asyncio \ +" + RDEPENDS:${PN}-ptest += " \ ${PYTHON_PN}-pytest \ " -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103979): https://lists.openembedded.org/g/openembedded-devel/message/103979 Mute This Topic: https://lists.openembedded.org/mt/100283244/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 4/9] python3-bitstring: add python3-io to RDEPENDS, alphabetize
Signed-off-by: Trevor Gamblin --- meta-python/recipes-devtools/python/python3-bitstring_4.0.2.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta-python/recipes-devtools/python/python3-bitstring_4.0.2.bb b/meta-python/recipes-devtools/python/python3-bitstring_4.0.2.bb index 243504b666..a4d59913f8 100644 --- a/meta-python/recipes-devtools/python/python3-bitstring_4.0.2.bb +++ b/meta-python/recipes-devtools/python/python3-bitstring_4.0.2.bb @@ -12,8 +12,9 @@ inherit pypi python_poetry_core RDEPENDS:${PN} = "\ ${PYTHON_PN}-core \ -${PYTHON_PN}-numbers \ +${PYTHON_PN}-io \ ${PYTHON_PN}-mmap \ +${PYTHON_PN}-numbers \ " BBCLASSEXTEND = "native nativesdk" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103977): https://lists.openembedded.org/g/openembedded-devel/message/103977 Mute This Topic: https://lists.openembedded.org/mt/100283242/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 3/9] python3-bitstring: upgrade 3.1.9 -> 4.0.2
Changelog: https://github.com/scott-griffiths/bitstring/releases The LICENSE checksum changed but this is because of a difference in line endings; the content is the same. Signed-off-by: Trevor Gamblin --- ...ython3-bitstring_3.1.9.bb => python3-bitstring_4.0.2.bb} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename meta-python/recipes-devtools/python/{python3-bitstring_3.1.9.bb => python3-bitstring_4.0.2.bb} (65%) diff --git a/meta-python/recipes-devtools/python/python3-bitstring_3.1.9.bb b/meta-python/recipes-devtools/python/python3-bitstring_4.0.2.bb similarity index 65% rename from meta-python/recipes-devtools/python/python3-bitstring_3.1.9.bb rename to meta-python/recipes-devtools/python/python3-bitstring_4.0.2.bb index 94dbae2afc..243504b666 100644 --- a/meta-python/recipes-devtools/python/python3-bitstring_3.1.9.bb +++ b/meta-python/recipes-devtools/python/python3-bitstring_4.0.2.bb @@ -2,13 +2,13 @@ SUMMARY = "Simple construction, analysis and modification of binary data." HOMEPAGE = "https://github.com/scott-griffiths/bitstring"; AUTHOR = "Scott Griffiths " LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=f7f2fd3f1cd52b5ccd39d76fb3568d3f" +LIC_FILES_CHKSUM = "file://LICENSE;md5=661f450e2c0aef39b4b15597333444a7" -SRC_URI[sha256sum] = "a5848a3f63111785224dca8bb4c0a75b62ecdef56a042c8d6be74b16f7e860e7" +SRC_URI[sha256sum] = "a391db8828ac4485dd5ce72c80b27ebac3e7b989631359959e310cd9729723b2" PYPI_PACKAGE = "bitstring" -inherit pypi setuptools3 +inherit pypi python_poetry_core RDEPENDS:${PN} = "\ ${PYTHON_PN}-core \ -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103976): https://lists.openembedded.org/g/openembedded-devel/message/103976 Mute This Topic: https://lists.openembedded.org/mt/100283241/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 1/9] python3-awesomeversion: upgrade 22.9.0 -> 23.5.0
The project has stopped using setuptools in favor of poetry, so inherit python_poetry_core instead. Changelog (https://github.com/ludeeus/awesomeversion/releases/tag/23.5.0): - Add CI for Python 3.11 by @ludeeus in #191 - Add demo page by @ludeeus in #195 - Add better styles to demo by @ludeeus in #197 - Remove setuptools from dev-dependencies by @ludeeus in #202 - Update demo with compare by @ludeeus in #219 - Add Python 3.12 to CI by @ludeeus in #222 - Add in_range helper method by @ludeeus in #224 - Restructure README contents by @ludeeus in #225 Signed-off-by: Trevor Gamblin --- ...someversion_22.9.0.bb => python3-awesomeversion_23.5.0.bb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta-python/recipes-devtools/python/{python3-awesomeversion_22.9.0.bb => python3-awesomeversion_23.5.0.bb} (76%) diff --git a/meta-python/recipes-devtools/python/python3-awesomeversion_22.9.0.bb b/meta-python/recipes-devtools/python/python3-awesomeversion_23.5.0.bb similarity index 76% rename from meta-python/recipes-devtools/python/python3-awesomeversion_22.9.0.bb rename to meta-python/recipes-devtools/python/python3-awesomeversion_23.5.0.bb index 20ed1890db..bcd959cb27 100644 --- a/meta-python/recipes-devtools/python/python3-awesomeversion_22.9.0.bb +++ b/meta-python/recipes-devtools/python/python3-awesomeversion_23.5.0.bb @@ -4,8 +4,8 @@ SECTION = "devel/python" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENCE.md;md5=92622b5a8e216099be741d78328bae5d" -SRC_URI[sha256sum] = "2f4190d333e81e10b2a4e156150ddb3596f5f11da67e9d51ba39057aa7a17f7e" +SRC_URI[sha256sum] = "a505558316010d2d10d487226f79c1157204af00fa462fdcf948e347011dd491" RDEPENDS:${PN} += "python3-profile python3-logging" -inherit pypi setuptools3 +inherit pypi python_poetry_core -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103974): https://lists.openembedded.org/g/openembedded-devel/message/103974 Mute This Topic: https://lists.openembedded.org/mt/100283239/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 1/2] python3-django: upgrade 4.2.2 -> 4.2.3
Changelog: https://docs.djangoproject.com/en/4.2/releases/4.2.3/ Django 4.2.3 fixes a security issue with severity “moderate” and several bugs in 4.2.2. CVE-2023-36053: Potential regular expression denial of service vulnerability in EmailValidator/URLValidator EmailValidator and URLValidator were subject to potential regular expression denial of service attack via a very large number of domain name labels of emails and URLs. Bugfixes - Fixed a regression in Django 4.2 that caused incorrect alignment of timezone warnings for DateField and TimeField in the admin (#34645). - Fixed a regression in Django 4.2 that caused incorrect highlighting of rows in the admin changelist view when ModelAdmin.list_editable contained a BooleanField (#34638). Signed-off-by: Trevor Gamblin --- .../python/{python3-django_4.2.2.bb => python3-django_4.2.3.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-django_4.2.2.bb => python3-django_4.2.3.bb} (58%) diff --git a/meta-python/recipes-devtools/python/python3-django_4.2.2.bb b/meta-python/recipes-devtools/python/python3-django_4.2.3.bb similarity index 58% rename from meta-python/recipes-devtools/python/python3-django_4.2.2.bb rename to meta-python/recipes-devtools/python/python3-django_4.2.3.bb index da65eb9c32..4e3192744e 100644 --- a/meta-python/recipes-devtools/python/python3-django_4.2.2.bb +++ b/meta-python/recipes-devtools/python/python3-django_4.2.3.bb @@ -1,7 +1,7 @@ require python-django.inc inherit setuptools3 -SRC_URI[sha256sum] = "2a6b6fbff5b59dd07bef10bcb019bee2ea97a30b2a656d51346596724324badf" +SRC_URI[sha256sum] = "45a747e1c5b3d6df1b141b1481e193b033fd1fdbda3ff52677dc81afdaacbaed" RDEPENDS:${PN} += "\ ${PYTHON_PN}-sqlparse \ -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103945): https://lists.openembedded.org/g/openembedded-devel/message/103945 Mute This Topic: https://lists.openembedded.org/mt/100217049/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 2/2] python3-ipython: upgrade 8.12.0 -> 8.14.0
Changelog: https://ipython.readthedocs.io/en/stable/whatsnew/version8.html Signed-off-by: Trevor Gamblin --- .../{python3-ipython_8.12.0.bb => python3-ipython_8.14.0.bb}| 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-ipython_8.12.0.bb => python3-ipython_8.14.0.bb} (89%) diff --git a/meta-python/recipes-devtools/python/python3-ipython_8.12.0.bb b/meta-python/recipes-devtools/python/python3-ipython_8.14.0.bb similarity index 89% rename from meta-python/recipes-devtools/python/python3-ipython_8.12.0.bb rename to meta-python/recipes-devtools/python/python3-ipython_8.14.0.bb index 0cfc80ec9d..83af99a4aa 100644 --- a/meta-python/recipes-devtools/python/python3-ipython_8.12.0.bb +++ b/meta-python/recipes-devtools/python/python3-ipython_8.14.0.bb @@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING.rst;md5=59b20262b8663cdd094005bddf47af5f" PYPI_PACKAGE = "ipython" -SRC_URI[sha256sum] = "a950236df04ad75b5bc7f816f9af3d74dc118fd42f2ff7e80e8e60ca1f182e2d" +SRC_URI[sha256sum] = "1d197b907b6ba441b692c48cf2a3a2de280dc0ac91a3405b39349a50272ca0a1" RDEPENDS:${PN} = "\ ${PYTHON_PN}-setuptools \ -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103946): https://lists.openembedded.org/g/openembedded-devel/message/103946 Mute This Topic: https://lists.openembedded.org/mt/100217050/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 9/9] python3-bitarray: upgrade 2.7.3 -> 2.7.6
Changelog: https://github.com/ilanschnell/bitarray/blob/master/CHANGE_LOG Signed-off-by: Trevor Gamblin --- .../{python3-bitarray_2.7.3.bb => python3-bitarray_2.7.6.bb}| 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-bitarray_2.7.3.bb => python3-bitarray_2.7.6.bb} (77%) diff --git a/meta-python/recipes-devtools/python/python3-bitarray_2.7.3.bb b/meta-python/recipes-devtools/python/python3-bitarray_2.7.6.bb similarity index 77% rename from meta-python/recipes-devtools/python/python3-bitarray_2.7.3.bb rename to meta-python/recipes-devtools/python/python3-bitarray_2.7.6.bb index f766692a0f..b27480057a 100644 --- a/meta-python/recipes-devtools/python/python3-bitarray_2.7.3.bb +++ b/meta-python/recipes-devtools/python/python3-bitarray_2.7.6.bb @@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/ilanschnell/bitarray"; LICENSE = "PSF-2.0" LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=2ad702cdcd49e8d2ac01d7e7d0810d2d" -SRC_URI[sha256sum] = "f71256a32609b036adad932e1228b66a6b4e2cae6be397e588ddc0babd9a78b9" +SRC_URI[sha256sum] = "3807f9323c308bc3f9b58cbe5d04dc28f34ac32d852999334da96b42f64b5356" inherit setuptools3 pypi -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103886): https://lists.openembedded.org/g/openembedded-devel/message/103886 Mute This Topic: https://lists.openembedded.org/mt/100196686/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 8/9] python3-bandit: add python3-rich to RDEPENDS
bandit wasn't imported properly without the rich module, so add it. Signed-off-by: Trevor Gamblin --- .../recipes-devtools/python/python3-bandit_1.7.5.bb| 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/meta-python/recipes-devtools/python/python3-bandit_1.7.5.bb b/meta-python/recipes-devtools/python/python3-bandit_1.7.5.bb index 5e2a7e8bc5..bccdf284e5 100644 --- a/meta-python/recipes-devtools/python/python3-bandit_1.7.5.bb +++ b/meta-python/recipes-devtools/python/python3-bandit_1.7.5.bb @@ -8,6 +8,14 @@ DEPENDS = "python3-pbr-native python3-git python3-pbr python3-pyyaml python3-six inherit setuptools3 pypi -RDEPENDS:${PN} += "python3-modules python3-git python3-pbr python3-pyyaml python3-six python3-stevedore" +RDEPENDS:${PN} += "\ +python3-git \ +python3-modules \ +python3-pbr \ +python3-pyyaml \ +python3-rich \ +python3-six \ +python3-stevedore \ +" BBCLASSEXTEND = "native" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103885): https://lists.openembedded.org/g/openembedded-devel/message/103885 Mute This Topic: https://lists.openembedded.org/mt/100196685/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 1/9] python3-alembic: upgrade 1.10.4 -> 1.11.1
There are numerous changes between 1.10.4 and 1.11.1, including several bug fixes. Changelog: https://github.com/sqlalchemy/alembic/releases Signed-off-by: Trevor Gamblin --- .../{python3-alembic_1.10.4.bb => python3-alembic_1.11.1.bb}| 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-alembic_1.10.4.bb => python3-alembic_1.11.1.bb} (81%) diff --git a/meta-python/recipes-devtools/python/python3-alembic_1.10.4.bb b/meta-python/recipes-devtools/python/python3-alembic_1.11.1.bb similarity index 81% rename from meta-python/recipes-devtools/python/python3-alembic_1.10.4.bb rename to meta-python/recipes-devtools/python/python3-alembic_1.11.1.bb index 071f40bb03..feb2c419bc 100644 --- a/meta-python/recipes-devtools/python/python3-alembic_1.10.4.bb +++ b/meta-python/recipes-devtools/python/python3-alembic_1.11.1.bb @@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=e3023b042cb6002cb398344b51c67093" inherit pypi setuptools3 -SRC_URI[sha256sum] = "295b54bbb92c4008ab6a7dcd1e227e668416d6f84b98b3c4446a2bc6214a556b" +SRC_URI[sha256sum] = "6a810a6b012c88b33458fceb869aef09ac75d6ace5291915ba7fae44de372c01" PYPI_PACKAGE = "alembic" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103878): https://lists.openembedded.org/g/openembedded-devel/message/103878 Mute This Topic: https://lists.openembedded.org/mt/100196677/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 6/9] python3-autobahn: upgrade 23.6.1 -> 23.6.2
Changelog: https://github.com/crossbario/autobahn-python/blob/master/docs/changelog.rst Changes: - fix: use regular PyPI bitarray>=2.7.5 rather than from GitHub master Signed-off-by: Trevor Gamblin --- .../{python3-autobahn_23.6.1.bb => python3-autobahn_23.6.2.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-autobahn_23.6.1.bb => python3-autobahn_23.6.2.bb} (86%) diff --git a/meta-python/recipes-devtools/python/python3-autobahn_23.6.1.bb b/meta-python/recipes-devtools/python/python3-autobahn_23.6.2.bb similarity index 86% rename from meta-python/recipes-devtools/python/python3-autobahn_23.6.1.bb rename to meta-python/recipes-devtools/python/python3-autobahn_23.6.2.bb index dc11b85dab..54c8f23fc3 100644 --- a/meta-python/recipes-devtools/python/python3-autobahn_23.6.1.bb +++ b/meta-python/recipes-devtools/python/python3-autobahn_23.6.2.bb @@ -3,7 +3,7 @@ HOMEPAGE = "http://crossbar.io/autobahn"; LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=3e2c2c2cc2915edc5321b0e6b1d3f5f8" -SRC_URI[sha256sum] = "ce6e540402e3524ca46c55a1bc46255225969b5837ca792ea5415d21ac571034" +SRC_URI[sha256sum] = "ec9421c52a2103364d1ef0468036e6019ee84f71721e86b36fe19ad6966c1181" inherit pypi setuptools3 -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103883): https://lists.openembedded.org/g/openembedded-devel/message/103883 Mute This Topic: https://lists.openembedded.org/mt/100196683/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 7/9] python3-bandit: upgrade 1.7.4 -> 1.7.5
Changelog: https://github.com/PyCQA/bandit/releases/tag/1.7.5 Signed-off-by: Trevor Gamblin --- .../python/{python3-bandit_1.7.4.bb => python3-bandit_1.7.5.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-bandit_1.7.4.bb => python3-bandit_1.7.5.bb} (82%) diff --git a/meta-python/recipes-devtools/python/python3-bandit_1.7.4.bb b/meta-python/recipes-devtools/python/python3-bandit_1.7.5.bb similarity index 82% rename from meta-python/recipes-devtools/python/python3-bandit_1.7.4.bb rename to meta-python/recipes-devtools/python/python3-bandit_1.7.5.bb index cfdbde9689..5e2a7e8bc5 100644 --- a/meta-python/recipes-devtools/python/python3-bandit_1.7.4.bb +++ b/meta-python/recipes-devtools/python/python3-bandit_1.7.5.bb @@ -2,7 +2,7 @@ SUMMARY = "Security oriented static analyser for python code." LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=34400b68072d710fecd0a2940a0d1658" -SRC_URI[sha256sum] = "2d63a8c573417bae338962d4b9b06fbc6080f74ecd955a092849e1e65c717bd2" +SRC_URI[sha256sum] = "bdfc739baa03b880c2d15d0431b31c658ffc348e907fe197e54e0389dd59e11e" DEPENDS = "python3-pbr-native python3-git python3-pbr python3-pyyaml python3-six python3-stevedore" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103884): https://lists.openembedded.org/g/openembedded-devel/message/103884 Mute This Topic: https://lists.openembedded.org/mt/100196684/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 3/9] python3-argcomplete: upgrade 3.1.0 -> 3.1.1
Changelog: https://github.com/kislyuk/argcomplete/blob/develop/Changes.rst Changes for v3.1.1 (2023-06-11) - Search through asdf shims - Use ` as escape character in PowerShell (#434) Signed-off-by: Trevor Gamblin --- ...ython3-argcomplete_3.1.0.bb => python3-argcomplete_3.1.1.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-argcomplete_3.1.0.bb => python3-argcomplete_3.1.1.bb} (83%) diff --git a/meta-python/recipes-devtools/python/python3-argcomplete_3.1.0.bb b/meta-python/recipes-devtools/python/python3-argcomplete_3.1.1.bb similarity index 83% rename from meta-python/recipes-devtools/python/python3-argcomplete_3.1.0.bb rename to meta-python/recipes-devtools/python/python3-argcomplete_3.1.1.bb index 859ef7b10f..504e7e2ebd 100644 --- a/meta-python/recipes-devtools/python/python3-argcomplete_3.1.0.bb +++ b/meta-python/recipes-devtools/python/python3-argcomplete_3.1.1.bb @@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/kislyuk/argcomplete"; LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=2ee41112a44fe7014dce33e26468ba93" -SRC_URI[sha256sum] = "3a81445fa51c9875c36789ae5386d5e95c5c43d503963a0029a747aea74de1e3" +SRC_URI[sha256sum] = "6c4c563f14f01440aaffa3eae13441c5db2357b5eec639abe7c0b15334627dff" PYPI_PACKAGE = "argcomplete" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103879): https://lists.openembedded.org/g/openembedded-devel/message/103879 Mute This Topic: https://lists.openembedded.org/mt/100196678/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 5/9] python3-astroid: upgrade 2.15.5 -> 2.15.6
Changelog: https://github.com/pylint-dev/astroid/releases/tag/v2.15.6 Changes: - Harden get_module_part() against ".". - Avoid expensive list/tuple multiplication operations that would result in MemoryError. Signed-off-by: Trevor Gamblin --- .../{python3-astroid_2.15.5.bb => python3-astroid_2.15.6.bb}| 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-astroid_2.15.5.bb => python3-astroid_2.15.6.bb} (90%) diff --git a/meta-python/recipes-devtools/python/python3-astroid_2.15.5.bb b/meta-python/recipes-devtools/python/python3-astroid_2.15.6.bb similarity index 90% rename from meta-python/recipes-devtools/python/python3-astroid_2.15.5.bb rename to meta-python/recipes-devtools/python/python3-astroid_2.15.6.bb index 7c859107cb..7325eb13f3 100644 --- a/meta-python/recipes-devtools/python/python3-astroid_2.15.5.bb +++ b/meta-python/recipes-devtools/python/python3-astroid_2.15.6.bb @@ -4,7 +4,7 @@ SECTION = "devel/python" LICENSE = "LGPL-2.1-only" LIC_FILES_CHKSUM = "file://LICENSE;md5=a70cf540abf41acb644ac3b621b2fad1" -SRC_URI[sha256sum] = "1039262575027b441137ab4a62a793a9b43defb42c32d5670f38686207cd780f" +SRC_URI[sha256sum] = "903f024859b7c7687d7a7f3a3f73b17301f8e42dfd9cc9df9d4418172d3e2dbd" inherit pypi python_setuptools_build_meta -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103882): https://lists.openembedded.org/g/openembedded-devel/message/103882 Mute This Topic: https://lists.openembedded.org/mt/100196682/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 2/9] python3-sqlalchemy: upgrade 2.0.15 -> 2.0.19
Changelog: https://docs.sqlalchemy.org/en/20/changelog/changelog_20.html Signed-off-by: Trevor Gamblin --- ...ython3-sqlalchemy_2.0.15.bb => python3-sqlalchemy_2.0.19.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-sqlalchemy_2.0.15.bb => python3-sqlalchemy_2.0.19.bb} (87%) diff --git a/meta-python/recipes-devtools/python/python3-sqlalchemy_2.0.15.bb b/meta-python/recipes-devtools/python/python3-sqlalchemy_2.0.19.bb similarity index 87% rename from meta-python/recipes-devtools/python/python3-sqlalchemy_2.0.15.bb rename to meta-python/recipes-devtools/python/python3-sqlalchemy_2.0.19.bb index e6f0d64293..a2cf00dfd3 100644 --- a/meta-python/recipes-devtools/python/python3-sqlalchemy_2.0.15.bb +++ b/meta-python/recipes-devtools/python/python3-sqlalchemy_2.0.19.bb @@ -4,7 +4,7 @@ HOMEPAGE = "http://www.sqlalchemy.org/"; LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=b707d50badb798e1d897f2c8f649382d" -SRC_URI[sha256sum] = "2e940a8659ef870ae10e0d9e2a6d5aaddf0ff6e91f7d0d7732afc9e8c4be9bbc" +SRC_URI[sha256sum] = "77a14fa20264af73ddcdb1e2b9c5a829b8cc6b8304d0f093271980e36c200a3f" PYPI_PACKAGE = "SQLAlchemy" inherit pypi setuptools3 -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103880): https://lists.openembedded.org/g/openembedded-devel/message/103880 Mute This Topic: https://lists.openembedded.org/mt/100196679/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 4/9] python3-arpeggio: upgrade 2.0.0 -> 2.0.2
Changelog: https://github.com/textX/Arpeggio/releases 2.0.2 (released: 2023-07-09) - fix: drop deprecated setup_requires and tests_require #116. Thanks @kloczek. 2.0.1 (released: 2023-07-09) - fix: replace \n with \\n in error reports for matches #99. Thanks @mettta and @stanislaw. Signed-off-by: Trevor Gamblin --- .../{python3-arpeggio_2.0.0.bb => python3-arpeggio_2.0.2.bb}| 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-arpeggio_2.0.0.bb => python3-arpeggio_2.0.2.bb} (83%) diff --git a/meta-python/recipes-devtools/python/python3-arpeggio_2.0.0.bb b/meta-python/recipes-devtools/python/python3-arpeggio_2.0.2.bb similarity index 83% rename from meta-python/recipes-devtools/python/python3-arpeggio_2.0.0.bb rename to meta-python/recipes-devtools/python/python3-arpeggio_2.0.2.bb index 96d6de6a69..1a48a88c29 100644 --- a/meta-python/recipes-devtools/python/python3-arpeggio_2.0.0.bb +++ b/meta-python/recipes-devtools/python/python3-arpeggio_2.0.2.bb @@ -3,7 +3,7 @@ HOMEPAGE = "https://pypi.org/project/Arpeggio/"; LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=33b8d1ba459a2fa4d801acfd1d1b7ceb" -SRC_URI[sha256sum] = "d6b03839019bb8a68785f9292ee6a36b1954eb84b925b84a6b8a5e1e26d3ed3d" +SRC_URI[sha256sum] = "c790b2b06e226d2dd468e4fbfb5b7f506cec66416031fde1441cf1de2a0ba700" PYPI_PACKAGE = "Arpeggio" inherit pypi setuptools3 -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103881): https://lists.openembedded.org/g/openembedded-devel/message/103881 Mute This Topic: https://lists.openembedded.org/mt/100196681/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 1/2] python3-pylint: upgrade 2.17.3 -> 2.17.4
This upgrade fixes most of the ptest errors that have been seen with pylint, which were caused by a tomlkit issue. Changelog (see also https://github.com/pylint-dev/pylint/releases/tag/v2.17.4): False Positives Fixed - Fix a false positive for bad-dunder-name when there is a user-defined __index__ method. Closes #8613 Other Bug Fixes - pyreverse: added escaping of vertical bar character in annotation labels produced by DOT printer to ensure it is not treated as field separator of record-based nodes. Closes #8603 - Fixed a crash when generating a configuration file: tomlkit.exceptions.TOMLKitError: Can't add a table to a dotted key caused by tomlkit v0.11.8. Closes #8632 Signed-off-by: Trevor Gamblin --- .../{python3-pylint_2.17.3.bb => python3-pylint_2.17.4.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-pylint_2.17.3.bb => python3-pylint_2.17.4.bb} (96%) diff --git a/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb b/meta-python/recipes-devtools/python/python3-pylint_2.17.4.bb similarity index 96% rename from meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb rename to meta-python/recipes-devtools/python/python3-pylint_2.17.4.bb index 4a082066b..c20d91259 100644 --- a/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb +++ b/meta-python/recipes-devtools/python/python3-pylint_2.17.4.bb @@ -8,7 +8,7 @@ SRC_URI += " \ file://run-ptest \ file://0001-pyproject.toml-Remove-hard-coded-dependencies.patch \ " -SRCREV ?= "389e14c36819cb87190fd412d3f366a3283f0078" +SRCREV ?= "fc34a4b6abe56f3ac07ca15d846b1c1955545f85" inherit python_setuptools_build_meta ptest -- 2.40.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#102604): https://lists.openembedded.org/g/openembedded-devel/message/102604 Mute This Topic: https://lists.openembedded.org/mt/98903923/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 2/2] python3-pylint: omit failing pickle test
There is one test in the pylint suite involving pickling non-pickleable plugins that fails on target (but not host). Disable this test for ptest runs. Signed-off-by: Trevor Gamblin --- ...001-pylint-remove-plugin-pickle-test.patch | 53 +++ .../python/python3-pylint_2.17.4.bb | 1 + 2 files changed, 54 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pylint/0001-pylint-remove-plugin-pickle-test.patch diff --git a/meta-python/recipes-devtools/python/python3-pylint/0001-pylint-remove-plugin-pickle-test.patch b/meta-python/recipes-devtools/python/python3-pylint/0001-pylint-remove-plugin-pickle-test.patch new file mode 100644 index 0..a7637a5ca --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pylint/0001-pylint-remove-plugin-pickle-test.patch @@ -0,0 +1,53 @@ +From 341e19dd69d847f84859e85cabff5846e7da24c4 Mon Sep 17 00:00:00 2001 +From: Trevor Gamblin +Date: Mon, 15 May 2023 09:26:04 -0400 +Subject: [PATCH] pylint: remove plugin pickle test + +Upstream-Status: Inappropriate (oe-specific) + +Upstream uses an assertion in the removed test to state that the test +needs changing if the plugin loading succeeds. The same failure wasn't +seen when running the tests on the host with pytest, so disable it by +removing the test from the suite. + +Signed-off-by: Trevor Gamblin +--- + tests/test_check_parallel.py | 22 -- + 1 file changed, 22 deletions(-) + +diff --git a/tests/test_check_parallel.py b/tests/test_check_parallel.py +index d56502eaf..34fec140f 100644 +--- a/tests/test_check_parallel.py b/tests/test_check_parallel.py +@@ -257,28 +257,6 @@ class TestCheckParallelFramework: + assert stats.statement == 18 + assert stats.warning == 0 + +-def test_linter_with_unpickleable_plugins_is_pickleable(self) -> None: +-"""The linter needs to be pickle-able in order to be passed between workers""" +-linter = PyLinter(reporter=Reporter()) +-# We load an extension that we know is not pickle-safe +- linter.load_plugin_modules(["pylint.extensions.overlapping_exceptions"]) +-try: +-dill.dumps(linter) +-raise AssertionError( +-"Plugins loaded were pickle-safe! This test needs altering" +-) +-except (KeyError, TypeError, PickleError, NotImplementedError): +-pass +- +-# And expect this call to make it pickle-able +-linter.load_plugin_configuration() +-try: +-dill.dumps(linter) +-except KeyError as exc: +-raise AssertionError( +-"Cannot pickle linter when using non-pickleable plugin" +-) from exc +- + def test_worker_check_sequential_checker(self) -> None: + """Same as test_worker_check_single_file_no_checkers with SequentialTestChecker.""" + linter = PyLinter(reporter=Reporter()) +-- +2.40.1 + diff --git a/meta-python/recipes-devtools/python/python3-pylint_2.17.4.bb b/meta-python/recipes-devtools/python/python3-pylint_2.17.4.bb index c20d91259..96fce2e04 100644 --- a/meta-python/recipes-devtools/python/python3-pylint_2.17.4.bb +++ b/meta-python/recipes-devtools/python/python3-pylint_2.17.4.bb @@ -7,6 +7,7 @@ SRC_URI += " \ git://github.com/pylint-dev/pylint;branch=main;protocol=https \ file://run-ptest \ file://0001-pyproject.toml-Remove-hard-coded-dependencies.patch \ +file://0001-pylint-remove-plugin-pickle-test.patch \ " SRCREV ?= "fc34a4b6abe56f3ac07ca15d846b1c1955545f85" -- 2.40.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#102605): https://lists.openembedded.org/g/openembedded-devel/message/102605 Mute This Topic: https://lists.openembedded.org/mt/98903924/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH v2] python3-platformdirs: Add recipe
v2 replaces the inherit of "python_setuptools_build_meta" with "python_hatchling" to make the dependency on hatchling more explicit. Signed-off-by: Trevor Gamblin --- .../python/python3-platformdirs/run-ptest | 3 ++ .../python/python3-platformdirs_3.5.0.bb | 35 +++ 2 files changed, 38 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-platformdirs/run-ptest create mode 100644 meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb diff --git a/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest new file mode 100644 index 0..b63c4de0d --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}' diff --git a/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb b/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb new file mode 100644 index 0..826d06207 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb @@ -0,0 +1,35 @@ +SUMMARY = "A small Python module for determining appropriate platform-specific dirs" +HOMEPAGE = "https://github.com/platformdirs/platformdirs"; +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=ea4f5a41454746a9ed111e3d8723d17a" + +SRC_URI = " \ +git://github.com/platformdirs/platformdirs.git;branch=main;protocol=https \ +file://run-ptest \ +" + +SRCREV ?= "dcb56802714f5570236c86d03773ff881be6e39f" +SRC_URI[sha256sum] = "7954a68d0ba23558d753f73437c55f89027cf8f5108c19844d4b82e5af396335" + +inherit python_hatchling ptest + +DEPENDS += " \ +python3-hatch-vcs-native \ +python3-setuptools-scm-native \ +python3-toml-native \ +" + +S = "${WORKDIR}/git" + +RDEPENDS:${PN}-ptest += " \ +${PYTHON_PN}-appdirs \ +${PYTHON_PN}-pytest \ +${PYTHON_PN}-pytest-mock \ +" + +do_install_ptest() { +install -d ${D}${PTEST_PATH}/Tests +cp -rf ${S}/tests ${D}${PTEST_PATH}/ +} + +BBCLASSEXTEND = "native" -- 2.40.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#102286): https://lists.openembedded.org/g/openembedded-devel/message/102286 Mute This Topic: https://lists.openembedded.org/mt/98660743/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-python][PATCH 1/6] python3-platformdirs: Add recipe
On Tue, May 2, 2023 at 11:08 PM Tim Orling wrote: > > > On Tue, May 2, 2023 at 3:01 PM Khem Raj wrote: > >> nm cleaned tmpdir it builds and runs ok >> >> On Tue, May 2, 2023 at 2:57 PM Khem Raj wrote: >> > >> > ah nm, I needed your patches for oe-core as well which upgrades >> > hatchling to 1.14.x but it still fails to build let me see what could >> > be going on. >> > >> > On Tue, May 2, 2023 at 2:46 PM Khem Raj wrote: >> > > >> > > I think it needs python3-hatchling or native variant of this. It >> fails to build >> > > >> > > | ERROR Missing dependencies: >> > > | hatchling>=1.14 >> > > >> > > On Tue, May 2, 2023 at 9:50 AM Trevor Gamblin >> wrote: >> > > > >> > > > Signed-off-by: Trevor Gamblin >> > > > --- >> > > > .../python/python3-platformdirs/run-ptest | 3 ++ >> > > > .../python/python3-platformdirs_3.5.0.bb | 35 >> +++ >> > > > 2 files changed, 38 insertions(+) >> > > > create mode 100644 >> meta-python/recipes-devtools/python/python3-platformdirs/run-ptest >> > > > create mode 100644 meta-python/recipes-devtools/python/ >> python3-platformdirs_3.5.0.bb >> > > > >> > > > diff --git >> a/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest >> b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest >> > > > new file mode 100644 >> > > > index 0..b63c4de0d >> > > > --- /dev/null >> > > > +++ >> b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest >> > > > @@ -0,0 +1,3 @@ >> > > > +#!/bin/sh >> > > > + >> > > > +pytest -o log_cli=true -o log_cli_level=INFO | sed -e >> 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e >> 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || >> $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk >> '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || >> $NF=="XPASS") {$NF="";print $0}else{print}}' >> > > > diff --git a/meta-python/recipes-devtools/python/ >> python3-platformdirs_3.5.0.bb b/meta-python/recipes-devtools/python/ >> python3-platformdirs_3.5.0.bb >> > > > new file mode 100644 >> > > > index 0..b5ff369d0 >> > > > --- /dev/null >> > > > +++ b/meta-python/recipes-devtools/python/ >> python3-platformdirs_3.5.0.bb >> > > > @@ -0,0 +1,35 @@ >> > > > +SUMMARY = "A small Python module for determining appropriate >> platform-specific dirs" >> > > > +HOMEPAGE = "https://github.com/platformdirs/platformdirs"; >> > > > +LICENSE = "BSD-3-Clause" >> > > > +LIC_FILES_CHKSUM = >> "file://LICENSE;md5=ea4f5a41454746a9ed111e3d8723d17a" >> > > > + >> > > > +SRC_URI = " \ >> > > > +git:// >> github.com/platformdirs/platformdirs.git;branch=main;protocol=https \ >> > > > +file://run-ptest \ >> > > > +" >> > > > + >> > > > +SRCREV ?= "dcb56802714f5570236c86d03773ff881be6e39f" >> > > > +SRC_URI[sha256sum] = >> "7954a68d0ba23558d753f73437c55f89027cf8f5108c19844d4b82e5af396335" >> > > > + >> > > > +inherit python_setuptools_build_meta ptest > > > > https://github.com/platformdirs/platformdirs/blob/a57f88b67210f26587d06ee77cbd0aea89e45cf9/pyproject.toml#L2 > > Seems like this should “inherit python_hatchling” instead of > python_setuptools_build_meta > > https://git.yoctoproject.org/poky/tree/meta/classes-recipe/python_hatchling.bbclass > I've tested it with both now and no difference seems apparent on the build side. I'll resend with python_hatchling instead of python_setuptools_build_meta to make sure hatchling is more explicit in the dependencies. > > >> > > > + >> > > > +DEPENDS += " \ >> > > > +python3-hatch-vcs-native \ >> > > > +python3-setuptools-scm-native \ >> > > > +python3-toml-native \ >> > > > +" >> > > > + >> > > > +S = "${WORKDIR}/git" >> > > > + >> > > > +RDEPENDS:${PN}-ptest += " \ >> > > > +${PYTHON_PN}-appdirs \ >> > > > +${PYTHON_PN}-pytest \ >> > > > +${PYTHON_PN}-pytest-mock \ >> > > > +" >> > > > + >> > > > +do_install_ptest() { >> > > > +install -d ${D}${PTEST_PATH}/Tests >> > > > +cp -rf ${S}/tests ${D}${PTEST_PATH}/ >> > > > +} >> > > > + >> > > > +BBCLASSEXTEND = "native" >> > > > -- >> > > > 2.40.0 >> > > > >> > > > >> > > > >> > > > >> >> >> >> -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#102285): https://lists.openembedded.org/g/openembedded-devel/message/102285 Mute This Topic: https://lists.openembedded.org/mt/98643291/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 5/6] python3-pylint: add ptest
Signed-off-by: Trevor Gamblin --- toml-Remove-hard-coded-dependencies.patch | 10 ++- .../python/python3-pylint/run-ptest | 3 ++ .../python/python3-pylint_2.17.3.bb | 30 +-- 3 files changed, 32 insertions(+), 11 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-pylint/run-ptest diff --git a/meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch b/meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch index 55d42b101..267e4c30d 100644 --- a/meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch +++ b/meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch @@ -1,21 +1,15 @@ -From 843d050f1bf889b81fa8fc3e7a1350385c8348ec Mon Sep 17 00:00:00 2001 +From c5c415a240189ac6730ba95de0bb5883dfb53609 Mon Sep 17 00:00:00 2001 From: Trevor Gamblin Date: Mon, 1 May 2023 11:32:24 -0400 Subject: [PATCH] pyproject.toml: Remove hard-coded dependencies -The upstream pyproject.toml has hard-coded dependencies on specific -versions of wheel and setuptools. This breaks builds of pylint -2.17.3, so patch it to remove the pinned versions. - -Upstream-Status: Pending - Signed-off-by: Trevor Gamblin --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml -index e4b63c660..0ee21e0eb 100644 +index bd542646b..2c0ed9485 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ diff --git a/meta-python/recipes-devtools/python/python3-pylint/run-ptest b/meta-python/recipes-devtools/python/python3-pylint/run-ptest new file mode 100644 index 0..b63c4de0d --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pylint/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}' diff --git a/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb b/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb index b85f77503..58f0616fc 100644 --- a/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb +++ b/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb @@ -3,10 +3,14 @@ HOMEPAGE= "http://www.pylint.org/"; LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://LICENSE;md5=c107cf754550e65755c42985a5d4e9c9" -SRC_URI += "file://0001-pyproject.toml-Remove-hard-coded-dependencies.patch" -SRC_URI[sha256sum] = "761907349e699f8afdcd56c4fe02f3021ab5b3a0fc26d19a9bfdc66c7d0d5cd5" +SRC_URI += " \ +git://github.com/pylint-dev/pylint;branch=main;protocol=https \ +file://run-ptest \ +file://0001-pyproject.toml-Remove-hard-coded-dependencies.patch \ +" +SRCREV ?= "389e14c36819cb87190fd412d3f366a3283f0078" -inherit pypi python_setuptools_build_meta +inherit python_setuptools_build_meta ptest RDEPENDS:${PN} += "${PYTHON_PN}-astroid \ ${PYTHON_PN}-isort \ @@ -17,3 +21,23 @@ RDEPENDS:${PN} += "${PYTHON_PN}-astroid \ ${PYTHON_PN}-difflib \ ${PYTHON_PN}-netserver \ " + +RDEPENDS:${PN}-ptest += " \ +${PYTHON_PN}-core \ +${PYTHON_PN}-dill \ +${PYTHON_PN}-git \ +${PYTHON_PN}-platformdirs \ +${PYTHON_PN}-pytest \ +${PYTHON_PN}-pytest-benchmark \ +${PYTHON_PN}-statistics \ +${PYTHON_PN}-tomlkit \ +${PYTHON_PN}-tomllib \ +" + +S = "${WORKDIR}/git" + +do_install_ptest() { +install -d ${D}${PTEST_PATH}/tests +cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +sed -i 's#/usr/bin/python$#/usr/bin/python3#g' ${D}${PTEST_PATH}/tests/data/ascript +} -- 2.40.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#102270): https://lists.openembedded.org/g/openembedded-devel/message/102270 Mute This Topic: https://lists.openembedded.org/mt/98643295/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 6/6] ptest-packagelists-meta-python: Add new tests
Add ptests for python3-pylint, python3-platformdirs, python3-pytest-mock, python3-tomlkit. Signed-off-by: Trevor Gamblin --- meta-python/conf/include/ptest-packagelists-meta-python.inc | 4 1 file changed, 4 insertions(+) diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc index ef5d20bcd..f5935e4a9 100644 --- a/meta-python/conf/include/ptest-packagelists-meta-python.inc +++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc @@ -23,13 +23,16 @@ PTESTS_FAST_META_PYTHON = "\ python3-ipy \ python3-iso3166 \ python3-parse-type \ +python3-platformdirs \ python3-polyline \ python3-precise-runner \ python3-prettytable \ python3-ptyprocess \ python3-pyasn1-modules \ +python3-pylint \ python3-pyroute2 \ python3-pyserial \ +python3-pytest-mock \ python3-pytoml \ python3-requests-file \ python3-requests-toolbelt \ @@ -39,6 +42,7 @@ PTESTS_FAST_META_PYTHON = "\ python3-smpplib \ python3-soupsieve \ python3-sqlparse \ +python3-tomlkit \ python3-u-msgpack-python \ python3-unidiff \ python3-uritemplate \ -- 2.40.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#102271): https://lists.openembedded.org/g/openembedded-devel/message/102271 Mute This Topic: https://lists.openembedded.org/mt/98643296/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 4/6] python3-pylint: upgrade 2.14.5 -> 2.17.3
Change pylint to inherit python_setuptools_build_meta instead of setuptools3. Also add a patch to remove hard-coded version depdendencies for wheel and setuptools from the pyproject.toml, otherwise the following error occurs during do_compile: | ERROR Missing dependencies: | wheel~=0.37.1 | setuptools~=62.6 Release note links: 2.17.x: https://pylint.readthedocs.io/en/latest/whatsnew/2/2.17/index.html 2.16.x: https://pylint.readthedocs.io/en/latest/whatsnew/2/2.16/index.html 2.15.x: https://pylint.readthedocs.io/en/latest/whatsnew/2/2.15/index.html 2.14.x: https://pylint.readthedocs.io/en/latest/whatsnew/2/2.14/index.html Signed-off-by: Trevor Gamblin --- toml-Remove-hard-coded-dependencies.patch | 30 +++ ...int_2.14.5.bb => python3-pylint_2.17.3.bb} | 5 ++-- 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch rename meta-python/recipes-devtools/python/{python3-pylint_2.14.5.bb => python3-pylint_2.17.3.bb} (72%) diff --git a/meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch b/meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch new file mode 100644 index 0..55d42b101 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch @@ -0,0 +1,30 @@ +From 843d050f1bf889b81fa8fc3e7a1350385c8348ec Mon Sep 17 00:00:00 2001 +From: Trevor Gamblin +Date: Mon, 1 May 2023 11:32:24 -0400 +Subject: [PATCH] pyproject.toml: Remove hard-coded dependencies + +The upstream pyproject.toml has hard-coded dependencies on specific +versions of wheel and setuptools. This breaks builds of pylint +2.17.3, so patch it to remove the pinned versions. + +Upstream-Status: Pending + +Signed-off-by: Trevor Gamblin +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index e4b63c660..0ee21e0eb 100644 +--- a/pyproject.toml b/pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = ["setuptools~=62.6", "wheel~=0.37.1"] ++requires = ["setuptools", "wheel"] + build-backend = "setuptools.build_meta" + + [project] +-- +2.40.0 + diff --git a/meta-python/recipes-devtools/python/python3-pylint_2.14.5.bb b/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb similarity index 72% rename from meta-python/recipes-devtools/python/python3-pylint_2.14.5.bb rename to meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb index 738b9250c..b85f77503 100644 --- a/meta-python/recipes-devtools/python/python3-pylint_2.14.5.bb +++ b/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb @@ -3,9 +3,10 @@ HOMEPAGE= "http://www.pylint.org/"; LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://LICENSE;md5=c107cf754550e65755c42985a5d4e9c9" -SRC_URI[sha256sum] = "487ce2192eee48211269a0e976421f334cf94de1806ca9d0a99449adcdf0285e" +SRC_URI += "file://0001-pyproject.toml-Remove-hard-coded-dependencies.patch" +SRC_URI[sha256sum] = "761907349e699f8afdcd56c4fe02f3021ab5b3a0fc26d19a9bfdc66c7d0d5cd5" -inherit pypi setuptools3 +inherit pypi python_setuptools_build_meta RDEPENDS:${PN} += "${PYTHON_PN}-astroid \ ${PYTHON_PN}-isort \ -- 2.40.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#102269): https://lists.openembedded.org/g/openembedded-devel/message/102269 Mute This Topic: https://lists.openembedded.org/mt/98643294/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 3/6] python3-tomlkit: Add recipe
Signed-off-by: Trevor Gamblin --- .../python/python3-tomlkit/run-ptest | 3 +++ .../python/python3-tomlkit_0.11.8.bb | 23 +++ 2 files changed, 26 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-tomlkit/run-ptest create mode 100644 meta-python/recipes-devtools/python/python3-tomlkit_0.11.8.bb diff --git a/meta-python/recipes-devtools/python/python3-tomlkit/run-ptest b/meta-python/recipes-devtools/python/python3-tomlkit/run-ptest new file mode 100644 index 0..b63c4de0d --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-tomlkit/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}' diff --git a/meta-python/recipes-devtools/python/python3-tomlkit_0.11.8.bb b/meta-python/recipes-devtools/python/python3-tomlkit_0.11.8.bb new file mode 100644 index 0..71a43c455 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-tomlkit_0.11.8.bb @@ -0,0 +1,23 @@ +SUMMARY = "Style preserving TOML library" +HOMEPAGE = "https://pypi.org/project/tomlkit/"; +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=31aac0dbc1babd278d5386dadb7f8e82" + +SRC_URI[sha256sum] = "9330fc7faa1db67b541b28e62018c17d20be733177d290a13b24c62d1614e0c3" + +inherit pypi python_poetry_core ptest + +SRC_URI += " \ +file://run-ptest \ +" + +RDEPENDS:${PN}-ptest += " \ +${PYTHON_PN}-poetry-core \ +${PYTHON_PN}-pytest \ +${PYTHON_PN}-pyyaml \ +" + +do_install_ptest() { +install -d ${D}${PTEST_PATH}/tests +cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} -- 2.40.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#102268): https://lists.openembedded.org/g/openembedded-devel/message/102268 Mute This Topic: https://lists.openembedded.org/mt/98643293/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 2/6] python3-pytest-mock: Add recipe
Signed-off-by: Trevor Gamblin --- .../python/python3-pytest-mock/run-ptest | 3 +++ .../python/python3-pytest-mock_3.10.0.bb | 26 +++ 2 files changed, 29 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pytest-mock/run-ptest create mode 100644 meta-python/recipes-devtools/python/python3-pytest-mock_3.10.0.bb diff --git a/meta-python/recipes-devtools/python/python3-pytest-mock/run-ptest b/meta-python/recipes-devtools/python/python3-pytest-mock/run-ptest new file mode 100644 index 0..b63c4de0d --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pytest-mock/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}' diff --git a/meta-python/recipes-devtools/python/python3-pytest-mock_3.10.0.bb b/meta-python/recipes-devtools/python/python3-pytest-mock_3.10.0.bb new file mode 100644 index 0..c4e672f33 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pytest-mock_3.10.0.bb @@ -0,0 +1,26 @@ +SUMMARY = "Thin-wrapper around the mock package for easier use with pytest" +HOMEPAGE = "https://github.com/pytest-dev/pytest-mock/"; +LICENSE = "MIT" +LIC_FILES_CHKSUM = " \ +file://LICENSE;md5=b2ddb1e69238461b7e4ef2a84d874109 \ +" + +SRC_URI = " \ +git://github.com/pytest-dev/pytest-mock;branch=main;protocol=https \ +file://run-ptest \ +" + +SRCREV ?= "6c03dfd4240de4a178bab67c0a32fba28d8bcf91" + +SRC_URI[sha256sum] = "fbbdb085ef7c252a326fd8cdcac0aa3b1333d8811f131bdcc701002e1be7ed4f" + +inherit setuptools3 ptest + +DEPENDS += "${PYTHON_PN}-setuptools-scm-native" + +S = "${WORKDIR}/git" + +do_install_ptest() { +install -d ${D}${PTEST_PATH}/tests +cp -rf ${S}/tests ${D}${PTEST_PATH}/ +} -- 2.40.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#102267): https://lists.openembedded.org/g/openembedded-devel/message/102267 Mute This Topic: https://lists.openembedded.org/mt/98643292/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 1/6] python3-platformdirs: Add recipe
Signed-off-by: Trevor Gamblin --- .../python/python3-platformdirs/run-ptest | 3 ++ .../python/python3-platformdirs_3.5.0.bb | 35 +++ 2 files changed, 38 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-platformdirs/run-ptest create mode 100644 meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb diff --git a/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest new file mode 100644 index 0..b63c4de0d --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}' diff --git a/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb b/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb new file mode 100644 index 0..b5ff369d0 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb @@ -0,0 +1,35 @@ +SUMMARY = "A small Python module for determining appropriate platform-specific dirs" +HOMEPAGE = "https://github.com/platformdirs/platformdirs"; +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=ea4f5a41454746a9ed111e3d8723d17a" + +SRC_URI = " \ +git://github.com/platformdirs/platformdirs.git;branch=main;protocol=https \ +file://run-ptest \ +" + +SRCREV ?= "dcb56802714f5570236c86d03773ff881be6e39f" +SRC_URI[sha256sum] = "7954a68d0ba23558d753f73437c55f89027cf8f5108c19844d4b82e5af396335" + +inherit python_setuptools_build_meta ptest + +DEPENDS += " \ +python3-hatch-vcs-native \ +python3-setuptools-scm-native \ +python3-toml-native \ +" + +S = "${WORKDIR}/git" + +RDEPENDS:${PN}-ptest += " \ +${PYTHON_PN}-appdirs \ +${PYTHON_PN}-pytest \ +${PYTHON_PN}-pytest-mock \ +" + +do_install_ptest() { +install -d ${D}${PTEST_PATH}/Tests +cp -rf ${S}/tests ${D}${PTEST_PATH}/ +} + +BBCLASSEXTEND = "native" -- 2.40.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#102266): https://lists.openembedded.org/g/openembedded-devel/message/102266 Mute This Topic: https://lists.openembedded.org/mt/98643291/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 0/6] Support updated python3-pylint
Patchtest relies on python3-pylint, but it's a very old version in that repo. Before proceeding with updating, it seemed important to uprev the recipe in meta-python and add a ptest at the same time. This required significant changes and the addition of a few new recipes, some of which also existed in other layers but in older forms: python3-platformdirs, python3-pytest-mock, python3-tomlkit. I've added ptests for each of these, as well. Note that this patch set relies (indirectly) on some changes sent to oe-core to update python3-hatchling and add two new recipes that it in turn relies on (python3-trove-classifiers and python3-calver), so the recipes and ptests won't be fully functional until those are merged. Trevor Gamblin (6): python3-platformdirs: Add recipe python3-pytest-mock: Add recipe python3-tomlkit: Add recipe python3-pylint: upgrade 2.14.5 -> 2.17.3 python3-pylint: add ptest ptest-packagelists-meta-python: Add new tests .../ptest-packagelists-meta-python.inc| 4 ++ .../python/python3-platformdirs/run-ptest | 3 ++ .../python/python3-platformdirs_3.5.0.bb | 35 +++ toml-Remove-hard-coded-dependencies.patch | 24 +++ .../python/python3-pylint/run-ptest | 3 ++ .../python/python3-pylint_2.14.5.bb | 18 .../python/python3-pylint_2.17.3.bb | 43 +++ .../python/python3-pytest-mock/run-ptest | 3 ++ .../python/python3-pytest-mock_3.10.0.bb | 26 +++ .../python/python3-tomlkit/run-ptest | 3 ++ .../python/python3-tomlkit_0.11.8.bb | 23 ++ 11 files changed, 167 insertions(+), 18 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-platformdirs/run-ptest create mode 100644 meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch create mode 100644 meta-python/recipes-devtools/python/python3-pylint/run-ptest delete mode 100644 meta-python/recipes-devtools/python/python3-pylint_2.14.5.bb create mode 100644 meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb create mode 100644 meta-python/recipes-devtools/python/python3-pytest-mock/run-ptest create mode 100644 meta-python/recipes-devtools/python/python3-pytest-mock_3.10.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-tomlkit/run-ptest create mode 100644 meta-python/recipes-devtools/python/python3-tomlkit_0.11.8.bb -- 2.40.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#102265): https://lists.openembedded.org/g/openembedded-devel/message/102265 Mute This Topic: https://lists.openembedded.org/mt/98643290/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-python][PATCH] README: Remove maintainer info for tvgamblin
On 2022-07-24 21:57, Khem Raj wrote: On Sun, Jul 24, 2022 at 3:48 PM Trevor Gamblin wrote: Signed-off-by: Trevor Gamblin --- meta-python/README | 1 - 1 file changed, 1 deletion(-) diff --git a/meta-python/README b/meta-python/README index 8b62ad32b..01c51dc88 100644 --- a/meta-python/README +++ b/meta-python/README @@ -44,4 +44,3 @@ Maintenance Layer maintainers: Tim "moto-timo" Orling Derek Straka - Trevor Gamblin Thanks for your work on maintaining meta-python Trevor, really appreciate it No worries Khem, wish I could've continued. Thank you and good luck. Trevor -- 2.37.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#97970): https://lists.openembedded.org/g/openembedded-devel/message/97970 Mute This Topic: https://lists.openembedded.org/mt/92591366/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH] README: Remove maintainer info for tvgamblin
Signed-off-by: Trevor Gamblin --- meta-python/README | 1 - 1 file changed, 1 deletion(-) diff --git a/meta-python/README b/meta-python/README index 8b62ad32b..01c51dc88 100644 --- a/meta-python/README +++ b/meta-python/README @@ -44,4 +44,3 @@ Maintenance Layer maintainers: Tim "moto-timo" Orling Derek Straka - Trevor Gamblin -- 2.37.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#97964): https://lists.openembedded.org/g/openembedded-devel/message/97964 Mute This Topic: https://lists.openembedded.org/mt/92591366/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-oe][PATCH] phoronix-test-suite: upgrade 10.8.1 -> 10.8.2
10.8.2 contains a fix for CVE-2022-0571. Full release notes (https://github.com/phoronix-test-suite/phoronix-test-suite/blob/master/ChangeLog): Phoronix Test Suite 10.8.2 13 February 2022 pts-core: Arch Linux external dependency updates pts-core: Workaround/fix PHP 5.4 usage with RHEL7-based distributions pts-core: Convert compiler / multicore / single-threaded test suites into virtual test suites since their properties can be auto-determined based on OB metadata to avoid manually maintaining them pts-core: Add virtual test suites for "riscv" and "aarch64" to make it easy to show test profiles that can run successfully on RISC-V and 64-bit Arm hardware phodevi: Improved detection for components found on the Steam Deck and other hardware phodevi: Add Arm Cortex-X1C detection phodevi: CPU temperature reporting for additional SoCs such as the Raspberry Pi 400 phoromatic: Additional input sanitization and validation improvements Signed-off-by: Trevor Gamblin --- ...nix-test-suite_10.8.1.bb => phoronix-test-suite_10.8.2.bb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta-oe/recipes-benchmark/phoronix-test-suite/{phoronix-test-suite_10.8.1.bb => phoronix-test-suite_10.8.2.bb} (91%) diff --git a/meta-oe/recipes-benchmark/phoronix-test-suite/phoronix-test-suite_10.8.1.bb b/meta-oe/recipes-benchmark/phoronix-test-suite/phoronix-test-suite_10.8.2.bb similarity index 91% rename from meta-oe/recipes-benchmark/phoronix-test-suite/phoronix-test-suite_10.8.1.bb rename to meta-oe/recipes-benchmark/phoronix-test-suite/phoronix-test-suite_10.8.2.bb index 6d181a5bb..825f7024e 100644 --- a/meta-oe/recipes-benchmark/phoronix-test-suite/phoronix-test-suite_10.8.1.bb +++ b/meta-oe/recipes-benchmark/phoronix-test-suite/phoronix-test-suite_10.8.2.bb @@ -6,8 +6,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" SECTION = "console/tests" SRC_URI = "http://www.phoronix-test-suite.com/releases/${BP}.tar.gz"; -SRC_URI[md5sum] = "9f107c080407b7ac195bb04e6cabb83b" -SRC_URI[sha256sum] = "3b58ea694419ca608d729fa6ce72ed2b4c51af444729eefbcdc6e670290caa7f" +SRC_URI[md5sum] = "459c3c45b39bb3d720ddc8ba5f944332" +SRC_URI[sha256sum] = "86681343d20415831ab16ef6c3d1c317e2345e771925e0698ae920a03a9eaab6" S = "${WORKDIR}/phoronix-test-suite" -- 2.33.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#96620): https://lists.openembedded.org/g/openembedded-devel/message/96620 Mute This Topic: https://lists.openembedded.org/mt/90444528/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-networking][PATCH] nftables: add ptest
Note that (like for nftables itself), the ptests will require the following added to local.conf (or the kernel configuration): KERNEL_FEATURES:append = " features/nf_tables/nf_tables.scc" Current pass/fail results: I: results: [OK] 271 [FAILED] 29 [TOTAL] 300 I've been investigating the failing tests under the assumption that they fail because of missing kernel modules, but there are some that suggest syntax problems (possibly problems with the tests themselves). Example: W: [FAILED] ./tests/shell/testcases/listing/0020flowtable_0: got 1 /dev/stdin:2:12-12: Error: Could not process rule: No such file or directory flowtable f { ^ /dev/stdin:6:11-12: Error: Could not process rule: No such file or directory flowtable f2 { ^^ Signed-off-by: Trevor Gamblin --- .../nftables/nftables/run-ptest | 2 ++ .../recipes-filter/nftables/nftables_1.0.2.bb | 21 ++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 meta-networking/recipes-filter/nftables/nftables/run-ptest diff --git a/meta-networking/recipes-filter/nftables/nftables/run-ptest b/meta-networking/recipes-filter/nftables/nftables/run-ptest new file mode 100644 index 0..611b84485 --- /dev/null +++ b/meta-networking/recipes-filter/nftables/nftables/run-ptest @@ -0,0 +1,2 @@ +#!/bin/sh +tests/shell/run-tests.sh -v diff --git a/meta-networking/recipes-filter/nftables/nftables_1.0.2.bb b/meta-networking/recipes-filter/nftables/nftables_1.0.2.bb index fd8e26ed1..e078be79a 100644 --- a/meta-networking/recipes-filter/nftables/nftables_1.0.2.bb +++ b/meta-networking/recipes-filter/nftables/nftables_1.0.2.bb @@ -11,11 +11,12 @@ UPSTREAM_CHECK_REGEX = "nftables-(?P\d+(\.\d+){2,}).tar.bz2" SRC_URI = "http://www.netfilter.org/projects/nftables/files/${BP}.tar.bz2 \ file://0001-examples-compile-with-make-check-and-add-AM_CPPFLAGS.patch \ + file://run-ptest \ " SRC_URI[sha256sum] = "0b28a36ffcf4567b841de7bd3f37918b1fed27859eb48bdec51e1f7a83954c02" -inherit autotools manpages pkgconfig +inherit autotools manpages pkgconfig ptest PACKAGECONFIG ??= "python readline json" PACKAGECONFIG[json] = "--with-json, --without-json, jansson" @@ -32,3 +33,21 @@ RRECOMMENDS:${PN} += "kernel-module-nf-tables" PACKAGES =+ "${PN}-python" FILES:${PN}-python = "${nonarch_libdir}/${PYTHON_DIR}" RDEPENDS:${PN}-python = "python3-core python3-json ${PN}" + +RDEPENDS:${PN}-ptest += " make bash python3-core python3-ctypes python3-json python3-misc util-linux" + +TESTDIR = "tests" + +PRIVATE_LIBS:${PN}-ptest:append = "libnftables.so.1" + +do_install_ptest() { +cp -rf ${S}/build-aux ${D}${PTEST_PATH} +cp -rf ${S}/src ${D}${PTEST_PATH} +mkdir -p ${D}${PTEST_PATH}/src/.libs +cp -rf ${B}/src/.libs/* ${D}${PTEST_PATH}/src/.libs +cp -rf ${B}/src/.libs/nft ${D}${PTEST_PATH}/src/ +cp -rf ${S}/py ${D}${PTEST_PATH} +cp -rf ${S}/${TESTDIR} ${D}${PTEST_PATH}/${TESTDIR} +sed -i 's#/usr/bin/python#/usr/bin/python3#' ${D}${PTEST_PATH}/${TESTDIR}/json_echo/run-test.py +sed -i 's#/usr/bin/env python#/usr/bin/env python3#' ${D}${PTEST_PATH}/${TESTDIR}/py/nft-test.py +} -- 2.35.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#96589): https://lists.openembedded.org/g/openembedded-devel/message/96589 Mute This Topic: https://lists.openembedded.org/mt/90419950/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][hardknott]PATCH] python3-lxml: upgrade 4.6.3 -> 4.6.5
Release notes (https://github.com/lxml/lxml/blob/master/CHANGES.txt): 4.6.5 (2021-12-12) == Bugs fixed -- * A vulnerability (GHSL-2021-1038) in the HTML cleaner allowed sneaking script content through SVG images (CVE-2021-43818). * A vulnerability (GHSL-2021-1037) in the HTML cleaner allowed sneaking script content through CSS imports and other crafted constructs (CVE-2021-43818). 4.6.4 (2021-11-01) == Features added -- * GH#317: A new property ``system_url`` was added to DTD entities. Patch by Thirdegree. * GH#314: The ``STATIC_*`` variables in ``setup.py`` can now be passed via env vars. Patch by Isaac Jurado. Signed-off-by: Trevor Gamblin --- .../python/{python3-lxml_4.6.3.bb => python3-lxml_4.6.5.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-lxml_4.6.3.bb => python3-lxml_4.6.5.bb} (95%) diff --git a/meta-python/recipes-devtools/python/python3-lxml_4.6.3.bb b/meta-python/recipes-devtools/python/python3-lxml_4.6.5.bb similarity index 95% rename from meta-python/recipes-devtools/python/python3-lxml_4.6.3.bb rename to meta-python/recipes-devtools/python/python3-lxml_4.6.5.bb index cefe1ba34..d03715cd4 100644 --- a/meta-python/recipes-devtools/python/python3-lxml_4.6.3.bb +++ b/meta-python/recipes-devtools/python/python3-lxml_4.6.5.bb @@ -18,7 +18,7 @@ LIC_FILES_CHKSUM = "file://LICENSES.txt;md5=e4c045ebad958ead4b48008f70838403 \ DEPENDS += "libxml2 libxslt" -SRC_URI[sha256sum] = "39b78571b3b30645ac77b95f7c69d1bffc4cf8c3b157c435a34da72e78c82468" +SRC_URI[sha256sum] = "6e84edecc3a82f90d44ddee2ee2a2630d4994b8471816e226d2b771cda7ac4ca" inherit pypi setuptools3 -- 2.33.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#96260): https://lists.openembedded.org/g/openembedded-devel/message/96260 Mute This Topic: https://lists.openembedded.org/mt/90109097/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][honister][PATCH] python3-lxml: upgrade 4.6.3 -> 4.6.5
Release notes (https://github.com/lxml/lxml/blob/master/CHANGES.txt): 4.6.5 (2021-12-12) == Bugs fixed -- * A vulnerability (GHSL-2021-1038) in the HTML cleaner allowed sneaking script content through SVG images (CVE-2021-43818). * A vulnerability (GHSL-2021-1037) in the HTML cleaner allowed sneaking script content through CSS imports and other crafted constructs (CVE-2021-43818). 4.6.4 (2021-11-01) == Features added -- * GH#317: A new property ``system_url`` was added to DTD entities. Patch by Thirdegree. * GH#314: The ``STATIC_*`` variables in ``setup.py`` can now be passed via env vars. Patch by Isaac Jurado. Signed-off-by: Trevor Gamblin --- .../python/{python3-lxml_4.6.3.bb => python3-lxml_4.6.5.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-lxml_4.6.3.bb => python3-lxml_4.6.5.bb} (95%) diff --git a/meta-python/recipes-devtools/python/python3-lxml_4.6.3.bb b/meta-python/recipes-devtools/python/python3-lxml_4.6.5.bb similarity index 95% rename from meta-python/recipes-devtools/python/python3-lxml_4.6.3.bb rename to meta-python/recipes-devtools/python/python3-lxml_4.6.5.bb index d5594847f..a0e8a8fbf 100644 --- a/meta-python/recipes-devtools/python/python3-lxml_4.6.3.bb +++ b/meta-python/recipes-devtools/python/python3-lxml_4.6.5.bb @@ -18,7 +18,7 @@ LIC_FILES_CHKSUM = "file://LICENSES.txt;md5=e4c045ebad958ead4b48008f70838403 \ DEPENDS += "libxml2 libxslt" -SRC_URI[sha256sum] = "39b78571b3b30645ac77b95f7c69d1bffc4cf8c3b157c435a34da72e78c82468" +SRC_URI[sha256sum] = "6e84edecc3a82f90d44ddee2ee2a2630d4994b8471816e226d2b771cda7ac4ca" inherit pkgconfig pypi setuptools3 -- 2.33.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#96259): https://lists.openembedded.org/g/openembedded-devel/message/96259 Mute This Topic: https://lists.openembedded.org/mt/90108230/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 3/4] python3-h5py: upgrade 3.5.0 -> 3.6.0
Signed-off-by: Trevor Gamblin --- .../python/{python3-h5py_3.5.0.bb => python3-h5py_3.6.0.bb}| 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) rename meta-python/recipes-devtools/python/{python3-h5py_3.5.0.bb => python3-h5py_3.6.0.bb} (84%) diff --git a/meta-python/recipes-devtools/python/python3-h5py_3.5.0.bb b/meta-python/recipes-devtools/python/python3-h5py_3.6.0.bb similarity index 84% rename from meta-python/recipes-devtools/python/python3-h5py_3.5.0.bb rename to meta-python/recipes-devtools/python/python3-h5py_3.6.0.bb index aad2f9177..64abe73cb 100644 --- a/meta-python/recipes-devtools/python/python3-h5py_3.5.0.bb +++ b/meta-python/recipes-devtools/python/python3-h5py_3.6.0.bb @@ -4,11 +4,10 @@ SECTION = "devel/python" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=113251d71fb0384712c719b567261c5c" -SRC_URI[sha256sum] = "77c7be4001ac7d3ed80477de5b6942501d782de1bbe4886597bdfec2a7ab821f" +SRC_URI[sha256sum] = "8752d2814a92aba4e2b2a5922d2782d0029102d99caaf3c201a566bc0b40db29" SRC_URI:append = " \ file://0001-setup_build.py-avoid-absolute-path.patch \ - file://0001-setup.py-Fix-numpy-version.patch \ " inherit pkgconfig pypi setuptools3 -- 2.35.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#96198): https://lists.openembedded.org/g/openembedded-devel/message/96198 Mute This Topic: https://lists.openembedded.org/mt/90002636/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 4/4] python3-paramiko: upgrade 2.9.2 -> 2.10.3
Signed-off-by: Trevor Gamblin --- .../{python3-paramiko_2.9.2.bb => python3-paramiko_2.10.3.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-paramiko_2.9.2.bb => python3-paramiko_2.10.3.bb} (82%) diff --git a/meta-python/recipes-devtools/python/python3-paramiko_2.9.2.bb b/meta-python/recipes-devtools/python/python3-paramiko_2.10.3.bb similarity index 82% rename from meta-python/recipes-devtools/python/python3-paramiko_2.9.2.bb rename to meta-python/recipes-devtools/python/python3-paramiko_2.10.3.bb index a02a7891a..9f7f45872 100644 --- a/meta-python/recipes-devtools/python/python3-paramiko_2.9.2.bb +++ b/meta-python/recipes-devtools/python/python3-paramiko_2.10.3.bb @@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/paramiko/paramiko/"; LICENSE = "LGPL-2.1-only" LIC_FILES_CHKSUM = "file://LICENSE;md5=fd0120fc2e9f841c73ac707a30389af5" -SRC_URI[sha256sum] = "944a9e5dbdd413ab6c7951ea46b0ab40713235a9c4c5ca81cfe45c6f14fa677b" +SRC_URI[sha256sum] = "ddb1977853aef82804b35d72a0e597b244fa326c404c350bd00c5b01dbfee71a" PYPI_PACKAGE = "paramiko" -- 2.35.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#96199): https://lists.openembedded.org/g/openembedded-devel/message/96199 Mute This Topic: https://lists.openembedded.org/mt/90002638/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 2/4] python3-cachetools: upgrade 4.2.4 -> 5.0.0
>From the changelog >(https://github.com/tkem/cachetools/blob/master/CHANGELOG.rst): - Require Python 3.7 or later (breaking change). - Remove deprecated submodules (breaking change). - The cache, fifo, lfu, lru, mru, rr and ttl submodules have been deleted. Therefore, statements like from cachetools.ttl import TTLCache will no longer work. Use from cachetools import TTLCache instead. - Pass self to @cachedmethod key function (breaking change). - The key function passed to the @cachedmethod decorator is now called as key(self, *args, **kwargs). - The default key function has been changed to ignore its first argument, so this should only affect applications using custom key functions with the @cachedmethod decorator. - Change exact time of expiration in TTLCache (breaking change). - TTLCache items now get expired if their expiration time is less than or equal to timer(). For applications using the default timer(), this should be barely noticable, but it may affect the use of custom timers with larger tick intervals. Note that this also implies that a TTLCache with ttl=0 can no longer hold any items, since they will expire immediately. - Change Cache.__repr__() format (breaking change). - String representations of cache instances now use a more compact and efficient format, e.g. LRUCache({1: 1, 2: 2}, maxsize=10, currsize=2) - Add TLRU cache implementation. - Documentation improvements. Signed-off-by: Trevor Gamblin --- ...{python3-cachetools_4.2.4.bb => python3-cachetools_5.0.0.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-cachetools_4.2.4.bb => python3-cachetools_5.0.0.bb} (89%) diff --git a/meta-python/recipes-devtools/python/python3-cachetools_4.2.4.bb b/meta-python/recipes-devtools/python/python3-cachetools_5.0.0.bb similarity index 89% rename from meta-python/recipes-devtools/python/python3-cachetools_4.2.4.bb rename to meta-python/recipes-devtools/python/python3-cachetools_5.0.0.bb index bf225e60e..f2974f7e3 100644 --- a/meta-python/recipes-devtools/python/python3-cachetools_4.2.4.bb +++ b/meta-python/recipes-devtools/python/python3-cachetools_5.0.0.bb @@ -27,6 +27,6 @@ do_install_ptest() { cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ } -SRC_URI[sha256sum] = "89ea6f1b638d5a73a4f9226be57ac5e4f399d22770b92355f92dcb0f7f001693" +SRC_URI[sha256sum] = "486471dfa8799eb7ec503a8059e263db000cdda20075ce5e48903087f79d5fd6" BBCLASSEXTEND = "native nativesdk" -- 2.35.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#96197): https://lists.openembedded.org/g/openembedded-devel/message/96197 Mute This Topic: https://lists.openembedded.org/mt/90002635/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 1/4] python3-protobuf: upgrade 3.19.3 -> 3.19.4
>From the release notes (https://github.com/protocolbuffers/protobuf/releases): - Make libprotobuf symbols local on OSX to fix issue #9395 (#9435) Signed-off-by: Trevor Gamblin --- .../{python3-protobuf_3.19.3.bb => python3-protobuf_3.19.4.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-protobuf_3.19.3.bb => python3-protobuf_3.19.4.bb} (92%) diff --git a/meta-python/recipes-devtools/python/python3-protobuf_3.19.3.bb b/meta-python/recipes-devtools/python/python3-protobuf_3.19.4.bb similarity index 92% rename from meta-python/recipes-devtools/python/python3-protobuf_3.19.3.bb rename to meta-python/recipes-devtools/python/python3-protobuf_3.19.4.bb index 5e0ee7cb2..85147544e 100644 --- a/meta-python/recipes-devtools/python/python3-protobuf_3.19.3.bb +++ b/meta-python/recipes-devtools/python/python3-protobuf_3.19.4.bb @@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=19e8f490f9526b1de8 inherit pypi setuptools3 -SRC_URI[sha256sum] = "d975a6314fbf5c524d4981e24294739216b5fb81ef3c14b86fb4b045d6690907" +SRC_URI[sha256sum] = "9df0c10adf3e83015ced42a9a7bd64e13d06c4cf45c340d2c63020ea04499d0a" # http://errors.yoctoproject.org/Errors/Details/184715/ # Can't find required file: ../src/google/protobuf/descriptor.proto -- 2.35.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#96196): https://lists.openembedded.org/g/openembedded-devel/message/96196 Mute This Topic: https://lists.openembedded.org/mt/90002634/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH] packagegroup-meta-python: add python3-pytest-lazy-fixture
Also remove two redundant ptest listings for jinja2 and markupsafe. Signed-off-by: Trevor Gamblin --- .../recipes-core/packagegroups/packagegroup-meta-python.bb| 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb index 682814a6a..f7bf36519 100644 --- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb @@ -334,6 +334,7 @@ RDEPENDS:packagegroup-meta-python3 = "\ python3-pytest-forked \ python3-pytest-helpers-namespace \ python3-pytest-html \ +python3-pytest-lazy-fixture \ python3-pytest-metadata \ python3-pytest-tempdir \ python3-pytest-timeout \ @@ -452,8 +453,6 @@ RDEPENDS:packagegroup-meta-python3 = "\ " RDEPENDS:packagegroup-meta-python3-ptest = "\ -python3-jinja2-ptest \ -python3-markupsafe-ptest \ python3-ansicolors-ptest \ python3-appdirs-ptest \ python3-betamax-ptest \ @@ -489,6 +488,7 @@ RDEPENDS:packagegroup-meta-python3-ptest = "\ python3-pyasn1-modules-ptest \ python3-pyroute2-ptest \ python3-pyserial-ptest \ +python3-pytest-lazy-fixture-ptest \ python3-pytoml-ptest \ python3-requests-file-ptest \ python3-requests-toolbelt-ptest \ -- 2.35.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#96166): https://lists.openembedded.org/g/openembedded-devel/message/96166 Mute This Topic: https://lists.openembedded.org/mt/89985036/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-oe][PATCH] grpc: upgrade 1.41.1 -> 1.45.0
The changes between these versions are too numerous to list here, but can be found at https://github.com/grpc/grpc/releases/tag/v1.45.0 Signed-off-by: Trevor Gamblin --- .../grpc/{grpc_1.41.1.bb => grpc_1.45.0.bb}| 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) rename meta-oe/recipes-devtools/grpc/{grpc_1.41.1.bb => grpc_1.45.0.bb} (94%) diff --git a/meta-oe/recipes-devtools/grpc/grpc_1.41.1.bb b/meta-oe/recipes-devtools/grpc/grpc_1.45.0.bb similarity index 94% rename from meta-oe/recipes-devtools/grpc/grpc_1.41.1.bb rename to meta-oe/recipes-devtools/grpc/grpc_1.45.0.bb index 3fe799310..8063f343a 100644 --- a/meta-oe/recipes-devtools/grpc/grpc_1.41.1.bb +++ b/meta-oe/recipes-devtools/grpc/grpc_1.45.0.bb @@ -4,7 +4,7 @@ Provides gRPC libraries for multiple languages written on top of shared C core l HOMEPAGE = "https://github.com/grpc/grpc"; SECTION = "libs" LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" +LIC_FILES_CHKSUM = "file://LICENSE;md5=6e4cf218112648d22420a84281b68b88" DEPENDS = "c-ares protobuf protobuf-native protobuf-c protobuf-c-native openssl libnsl2 abseil-cpp re2" DEPENDS:append:class-target = " googletest grpc-native " @@ -20,10 +20,9 @@ RDEPENDS:${PN}-dev:class_native += "${PN}-compiler" # RDEPENDS:${PN}-dev += "${PN}-compiler" S = "${WORKDIR}/git" -SRCREV_grpc = "635693ce624f3b3a89e5a764f0664958ef08b2b9" -BRANCH = "v1.41.x" +SRCREV_grpc = "494b08ada4009ead0d0b70e44d354be72f9c283a" +BRANCH = "v1.45.x" SRC_URI = "git://github.com/grpc/grpc.git;protocol=https;name=grpc;branch=${BRANCH} \ - file://0001-cmake-revert-db88fb0ee826e73323e06ac6166ac038ee71f6a.patch \ file://0001-Revert-Changed-GRPCPP_ABSEIL_SYNC-to-GPR_ABSEIL_SYNC.patch \ " # Fixes build with older compilers 4.8 especially on ubuntu 14.04 -- 2.35.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#96165): https://lists.openembedded.org/g/openembedded-devel/message/96165 Mute This Topic: https://lists.openembedded.org/mt/89983949/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][hardknott][PATCH 2/2] python3-django: upgrade 3.2.5 -> 3.2.12
oDjango tutorial. b51e0a37cf [3.2.x] Doc'd Jinja2 form renderer. a7be74d017 [3.2.x] Clarified type of Window()'s partition_by and order_by arguments. 54684a3ec0 [3.2.x] Refs #31055 -- Doc'd 'databases' argument of check functions. 1f86ff31b1 [3.2.x] Fixed typo in docs/topics/i18n/formatting.txt. b61f44c339 [3.2.x] Fixed #33082 -- Fixed CommandTests.test_subparser_invalid_option on Python 3.9.7+. 707239eabf [3.2.x] Added stub release notes for Django 3.2.8. d5710f405a [3.2.x] Post-release version bump. 45a0c54b67 (tag: 3.2.7) [3.2.x] Bumped version for 3.2.7 release. 4b80a40272 [3.2.x] Added release date for 3.2.7. 4e55806720 [3.2.x] Refs #25264 -- Doc's that not all default options are supported by every management command. fe3a854e1d [3.2.x] Fixed #32992 -- Restored offset extraction for fixed offset timezones. 382374a360 [3.2.x] Corrected BaseDatabaseSchemaEditor.execute() signature in docs. 11b2cbb65f [3.2.x] Made sentence about Model consistent in docs. 69009f4952 [3.2.x] Fixed #33046 -- Added note about using length of cached result by QuerySet.count(). d95a0144e5 [3.2.x] Used backend vendors in custom model fields docs. 358e65a5cd [3.2.x] Fixed #33030 -- Fixed broken links to GDAL docs. d29a9ed504 [3.2.x] The geodjango mailing list moved to the Django Forum. eb26b8a0fe [3.2.x] The django-i18n mailing list moved to the Django Forum. 6bb74f3de8 [3.2.x] Fixed some broken links and redirects in docs. f18da11b8a [3.2.x] Updated BaseDatabaseFeatures link in testing tools docs. 2c46e55314 [3.2.x] Clarified URL patterns in tutorial 3. 87e7399760 [3.2.x] Added stub release notes for Django 3.2.7. e1cad66dca [3.2.x] Post-release version bump. eb0f298e76 (tag: 3.2.6) [3.2.x] Bumped version for 3.2.6 release. 70840232f9 [3.2.x] Confirmed release date for Django 3.2.6. d9e05ea17a [3.2.x] Refs #31676 -- Updated technical board description in organization docs. 99d9a3ef7c [3.2.x] Refs #31676 -- Added Mergers and Releasers to organization docs. ed29959812 [3.2.x] Refs #31676 -- Removed Core team from organization docs. 55daaa0c79 [3.2.x] Made minor edits to QuerySet.update_or_create() docs. 5fa70c91b4 [3.2.x] Fixed typo in docs/ref/contrib/admin/index.txt. aace6c531d [3.2.x] Fixed #32933 -- Documented BoundField.initial as preferred over Form.get_initial_for_field(). bdd4cbe84a [3.2.x] Fixed #32957 -- Improved visibility of arguments sections in Model.save() docs. b2f7b53fac [3.2.x] Fixed #32947 -- Fixed hash() crash on reverse M2M relation when through_fields is a list. de5a044cf4 [3.2.x] Fixed #32950 -- Removed myproject from imports in admin docs where appropriate. f4cf86f870 [3.2.x] Refs #32949 -- Adjusted release note wording. 1346381760 [3.2.x] Fixed #32949 -- Restored invalid number handling in DecimalField.validate(). 05e997c404 [3.2.x] Fixed typo in docs/ref/databases.txt. 9a65e62c93 [3.2.x] Fixed typo in docs/releases/3.1.13.txt. 0ee092c8dd [3.2.x] Fixed typo in docs/topics/signals.txt. b7d25d025e [3.2.x] Fixed typo in docs/internals/deprecation.txt. 6931963886 [3.2.x] Fixed typo in docs/internals/contributing/committing-code.txt. f36edbc378 [3.2.x] Refs #31676 -- Removed Django Core-Mentorship mailing list references in docs. 527482c513 [3.2.x] Fixed typo in docs/ref/contrib/gis/tutorial.txt. 1d53d2502d [3.2.x] Documented in_bulk behavior with nonexistent id_list items. 9fadb97583 [3.2.x] Added CVE-2021-35042 to security archive. 92efd69107 [3.2.x] Added stub release notes for Django 3.2.6. 3ab942f10a [3.2.x] Post-release version bump. Signed-off-by: Trevor Gamblin --- .../{python3-django_3.2.5.bb => python3-django_3.2.12.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-django_3.2.5.bb => python3-django_3.2.12.bb} (77%) diff --git a/meta-python/recipes-devtools/python/python3-django_3.2.5.bb b/meta-python/recipes-devtools/python/python3-django_3.2.12.bb similarity index 77% rename from meta-python/recipes-devtools/python/python3-django_3.2.5.bb rename to meta-python/recipes-devtools/python/python3-django_3.2.12.bb index 5890c8541..ee71f953b 100644 --- a/meta-python/recipes-devtools/python/python3-django_3.2.5.bb +++ b/meta-python/recipes-devtools/python/python3-django_3.2.12.bb @@ -1,7 +1,7 @@ require python-django.inc inherit setuptools3 -SRC_URI[sha256sum] = "3da05fea54fdec2315b54a563d5b59f3b4e2b1e69c3a5841dda35019c01855cd" +SRC_URI[sha256sum] = "9772e6935703e59e993960832d66a614cf0233a1c5123bc6224ecc6ad69e41e2" RDEPENDS_${PN} += "\ ${PYTHON_PN}-sqlparse \ -- 2.33.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#96163): https://lists.openembedded.org/g/openembedded-devel/message/96163 Mute This Topic: https://lists.openembedded.org/mt/89981302/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][hardknott][PATCH 1/2] python3-django: upgrade 2.2.24 -> 2.2.27
The delta between 2.2.24 and 2.2.27 contain numerous CVE and other bugfixes. git log --oneline 2.2.24..2.2.27 shows: e541f2d05b (tag: 2.2.27) [2.2.x] Bumped version for 2.2.27 release. c477b76180 [2.2.x] Fixed CVE-2022-23833 -- Fixed DoS possiblity in file uploads. c27a7eb9f4 [2.2.x] Fixed CVE-2022-22818 -- Fixed possible XSS via {% debug %} template tag. 4cafd3aacb [2.2.x] Added stub release notes 2.2.27. 77d0fe5868 [2.2.x] Added CVE-2021-45115, CVE-2021-45116, and CVE-2021-45452 to security archive. e085d46e4b [2.2.x] Post-release version bump. 44e7cca623 (tag: 2.2.26) 2.2.x] Bumped version for 2.2.26 release. 4cb35b384c [2.2.x] Fixed CVE-2021-45452 -- Fixed potential path traversal in storage subsystem. c9f648ccfa [2.2.x] Fixed CVE-2021-45116 -- Fixed potential information disclosure in dictsort template filter. 2135637fdd [2.2.x] Fixed CVE-2021-45115 -- Prevented DoS vector in UserAttributeSimilarityValidator. 03b733d8a8 [2.2.x] Added stub release notes for 2.2.26 release. b87820668e [2.2.x] Refs #33365, Refs #30530 -- Doc'd re_path() behavior change in Django 2.2.25, 3.1.14, and 3.2.10. 573e70ea48 [2.2.x] Added CVE-2021-44420 to security archive. 8439938602 [2.2.x] Post-release version bump. 79d8dcefb2 (tag: 2.2.25) [2.2.x] Bumped version for 2.2.25 release. 7cf7d74e8a [2.2.x] Fixed #30530, CVE-2021-44420 -- Fixed potential bypass of an upstream access control based on URL paths. 0007a5f9fa [2.2.x] Added requirements.txt to files ignored by Sphinx builds. fac0fdd95d [2.2.x] Added stub release notes for 2.2.25. 4bc10b7955 [2.2.x] Fixed crash building HTML docs since Sphinx 4.3. 5289fcfffe [2.2.x] Configured Read The Docs to build all formats. 9a4a2b2089 [2.2.x] Refs #33247 -- Corrected configuration for Read The Docs. 029c830b71 [2.2.x] Fixed #33247 -- Added configuration for Read The Docs. 12141e3116 [2.2.x] Refs #32856 -- Clarified that psycopg2 < 2.9 is required. cf63dd5c1b [2.2.x] Added 'formatter' to spelling wordlist. 05bc1c81aa [2.2.x] Fixed #33082 -- Fixed CommandTests.test_subparser_invalid_option on Python 3.9.7+. a9c0aa11e7 [2.2.x] Refs #31676 -- Updated technical board description in organization docs. 66008c2af0 [2.2.x] Refs #31676 -- Added Mergers and Releasers to organization docs. d4d1c2b3db [2.2.x] Refs #31676 -- Removed Core team from organization docs. 8f59f72a20 [2.2.x] Refs #31676 -- Removed Django Core-Mentorship mailing list references in docs. 837ffcfa68 [2.2.x] Refs #32856 -- Doc'd that psycopg2 < 2.9 is required. dc43667eab [2.2.x] Fixed docs header underlines in security archive. 3e7bb564be [2.2.x] Added CVE-2021-33203 and CVE-2021-33571 to security archive. 48bde7cab4 [2.2.x] Post-release version bump. Signed-off-by: Trevor Gamblin --- .../recipes-devtools/python/python3-django_2.2.24.bb | 9 - .../recipes-devtools/python/python3-django_2.2.27.bb | 9 + 2 files changed, 9 insertions(+), 9 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-django_2.2.24.bb create mode 100644 meta-python/recipes-devtools/python/python3-django_2.2.27.bb diff --git a/meta-python/recipes-devtools/python/python3-django_2.2.24.bb b/meta-python/recipes-devtools/python/python3-django_2.2.24.bb deleted file mode 100644 index 964ca6ba0..0 --- a/meta-python/recipes-devtools/python/python3-django_2.2.24.bb +++ /dev/null @@ -1,9 +0,0 @@ -require python-django.inc -inherit setuptools3 - -SRC_URI[md5sum] = "ebf3bbb7716a7b11029e860475b9a122" -SRC_URI[sha256sum] = "3339ff0e03dee13045aef6ae7b523edff75b6d726adf7a7a48f53d5a501f7db7" - -RDEPENDS_${PN} += "\ -${PYTHON_PN}-sqlparse \ -" diff --git a/meta-python/recipes-devtools/python/python3-django_2.2.27.bb b/meta-python/recipes-devtools/python/python3-django_2.2.27.bb new file mode 100644 index 0..7a50a6928 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-django_2.2.27.bb @@ -0,0 +1,9 @@ +require python-django.inc +inherit setuptools3 + +SRC_URI[md5sum] = "4af3aeed9e515ccde107ae6a9804c31f" +SRC_URI[sha256sum] = "1ee37046b0bf2b61e83b3a01d067323516ec3b6f2b17cd49b1326dd4ba9dc913" + +RDEPENDS_${PN} += "\ +${PYTHON_PN}-sqlparse \ +" -- 2.33.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#96164): https://lists.openembedded.org/g/openembedded-devel/message/96164 Mute This Topic: https://lists.openembedded.org/mt/89981304/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][honister][PATCH 1/2] python3-django: upgrade 2.2.24 -> 2.2.27
The delta between 2.2.24 and 2.2.27 contain numerous CVE and other bugfixes. git log --oneline 2.2.24..2.2.27 shows: e541f2d05b (tag: 2.2.27) [2.2.x] Bumped version for 2.2.27 release. c477b76180 [2.2.x] Fixed CVE-2022-23833 -- Fixed DoS possiblity in file uploads. c27a7eb9f4 [2.2.x] Fixed CVE-2022-22818 -- Fixed possible XSS via {% debug %} template tag. 4cafd3aacb [2.2.x] Added stub release notes 2.2.27. 77d0fe5868 [2.2.x] Added CVE-2021-45115, CVE-2021-45116, and CVE-2021-45452 to security archive. e085d46e4b [2.2.x] Post-release version bump. 44e7cca623 (tag: 2.2.26) 2.2.x] Bumped version for 2.2.26 release. 4cb35b384c [2.2.x] Fixed CVE-2021-45452 -- Fixed potential path traversal in storage subsystem. c9f648ccfa [2.2.x] Fixed CVE-2021-45116 -- Fixed potential information disclosure in dictsort template filter. 2135637fdd [2.2.x] Fixed CVE-2021-45115 -- Prevented DoS vector in UserAttributeSimilarityValidator. 03b733d8a8 [2.2.x] Added stub release notes for 2.2.26 release. b87820668e [2.2.x] Refs #33365, Refs #30530 -- Doc'd re_path() behavior change in Django 2.2.25, 3.1.14, and 3.2.10. 573e70ea48 [2.2.x] Added CVE-2021-44420 to security archive. 8439938602 [2.2.x] Post-release version bump. 79d8dcefb2 (tag: 2.2.25) [2.2.x] Bumped version for 2.2.25 release. 7cf7d74e8a [2.2.x] Fixed #30530, CVE-2021-44420 -- Fixed potential bypass of an upstream access control based on URL paths. 0007a5f9fa [2.2.x] Added requirements.txt to files ignored by Sphinx builds. fac0fdd95d [2.2.x] Added stub release notes for 2.2.25. 4bc10b7955 [2.2.x] Fixed crash building HTML docs since Sphinx 4.3. 5289fcfffe [2.2.x] Configured Read The Docs to build all formats. 9a4a2b2089 [2.2.x] Refs #33247 -- Corrected configuration for Read The Docs. 029c830b71 [2.2.x] Fixed #33247 -- Added configuration for Read The Docs. 12141e3116 [2.2.x] Refs #32856 -- Clarified that psycopg2 < 2.9 is required. cf63dd5c1b [2.2.x] Added 'formatter' to spelling wordlist. 05bc1c81aa [2.2.x] Fixed #33082 -- Fixed CommandTests.test_subparser_invalid_option on Python 3.9.7+. a9c0aa11e7 [2.2.x] Refs #31676 -- Updated technical board description in organization docs. 66008c2af0 [2.2.x] Refs #31676 -- Added Mergers and Releasers to organization docs. d4d1c2b3db [2.2.x] Refs #31676 -- Removed Core team from organization docs. 8f59f72a20 [2.2.x] Refs #31676 -- Removed Django Core-Mentorship mailing list references in docs. 837ffcfa68 [2.2.x] Refs #32856 -- Doc'd that psycopg2 < 2.9 is required. dc43667eab [2.2.x] Fixed docs header underlines in security archive. 3e7bb564be [2.2.x] Added CVE-2021-33203 and CVE-2021-33571 to security archive. 48bde7cab4 [2.2.x] Post-release version bump. Signed-off-by: Trevor Gamblin --- .../{python3-django_2.2.24.bb => python3-django_2.2.27.bb}| 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta-python/recipes-devtools/python/{python3-django_2.2.24.bb => python3-django_2.2.27.bb} (60%) diff --git a/meta-python/recipes-devtools/python/python3-django_2.2.24.bb b/meta-python/recipes-devtools/python/python3-django_2.2.27.bb similarity index 60% rename from meta-python/recipes-devtools/python/python3-django_2.2.24.bb rename to meta-python/recipes-devtools/python/python3-django_2.2.27.bb index 982362bdd..80e7de624 100644 --- a/meta-python/recipes-devtools/python/python3-django_2.2.24.bb +++ b/meta-python/recipes-devtools/python/python3-django_2.2.27.bb @@ -5,8 +5,8 @@ UPSTREAM_CHECK_REGEX = "/${PYPI_PACKAGE}/(?P(2\.2\.\d*)+)/" inherit setuptools3 -SRC_URI[md5sum] = "ebf3bbb7716a7b11029e860475b9a122" -SRC_URI[sha256sum] = "3339ff0e03dee13045aef6ae7b523edff75b6d726adf7a7a48f53d5a501f7db7" +SRC_URI[md5sum] = "4af3aeed9e515ccde107ae6a9804c31f" +SRC_URI[sha256sum] = "1ee37046b0bf2b61e83b3a01d067323516ec3b6f2b17cd49b1326dd4ba9dc913" RDEPENDS:${PN} += "\ ${PYTHON_PN}-sqlparse \ -- 2.33.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#96161): https://lists.openembedded.org/g/openembedded-devel/message/96161 Mute This Topic: https://lists.openembedded.org/mt/89979487/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][honister][PATCH 2/2] python3-django: upgrade 3.2.10 -> 3.2.12
The delta between 3.2.10 and 3.2.12 contains numerous CVE and other bugfixes. git log --online 3.2.10..3.2.12 shows: fdf209eab8 (tag: 3.2.12) [3.2.x] Bumped version for 3.2.12 release. d16133568e [3.2.x] Fixed CVE-2022-23833 -- Fixed DoS possiblity in file uploads. 1a1e8278c4 [3.2.x] Fixed CVE-2022-22818 -- Fixed possible XSS via {% debug %} template tag. a7e89fe776 [3.2.x] Added stub release notes for 3.2.12 and 2.2.27. 027f4c4ceb [3.2.x] Added CVE-2021-45115, CVE-2021-45116, and CVE-2021-45452 to security archive. 0a9a46a1d7 [3.2.x] Post-release version bump. 6e499a28ac (tag: 3.2.11) [3.2.x] Bumped version for 3.2.11 release. 8d2f7cff76 [3.2.x] Fixed CVE-2021-45452 -- Fixed potential path traversal in storage subsystem. c7fe895bca [3.2.x] Fixed CVE-2021-45116 -- Fixed potential information disclosure in dictsort template filter. a8b32fe13b [3.2.x] Fixed CVE-2021-45115 -- Prevented DoS vector in UserAttributeSimilarityValidator. b0aa0709a5 [3.2.x] Added stub release notes for 3.2.11, and 2.2.26 releases. ae242235db [3.2.x] Refs #33365, Refs #30530 -- Doc'd re_path() behavior change in Django 2.2.25, 3.1.14, and 3.2.10. ecd2793897 [3.2.x] Added CVE-2021-44420 to security archive. 1cea03ab00 [3.2.x] Post-release version bump. Signed-off-by: Trevor Gamblin --- .../{python3-django_3.2.10.bb => python3-django_3.2.12.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-django_3.2.10.bb => python3-django_3.2.12.bb} (77%) diff --git a/meta-python/recipes-devtools/python/python3-django_3.2.10.bb b/meta-python/recipes-devtools/python/python3-django_3.2.12.bb similarity index 77% rename from meta-python/recipes-devtools/python/python3-django_3.2.10.bb rename to meta-python/recipes-devtools/python/python3-django_3.2.12.bb index 0c5fbb8c8..adbc498bd 100644 --- a/meta-python/recipes-devtools/python/python3-django_3.2.10.bb +++ b/meta-python/recipes-devtools/python/python3-django_3.2.12.bb @@ -1,7 +1,7 @@ require python-django.inc inherit setuptools3 -SRC_URI[sha256sum] = "074e8818b4b40acdc2369e67dcd6555d558329785408dcd25340ee98f1f1d5c4" +SRC_URI[sha256sum] = "9772e6935703e59e993960832d66a614cf0233a1c5123bc6224ecc6ad69e41e2" RDEPENDS:${PN} += "\ ${PYTHON_PN}-sqlparse \ -- 2.33.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#96160): https://lists.openembedded.org/g/openembedded-devel/message/96160 Mute This Topic: https://lists.openembedded.org/mt/89979486/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 1/2] python3-pytest-lazy-fixture: add recipe
This is a minor extension of pytest that is used by some ptests, such as python3-prettytable. There is a set of ptests included (run-ptest script is based on the one from python3-aspectlib). Signed-off-by: Trevor Gamblin --- .../python3-pytest-lazy-fixture/run-ptest | 3 +++ .../python3-pytest-lazy-fixture_0.6.3.bb | 23 +++ 2 files changed, 26 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pytest-lazy-fixture/run-ptest create mode 100644 meta-python/recipes-devtools/python/python3-pytest-lazy-fixture_0.6.3.bb diff --git a/meta-python/recipes-devtools/python/python3-pytest-lazy-fixture/run-ptest b/meta-python/recipes-devtools/python/python3-pytest-lazy-fixture/run-ptest new file mode 100644 index 0..b63c4de0d --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pytest-lazy-fixture/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}' diff --git a/meta-python/recipes-devtools/python/python3-pytest-lazy-fixture_0.6.3.bb b/meta-python/recipes-devtools/python/python3-pytest-lazy-fixture_0.6.3.bb new file mode 100644 index 0..32b5677f1 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pytest-lazy-fixture_0.6.3.bb @@ -0,0 +1,23 @@ +# 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" -- 2.33.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#96151): https://lists.openembedded.org/g/openembedded-devel/message/96151 Mute This Topic: https://lists.openembedded.org/mt/89959161/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 2/2] python3-prettytable: add python3-pytest-lazy-fixture to ptest RDEPENDS
Now that the recipe for python3-pytest-lazy-fixture exists, add it to RDEPENDS to fix the broken python3-prettytable ptests. Signed-off-by: Trevor Gamblin --- meta-python/recipes-devtools/python/python3-prettytable_3.1.1.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-python/recipes-devtools/python/python3-prettytable_3.1.1.bb b/meta-python/recipes-devtools/python/python3-prettytable_3.1.1.bb index 3b75086fc..5520edc06 100644 --- a/meta-python/recipes-devtools/python/python3-prettytable_3.1.1.bb +++ b/meta-python/recipes-devtools/python/python3-prettytable_3.1.1.bb @@ -35,6 +35,7 @@ RDEPENDS:${PN} += " \ RDEPENDS:${PN}-ptest += " \ ${PYTHON_PN}-pytest \ +${PYTHON_PN}-pytest-lazy-fixture \ ${PYTHON_PN}-sqlite3 \ " -- 2.33.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#96150): https://lists.openembedded.org/g/openembedded-devel/message/96150 Mute This Topic: https://lists.openembedded.org/mt/89959160/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-networking][PATCH] nftables: upgrade v1.0.0 -> v1.0.2
On 2022-03-22 11:38, Khem Raj wrote: [Please note: This e-mail is from an EXTERNAL e-mail address] There is a prior patch doing this upgrade slightly differently https://patchwork.yoctoproject.org/project/oe/patch/20220322044616.867009-1-yi.z...@windriver.com/ and since it fixes the extramples/ build with a backport, I think thats better tha disabling the build. Works for me, hadn't noticed that patch. This patch adds explicit rdeps on libmnl and libnftnl, is there a reason to do so ? is shlibs code failing to detect the dependencies? I put it in as an attempt to make sure the above error wouldn't happen, but it looks like it's not the right approach. Let's keep ther existing patch. On Tue, Mar 22, 2022 at 8:00 AM Trevor Gamblin wrote: Add libmnl and libnftnl to the RDEPENDS for the recipe. Also add a patch to remove the "example" directory from the list of build subdirs in Makefile.am, since this was added in v1.0.2 but it is breaking the build for content that we don't need in the image. Signed-off-by: Trevor Gamblin --- ...e.am-do-not-build-examples-directory.patch | 34 +++ .../{nftables_1.0.1.bb => nftables_1.0.2.bb} | 8 +++-- 2 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 meta-networking/recipes-filter/nftables/nftables/0001-Makefile.am-do-not-build-examples-directory.patch rename meta-networking/recipes-filter/nftables/{nftables_1.0.1.bb => nftables_1.0.2.bb} (85%) diff --git a/meta-networking/recipes-filter/nftables/nftables/0001-Makefile.am-do-not-build-examples-directory.patch b/meta-networking/recipes-filter/nftables/nftables/0001-Makefile.am-do-not-build-examples-directory.patch new file mode 100644 index 0..da568900c --- /dev/null +++ b/meta-networking/recipes-filter/nftables/nftables/0001-Makefile.am-do-not-build-examples-directory.patch @@ -0,0 +1,34 @@ +From 4a0a013647054994e089a024b07d76b25af6ab76 Mon Sep 17 00:00:00 2001 +From: Trevor Gamblin +Date: Tue, 22 Mar 2022 10:11:10 -0400 +Subject: [PATCH] Makefile.am: do not build examples directory + +v1.0.2 added the "examples" subdir in Makefile.am, but the contents of +this directory do "#include ", which is breaking +the build. Since we don't need the content in that directory, patch it +locally to prevent it from being built. + +Upstream-Status: Inappropriate (embedded-specific) + +Signed-off-by: Trevor Gamblin +--- + Makefile.am | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index 72fb4e88..4a17424d 100644 +--- a/Makefile.am b/Makefile.am +@@ -3,8 +3,7 @@ ACLOCAL_AMFLAGS= -I m4 + SUBDIRS = src \ + include \ + files \ +- doc \ +- examples ++ doc + if HAVE_PYTHON + SUBDIRS += py + endif +-- +2.35.1 + diff --git a/meta-networking/recipes-filter/nftables/nftables_1.0.1.bb b/meta-networking/recipes-filter/nftables/nftables_1.0.2.bb similarity index 85% rename from meta-networking/recipes-filter/nftables/nftables_1.0.1.bb rename to meta-networking/recipes-filter/nftables/nftables_1.0.2.bb index 2c378e8fd..1556b217f 100644 --- a/meta-networking/recipes-filter/nftables/nftables_1.0.1.bb +++ b/meta-networking/recipes-filter/nftables/nftables_1.0.2.bb @@ -6,11 +6,15 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d1a78fdd879a263a5e0b42d1fc565e79" DEPENDS = "libmnl libnftnl bison-native \ ${@bb.utils.contains('PACKAGECONFIG', 'mini-gmp', '', 'gmp', d)}" +RDEPENDS:${PN} = "libmnl libnftnl" + # Ensure we reject the 0.099 version by matching at least two dots UPSTREAM_CHECK_REGEX = "nftables-(?P\d+(\.\d+){2,}).tar.bz2" -SRC_URI = "http://www.netfilter.org/projects/nftables/files/${BP}.tar.bz2"; -SRC_URI[sha256sum] = "3ceeba625818e81a0be293e9dd486c3ef799ebd92165270f1e57e9a201efa423" +SRC_URI = "http://www.netfilter.org/projects/nftables/files/${BP}.tar.bz2 \ + file://0001-Makefile.am-do-not-build-examples-directory.patch \ + " +SRC_URI[sha256sum] = "0b28a36ffcf4567b841de7bd3f37918b1fed27859eb48bdec51e1f7a83954c02" inherit autotools manpages pkgconfig -- 2.33.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#96144): https://lists.openembedded.org/g/openembedded-devel/message/96144 Mute This Topic: https://lists.openembedded.org/mt/89953861/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-networking][PATCH] nftables: upgrade v1.0.0 -> v1.0.2
Add libmnl and libnftnl to the RDEPENDS for the recipe. Also add a patch to remove the "example" directory from the list of build subdirs in Makefile.am, since this was added in v1.0.2 but it is breaking the build for content that we don't need in the image. Signed-off-by: Trevor Gamblin --- ...e.am-do-not-build-examples-directory.patch | 34 +++ .../{nftables_1.0.1.bb => nftables_1.0.2.bb} | 8 +++-- 2 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 meta-networking/recipes-filter/nftables/nftables/0001-Makefile.am-do-not-build-examples-directory.patch rename meta-networking/recipes-filter/nftables/{nftables_1.0.1.bb => nftables_1.0.2.bb} (85%) diff --git a/meta-networking/recipes-filter/nftables/nftables/0001-Makefile.am-do-not-build-examples-directory.patch b/meta-networking/recipes-filter/nftables/nftables/0001-Makefile.am-do-not-build-examples-directory.patch new file mode 100644 index 0..da568900c --- /dev/null +++ b/meta-networking/recipes-filter/nftables/nftables/0001-Makefile.am-do-not-build-examples-directory.patch @@ -0,0 +1,34 @@ +From 4a0a013647054994e089a024b07d76b25af6ab76 Mon Sep 17 00:00:00 2001 +From: Trevor Gamblin +Date: Tue, 22 Mar 2022 10:11:10 -0400 +Subject: [PATCH] Makefile.am: do not build examples directory + +v1.0.2 added the "examples" subdir in Makefile.am, but the contents of +this directory do "#include ", which is breaking +the build. Since we don't need the content in that directory, patch it +locally to prevent it from being built. + +Upstream-Status: Inappropriate (embedded-specific) + +Signed-off-by: Trevor Gamblin +--- + Makefile.am | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index 72fb4e88..4a17424d 100644 +--- a/Makefile.am b/Makefile.am +@@ -3,8 +3,7 @@ ACLOCAL_AMFLAGS= -I m4 + SUBDIRS = src \ + include \ + files \ +- doc \ +- examples ++ doc + if HAVE_PYTHON + SUBDIRS += py + endif +-- +2.35.1 + diff --git a/meta-networking/recipes-filter/nftables/nftables_1.0.1.bb b/meta-networking/recipes-filter/nftables/nftables_1.0.2.bb similarity index 85% rename from meta-networking/recipes-filter/nftables/nftables_1.0.1.bb rename to meta-networking/recipes-filter/nftables/nftables_1.0.2.bb index 2c378e8fd..1556b217f 100644 --- a/meta-networking/recipes-filter/nftables/nftables_1.0.1.bb +++ b/meta-networking/recipes-filter/nftables/nftables_1.0.2.bb @@ -6,11 +6,15 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d1a78fdd879a263a5e0b42d1fc565e79" DEPENDS = "libmnl libnftnl bison-native \ ${@bb.utils.contains('PACKAGECONFIG', 'mini-gmp', '', 'gmp', d)}" +RDEPENDS:${PN} = "libmnl libnftnl" + # Ensure we reject the 0.099 version by matching at least two dots UPSTREAM_CHECK_REGEX = "nftables-(?P\d+(\.\d+){2,}).tar.bz2" -SRC_URI = "http://www.netfilter.org/projects/nftables/files/${BP}.tar.bz2"; -SRC_URI[sha256sum] = "3ceeba625818e81a0be293e9dd486c3ef799ebd92165270f1e57e9a201efa423" +SRC_URI = "http://www.netfilter.org/projects/nftables/files/${BP}.tar.bz2 \ + file://0001-Makefile.am-do-not-build-examples-directory.patch \ + " +SRC_URI[sha256sum] = "0b28a36ffcf4567b841de7bd3f37918b1fed27859eb48bdec51e1f7a83954c02" inherit autotools manpages pkgconfig -- 2.33.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#96141): https://lists.openembedded.org/g/openembedded-devel/message/96141 Mute This Topic: https://lists.openembedded.org/mt/89953861/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 2/2] python3-django: upgrade 4.0.1 -> 4.0.2
4.0.2 fixes CVE-2022-22818 and CVE-2022-23833. See: https://docs.djangoproject.com/en/dev/releases/4.0.2/ Signed-off-by: Trevor Gamblin --- .../python/{python3-django_4.0.1.bb => python3-django_4.0.2.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-django_4.0.1.bb => python3-django_4.0.2.bb} (77%) diff --git a/meta-python/recipes-devtools/python/python3-django_4.0.1.bb b/meta-python/recipes-devtools/python/python3-django_4.0.2.bb similarity index 77% rename from meta-python/recipes-devtools/python/python3-django_4.0.1.bb rename to meta-python/recipes-devtools/python/python3-django_4.0.2.bb index 6cf8cad8a..690b9809d 100644 --- a/meta-python/recipes-devtools/python/python3-django_4.0.1.bb +++ b/meta-python/recipes-devtools/python/python3-django_4.0.2.bb @@ -1,7 +1,7 @@ require python-django.inc inherit setuptools3 -SRC_URI[sha256sum] = "2485eea3cc4c3bae13080dee866ebf90ba9f98d1afe8fda89bfb0eb2e218ef86" +SRC_URI[sha256sum] = "110fb58fb12eca59e072ad59fc42d771cd642dd7a2f2416582aa9da7a8ef954a" RDEPENDS:${PN} += "\ ${PYTHON_PN}-sqlparse \ -- 2.33.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#95987): https://lists.openembedded.org/g/openembedded-devel/message/95987 Mute This Topic: https://lists.openembedded.org/mt/89777927/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 1/2] python3-django: upgrade 3.2.11 -> 3.2.12
3.2.12 fixes CVE-2022-22818 and CVE-2022-23833. See: https://docs.djangoproject.com/en/dev/releases/3.2.12/ Signed-off-by: Trevor Gamblin --- .../{python3-django_3.2.11.bb => python3-django_3.2.12.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-django_3.2.11.bb => python3-django_3.2.12.bb} (77%) diff --git a/meta-python/recipes-devtools/python/python3-django_3.2.11.bb b/meta-python/recipes-devtools/python/python3-django_3.2.12.bb similarity index 77% rename from meta-python/recipes-devtools/python/python3-django_3.2.11.bb rename to meta-python/recipes-devtools/python/python3-django_3.2.12.bb index 6b97ef49c..adbc498bd 100644 --- a/meta-python/recipes-devtools/python/python3-django_3.2.11.bb +++ b/meta-python/recipes-devtools/python/python3-django_3.2.12.bb @@ -1,7 +1,7 @@ require python-django.inc inherit setuptools3 -SRC_URI[sha256sum] = "69c94abe5d6b1b088bf475e09b7b74403f943e34da107e798465d2045da27e75" +SRC_URI[sha256sum] = "9772e6935703e59e993960832d66a614cf0233a1c5123bc6224ecc6ad69e41e2" RDEPENDS:${PN} += "\ ${PYTHON_PN}-sqlparse \ -- 2.33.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#95986): https://lists.openembedded.org/g/openembedded-devel/message/95986 Mute This Topic: https://lists.openembedded.org/mt/89777926/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-oe][PATCH] phoronix-test-suite: upgrade 9.2.1 -> 10.8.1
10.8.1 is the latest release, including fixes for CVE-2022-0196 and CVE-2022-0197. Since the version jump is significant, the release notes would be too long to list here. They can be found at https://github.com/phoronix-test-suite/phoronix-test-suite/releases. Signed-off-by: Trevor Gamblin --- ...onix-test-suite_9.2.1.bb => phoronix-test-suite_10.8.1.bb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta-oe/recipes-benchmark/phoronix-test-suite/{phoronix-test-suite_9.2.1.bb => phoronix-test-suite_10.8.1.bb} (91%) diff --git a/meta-oe/recipes-benchmark/phoronix-test-suite/phoronix-test-suite_9.2.1.bb b/meta-oe/recipes-benchmark/phoronix-test-suite/phoronix-test-suite_10.8.1.bb similarity index 91% rename from meta-oe/recipes-benchmark/phoronix-test-suite/phoronix-test-suite_9.2.1.bb rename to meta-oe/recipes-benchmark/phoronix-test-suite/phoronix-test-suite_10.8.1.bb index c571013a9..a83e09d2b 100644 --- a/meta-oe/recipes-benchmark/phoronix-test-suite/phoronix-test-suite_9.2.1.bb +++ b/meta-oe/recipes-benchmark/phoronix-test-suite/phoronix-test-suite_10.8.1.bb @@ -6,8 +6,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" SECTION = "console/tests" SRC_URI = "http://www.phoronix-test-suite.com/releases/${BP}.tar.gz"; -SRC_URI[md5sum] = "ad80ed9a5835929138473f764ff0d5db" -SRC_URI[sha256sum] = "675e7ca96719e2f3b42a6c13421213a398f04da0f8e78f4691fa9261fdeb8501" +SRC_URI[md5sum] = "9f107c080407b7ac195bb04e6cabb83b" +SRC_URI[sha256sum] = "3b58ea694419ca608d729fa6ce72ed2b4c51af444729eefbcdc6e670290caa7f" S = "${WORKDIR}/phoronix-test-suite" -- 2.33.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#95201): https://lists.openembedded.org/g/openembedded-devel/message/95201 Mute This Topic: https://lists.openembedded.org/mt/88837416/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][hardknott][PATCH v2] python3-pillow: fix CVE-2022-22815, 22816, 22817
Backport three patches from 9.0.0 upstream to fix CVES. Signed-off-by: Trevor Gamblin --- ...Handle-case-where-path-count-is-zero.patch | 77 +++ .../0001-Initialize-coordinates-to-zero.patch | 45 +++ ...Restrict-builtins-for-ImageMath.eval.patch | 60 +++ .../python/python3-pillow_8.2.0.bb| 3 + 4 files changed, 185 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pillow/0001-Handle-case-where-path-count-is-zero.patch create mode 100644 meta-python/recipes-devtools/python/python3-pillow/0001-Initialize-coordinates-to-zero.patch create mode 100644 meta-python/recipes-devtools/python/python3-pillow/0001-Restrict-builtins-for-ImageMath.eval.patch diff --git a/meta-python/recipes-devtools/python/python3-pillow/0001-Handle-case-where-path-count-is-zero.patch b/meta-python/recipes-devtools/python/python3-pillow/0001-Handle-case-where-path-count-is-zero.patch new file mode 100644 index 0..4c4f3d51f --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pillow/0001-Handle-case-where-path-count-is-zero.patch @@ -0,0 +1,77 @@ +From c48271ab354db49cdbd740bc45e13be4f0f7993c Mon Sep 17 00:00:00 2001 +From: Andrew Murray +Date: Mon, 6 Dec 2021 22:25:14 +1100 +Subject: [PATCH] Handle case where path count is zero + +CVE: CVE-2022-22816 + +Upstream-Status: Backport +(https://github.com/python-pillow/Pillow/pull/5920/commits/c48271ab354db49cdbd740bc45e13be4f0f7993c) + +Signed-off-by: Trevor Gamblin + +--- + Tests/test_imagepath.py | 1 + + src/path.c | 33 +++-- + 2 files changed, 20 insertions(+), 14 deletions(-) + +diff --git a/Tests/test_imagepath.py b/Tests/test_imagepath.py +index cd850bb1..b18271cc 100644 +--- a/Tests/test_imagepath.py b/Tests/test_imagepath.py +@@ -90,6 +90,7 @@ def test_path_odd_number_of_coordinates(): + [ + ([0, 1, 2, 3], (0.0, 1.0, 2.0, 3.0)), + ([3, 2, 1, 0], (1.0, 0.0, 3.0, 2.0)), ++(0, (0.0, 0.0, 0.0, 0.0)), + (1, (0.0, 0.0, 0.0, 0.0)), + ], + ) +diff --git a/src/path.c b/src/path.c +index 64c767cb..dea274ee 100644 +--- a/src/path.c b/src/path.c +@@ -327,21 +327,26 @@ path_getbbox(PyPathObject *self, PyObject *args) { + + xy = self->xy; + +-x0 = x1 = xy[0]; +-y0 = y1 = xy[1]; ++if (self->count == 0) { ++x0 = x1 = 0; ++y0 = y1 = 0; ++} else { ++x0 = x1 = xy[0]; ++y0 = y1 = xy[1]; + +-for (i = 1; i < self->count; i++) { +-if (xy[i + i] < x0) { +-x0 = xy[i + i]; +-} +-if (xy[i + i] > x1) { +-x1 = xy[i + i]; +-} +-if (xy[i + i + 1] < y0) { +-y0 = xy[i + i + 1]; +-} +-if (xy[i + i + 1] > y1) { +-y1 = xy[i + i + 1]; ++for (i = 1; i < self->count; i++) { ++if (xy[i + i] < x0) { ++x0 = xy[i + i]; ++} ++if (xy[i + i] > x1) { ++x1 = xy[i + i]; ++} ++if (xy[i + i + 1] < y0) { ++y0 = xy[i + i + 1]; ++} ++if (xy[i + i + 1] > y1) { ++y1 = xy[i + i + 1]; ++} + } + } + +-- +2.33.0 + diff --git a/meta-python/recipes-devtools/python/python3-pillow/0001-Initialize-coordinates-to-zero.patch b/meta-python/recipes-devtools/python/python3-pillow/0001-Initialize-coordinates-to-zero.patch new file mode 100644 index 0..758531f67 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pillow/0001-Initialize-coordinates-to-zero.patch @@ -0,0 +1,45 @@ +From 1e092419b6806495c683043ab3feb6ce264f3b9c Mon Sep 17 00:00:00 2001 +From: Andrew Murray +Date: Mon, 6 Dec 2021 22:24:19 +1100 +Subject: [PATCH] Initialize coordinates to zero + +CVE: CVE-2022-22815 + +Upstream-Status: Backport +(https://github.com/python-pillow/Pillow/pull/5920/commits/1e092419b6806495c683043ab3feb6ce264f3b9c) + +Signed-off-by: Trevor Gamblin + +--- + Tests/test_imagepath.py | 1 + + src/path.c | 2 +- + 2 files changed, 2 insertions(+), 1 deletion(-) + +diff --git a/Tests/test_imagepath.py b/Tests/test_imagepath.py +index 0835fdb4..cd850bb1 100644 +--- a/Tests/test_imagepath.py b/Tests/test_imagepath.py +@@ -90,6 +90,7 @@ def test_path_odd_number_of_coordinates(): + [ + ([0, 1, 2, 3], (0.0, 1.0, 2.0, 3.0)), + ([3, 2, 1, 0], (1.0, 0.0, 3.0, 2.0)), ++(1, (0.0, 0.0, 0.0, 0.0)), + ], + ) + def test_getbbox(coords, expected): +diff --git a/src/path.c b/src/path.c +index 4764c58a..64c767cb 100644 +--- a/src/path.c b/src/path.c +@@ -57,7 +57,7 @@ alloc_array(Py_ssize_t count) { + if ((unsigned long long)count > (SIZE_MAX / (2 * sizeof(double))) - 1) { + return ImagingError_MemoryError(); + } +-xy = malloc(2 * count * sizeof(double) + 1); ++xy = calloc(2 * count * sizeo
Re: [oe] [meta-python][hardknott][PATCH] python3-pillow: fix CVE-2022-22815, 22816, 22817
Missing a sign-off from me on one of the patches. Will send a v2... On 2022-01-28 09:05, Trevor Gamblin wrote: Backport three patches from 9.0.0 upstream to fix CVES. Signed-off-by: Trevor Gamblin --- ...Handle-case-where-path-count-is-zero.patch | 75 +++ .../0001-Initialize-coordinates-to-zero.patch | 45 +++ ...Restrict-builtins-for-ImageMath.eval.patch | 60 +++ .../python/python3-pillow_8.2.0.bb| 3 + 4 files changed, 183 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pillow/0001-Handle-case-where-path-count-is-zero.patch create mode 100644 meta-python/recipes-devtools/python/python3-pillow/0001-Initialize-coordinates-to-zero.patch create mode 100644 meta-python/recipes-devtools/python/python3-pillow/0001-Restrict-builtins-for-ImageMath.eval.patch diff --git a/meta-python/recipes-devtools/python/python3-pillow/0001-Handle-case-where-path-count-is-zero.patch b/meta-python/recipes-devtools/python/python3-pillow/0001-Handle-case-where-path-count-is-zero.patch new file mode 100644 index 0..26b741f9c --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pillow/0001-Handle-case-where-path-count-is-zero.patch @@ -0,0 +1,75 @@ +From c48271ab354db49cdbd740bc45e13be4f0f7993c Mon Sep 17 00:00:00 2001 +From: Andrew Murray +Date: Mon, 6 Dec 2021 22:25:14 +1100 +Subject: [PATCH] Handle case where path count is zero + +CVE: CVE-2022-22816 + +Upstream-Status: Backport +(https://github.com/python-pillow/Pillow/pull/5920/commits/c48271ab354db49cdbd740bc45e13be4f0f7993c) + +--- + Tests/test_imagepath.py | 1 + + src/path.c | 33 +++-- + 2 files changed, 20 insertions(+), 14 deletions(-) + +diff --git a/Tests/test_imagepath.py b/Tests/test_imagepath.py +index cd850bb1..b18271cc 100644 +--- a/Tests/test_imagepath.py b/Tests/test_imagepath.py +@@ -90,6 +90,7 @@ def test_path_odd_number_of_coordinates(): + [ + ([0, 1, 2, 3], (0.0, 1.0, 2.0, 3.0)), + ([3, 2, 1, 0], (1.0, 0.0, 3.0, 2.0)), ++(0, (0.0, 0.0, 0.0, 0.0)), + (1, (0.0, 0.0, 0.0, 0.0)), + ], + ) +diff --git a/src/path.c b/src/path.c +index 64c767cb..dea274ee 100644 +--- a/src/path.c b/src/path.c +@@ -327,21 +327,26 @@ path_getbbox(PyPathObject *self, PyObject *args) { + + xy = self->xy; + +-x0 = x1 = xy[0]; +-y0 = y1 = xy[1]; ++if (self->count == 0) { ++x0 = x1 = 0; ++y0 = y1 = 0; ++} else { ++x0 = x1 = xy[0]; ++y0 = y1 = xy[1]; + +-for (i = 1; i < self->count; i++) { +-if (xy[i + i] < x0) { +-x0 = xy[i + i]; +-} +-if (xy[i + i] > x1) { +-x1 = xy[i + i]; +-} +-if (xy[i + i + 1] < y0) { +-y0 = xy[i + i + 1]; +-} +-if (xy[i + i + 1] > y1) { +-y1 = xy[i + i + 1]; ++for (i = 1; i < self->count; i++) { ++if (xy[i + i] < x0) { ++x0 = xy[i + i]; ++} ++if (xy[i + i] > x1) { ++x1 = xy[i + i]; ++} ++if (xy[i + i + 1] < y0) { ++y0 = xy[i + i + 1]; ++} ++if (xy[i + i + 1] > y1) { ++y1 = xy[i + i + 1]; ++} + } + } + +-- +2.33.0 + diff --git a/meta-python/recipes-devtools/python/python3-pillow/0001-Initialize-coordinates-to-zero.patch b/meta-python/recipes-devtools/python/python3-pillow/0001-Initialize-coordinates-to-zero.patch new file mode 100644 index 0..758531f67 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pillow/0001-Initialize-coordinates-to-zero.patch @@ -0,0 +1,45 @@ +From 1e092419b6806495c683043ab3feb6ce264f3b9c Mon Sep 17 00:00:00 2001 +From: Andrew Murray +Date: Mon, 6 Dec 2021 22:24:19 +1100 +Subject: [PATCH] Initialize coordinates to zero + +CVE: CVE-2022-22815 + +Upstream-Status: Backport +(https://github.com/python-pillow/Pillow/pull/5920/commits/1e092419b6806495c683043ab3feb6ce264f3b9c) + +Signed-off-by: Trevor Gamblin + +--- + Tests/test_imagepath.py | 1 + + src/path.c | 2 +- + 2 files changed, 2 insertions(+), 1 deletion(-) + +diff --git a/Tests/test_imagepath.py b/Tests/test_imagepath.py +index 0835fdb4..cd850bb1 100644 +--- a/Tests/test_imagepath.py b/Tests/test_imagepath.py +@@ -90,6 +90,7 @@ def test_path_odd_number_of_coordinates(): + [ + ([0, 1, 2, 3], (0.0, 1.0, 2.0, 3.0)), + ([3, 2, 1, 0], (1.0, 0.0, 3.0, 2.0)), ++(1, (0.0, 0.0, 0.0, 0.0)), + ], + ) + def test_getbbox(coords, expected): +diff --git a/src/path.c b/src/path.c +index 4764c58a..64c767cb 100644 +--- a/src/path.c b/src/path.c +@@ -57,7 +57,7 @@ alloc_array(Py_ssize_t count) { + if ((unsigned long long)count > (SIZE_MAX / (2 * sizeof(double))) - 1) { + return ImagingError_MemoryError(); + } +-xy = mal
[oe] [meta-python][hardknott][PATCH] python3-pillow: fix CVE-2022-22815, 22816, 22817
Backport three patches from 9.0.0 upstream to fix CVES. Signed-off-by: Trevor Gamblin --- ...Handle-case-where-path-count-is-zero.patch | 75 +++ .../0001-Initialize-coordinates-to-zero.patch | 45 +++ ...Restrict-builtins-for-ImageMath.eval.patch | 60 +++ .../python/python3-pillow_8.2.0.bb| 3 + 4 files changed, 183 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pillow/0001-Handle-case-where-path-count-is-zero.patch create mode 100644 meta-python/recipes-devtools/python/python3-pillow/0001-Initialize-coordinates-to-zero.patch create mode 100644 meta-python/recipes-devtools/python/python3-pillow/0001-Restrict-builtins-for-ImageMath.eval.patch diff --git a/meta-python/recipes-devtools/python/python3-pillow/0001-Handle-case-where-path-count-is-zero.patch b/meta-python/recipes-devtools/python/python3-pillow/0001-Handle-case-where-path-count-is-zero.patch new file mode 100644 index 0..26b741f9c --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pillow/0001-Handle-case-where-path-count-is-zero.patch @@ -0,0 +1,75 @@ +From c48271ab354db49cdbd740bc45e13be4f0f7993c Mon Sep 17 00:00:00 2001 +From: Andrew Murray +Date: Mon, 6 Dec 2021 22:25:14 +1100 +Subject: [PATCH] Handle case where path count is zero + +CVE: CVE-2022-22816 + +Upstream-Status: Backport +(https://github.com/python-pillow/Pillow/pull/5920/commits/c48271ab354db49cdbd740bc45e13be4f0f7993c) + +--- + Tests/test_imagepath.py | 1 + + src/path.c | 33 +++-- + 2 files changed, 20 insertions(+), 14 deletions(-) + +diff --git a/Tests/test_imagepath.py b/Tests/test_imagepath.py +index cd850bb1..b18271cc 100644 +--- a/Tests/test_imagepath.py b/Tests/test_imagepath.py +@@ -90,6 +90,7 @@ def test_path_odd_number_of_coordinates(): + [ + ([0, 1, 2, 3], (0.0, 1.0, 2.0, 3.0)), + ([3, 2, 1, 0], (1.0, 0.0, 3.0, 2.0)), ++(0, (0.0, 0.0, 0.0, 0.0)), + (1, (0.0, 0.0, 0.0, 0.0)), + ], + ) +diff --git a/src/path.c b/src/path.c +index 64c767cb..dea274ee 100644 +--- a/src/path.c b/src/path.c +@@ -327,21 +327,26 @@ path_getbbox(PyPathObject *self, PyObject *args) { + + xy = self->xy; + +-x0 = x1 = xy[0]; +-y0 = y1 = xy[1]; ++if (self->count == 0) { ++x0 = x1 = 0; ++y0 = y1 = 0; ++} else { ++x0 = x1 = xy[0]; ++y0 = y1 = xy[1]; + +-for (i = 1; i < self->count; i++) { +-if (xy[i + i] < x0) { +-x0 = xy[i + i]; +-} +-if (xy[i + i] > x1) { +-x1 = xy[i + i]; +-} +-if (xy[i + i + 1] < y0) { +-y0 = xy[i + i + 1]; +-} +-if (xy[i + i + 1] > y1) { +-y1 = xy[i + i + 1]; ++for (i = 1; i < self->count; i++) { ++if (xy[i + i] < x0) { ++x0 = xy[i + i]; ++} ++if (xy[i + i] > x1) { ++x1 = xy[i + i]; ++} ++if (xy[i + i + 1] < y0) { ++y0 = xy[i + i + 1]; ++} ++if (xy[i + i + 1] > y1) { ++y1 = xy[i + i + 1]; ++} + } + } + +-- +2.33.0 + diff --git a/meta-python/recipes-devtools/python/python3-pillow/0001-Initialize-coordinates-to-zero.patch b/meta-python/recipes-devtools/python/python3-pillow/0001-Initialize-coordinates-to-zero.patch new file mode 100644 index 0..758531f67 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pillow/0001-Initialize-coordinates-to-zero.patch @@ -0,0 +1,45 @@ +From 1e092419b6806495c683043ab3feb6ce264f3b9c Mon Sep 17 00:00:00 2001 +From: Andrew Murray +Date: Mon, 6 Dec 2021 22:24:19 +1100 +Subject: [PATCH] Initialize coordinates to zero + +CVE: CVE-2022-22815 + +Upstream-Status: Backport +(https://github.com/python-pillow/Pillow/pull/5920/commits/1e092419b6806495c683043ab3feb6ce264f3b9c) + +Signed-off-by: Trevor Gamblin + +--- + Tests/test_imagepath.py | 1 + + src/path.c | 2 +- + 2 files changed, 2 insertions(+), 1 deletion(-) + +diff --git a/Tests/test_imagepath.py b/Tests/test_imagepath.py +index 0835fdb4..cd850bb1 100644 +--- a/Tests/test_imagepath.py b/Tests/test_imagepath.py +@@ -90,6 +90,7 @@ def test_path_odd_number_of_coordinates(): + [ + ([0, 1, 2, 3], (0.0, 1.0, 2.0, 3.0)), + ([3, 2, 1, 0], (1.0, 0.0, 3.0, 2.0)), ++(1, (0.0, 0.0, 0.0, 0.0)), + ], + ) + def test_getbbox(coords, expected): +diff --git a/src/path.c b/src/path.c +index 4764c58a..64c767cb 100644 +--- a/src/path.c b/src/path.c +@@ -57,7 +57,7 @@ alloc_array(Py_ssize_t count) { + if ((unsigned long long)count > (SIZE_MAX / (2 * sizeof(double))) - 1) { + return ImagingError_MemoryError(); + } +-xy = malloc(2 * count * sizeof(double) + 1); ++xy = calloc(2 * count * sizeof(double) + 1, sizeof(double)); +
Re: [oe] [meta-python][PATCH] python3-zeroconf: bump version 0.36.13 -> 0.38.1
On 2022-01-23 07:55, Bartosz Golaszewski wrote: [Please note: This e-mail is from an EXTERNAL e-mail address] On Fri, Jan 7, 2022 at 1:27 PM Bartosz Golaszewski wrote: Signed-off-by: Bartosz Golaszewski --- .../{python3-zeroconf_0.36.13.bb => python3-zeroconf_0.38.1.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-zeroconf_0.36.13.bb => python3-zeroconf_0.38.1.bb} (79%) diff --git a/meta-python/recipes-devtools/python/python3-zeroconf_0.36.13.bb b/meta-python/recipes-devtools/python/python3-zeroconf_0.38.1.bb similarity index 79% rename from meta-python/recipes-devtools/python/python3-zeroconf_0.36.13.bb rename to meta-python/recipes-devtools/python/python3-zeroconf_0.38.1.bb index ccab7fe4c..c49782e42 100644 --- a/meta-python/recipes-devtools/python/python3-zeroconf_0.36.13.bb +++ b/meta-python/recipes-devtools/python/python3-zeroconf_0.38.1.bb @@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/jstasiak/python-zeroconf"; LICENSE = "LGPL-2.1" LIC_FILES_CHKSUM = "file://COPYING;md5=3bb705b228ea4a14ea2728215b780d80" -SRC_URI[sha256sum] = "196fa1bd6e166f0333e3e9fff076f9991bf2719c4788287eaec577c241ef96bf" +SRC_URI[sha256sum] = "10c501b25d8881b656e56c34674d98fe6bc752240a572e74f918bc849c93ba9c" inherit pypi setuptools3 -- 2.25.1 Ping. Did this get lost somehow? Not sure how I missed it before. Submitted with the latest PR just now. - Trevor Bart -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#95033): https://lists.openembedded.org/g/openembedded-devel/message/95033 Mute This Topic: https://lists.openembedded.org/mt/88259686/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-