diff mbox series

[meta-python,PATCHv2] python3-pyroute2: update to version 0.7.11

Message ID 20240202203453.1576669-1-derek@asterius.io
State Superseded
Headers show
Series [meta-python,PATCHv2] python3-pyroute2: update to version 0.7.11 | expand

Commit Message

Derek Straka Feb. 2, 2024, 8:34 p.m. UTC
Leverage git repo as src is not published in latest pypi release

Signed-off-by: Derek Straka <derek@asterius.io>
---
 ...route2_0.7.10.bb => python3-pyroute2_0.7.11.bb} | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-pyroute2_0.7.10.bb => python3-pyroute2_0.7.11.bb} (82%)

Comments

Khem Raj Feb. 3, 2024, 7:25 a.m. UTC | #1
fails ptests on qemux86-64

you can run it by

bitbake meta-python-image-ptest-python3-pyroute2
runqemu kvm

root@qemux86-64:/usr/lib/python3-pyroute2/ptest# ./run-ptest
============================= test session starts ==============================
platform linux -- Python 3.12.1, pytest-7.4.4, pluggy-1.3.0
rootdir: /usr/lib/python3-pyroute2/ptest
collected 0 items / 1 error

==================================== ERRORS ====================================
________________________ ERROR collecting test session _________________________
Defining 'pytest_plugins' in a non-top-level conftest is no longer supported:
It affects the entire test suite instead of just below the conftest as expected.
  /usr/lib/python3-pyroute2/ptest/tests/test_lab/conftest.py
Please move it to a top level conftest file at the rootdir:
  /usr/lib/python3-pyroute2/ptest
For more information, visit:
  https://docs.pytest.org/en/stable/deprecations.html#pytest-plugins-in-non-top-level-conftest-files
=========================== short test summary info ============================
ERROR  - Failed: Defining 'pytest_plugins' in a non-top-level conftest is no ...
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.11s ===============================

On Fri, Feb 2, 2024 at 12:35 PM Derek Straka <derek@asterius.io> wrote:
>
> Leverage git repo as src is not published in latest pypi release
>
> Signed-off-by: Derek Straka <derek@asterius.io>
> ---
>  ...route2_0.7.10.bb => python3-pyroute2_0.7.11.bb} | 14 ++++++++------
>  1 file changed, 8 insertions(+), 6 deletions(-)
>  rename meta-python/recipes-devtools/python/{python3-pyroute2_0.7.10.bb => python3-pyroute2_0.7.11.bb} (82%)
>
> diff --git a/meta-python/recipes-devtools/python/python3-pyroute2_0.7.10.bb b/meta-python/recipes-devtools/python/python3-pyroute2_0.7.11.bb
> similarity index 82%
> rename from meta-python/recipes-devtools/python/python3-pyroute2_0.7.10.bb
> rename to meta-python/recipes-devtools/python/python3-pyroute2_0.7.11.bb
> index 6b340a18c..7b170147b 100644
> --- a/meta-python/recipes-devtools/python/python3-pyroute2_0.7.10.bb
> +++ b/meta-python/recipes-devtools/python/python3-pyroute2_0.7.11.bb
> @@ -4,9 +4,15 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=dccbff78d7d79ae7e53953d43445c6e6 \
>                      file://LICENSE.GPL-2.0-or-later;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
>                      file://LICENSE.Apache-2.0;md5=34281e312165f843a2b7d1f114fe65ce"
>
> -SRC_URI[sha256sum] = "cc2f90aad1517cb0b301041f678cc8d3c3427c26e53f15c78c93c67928d89a02"
> +SRCREV = "cd8b8947f18f102875ce64c6d2094ba2be59dc35"
> +SRC_URI = " \
> +           git://github.com/svinota/pyroute2.git;branch=master;protocol=https \
> +           file://run-ptest \
> +"
> +
> +inherit setuptools3 ptest
>
> -inherit setuptools3 pypi ptest
> +S = "${WORKDIR}/git"
>
>  RDEPENDS:${PN} += " \
>      python3-ctypes \
> @@ -22,10 +28,6 @@ RDEPENDS:${PN} += " \
>      python3-unixadmin \
>  "
>
> -SRC_URI += " \
> -    file://run-ptest \
> -"
> -
>  RDEPENDS:${PN}-ptest += " \
>      python3-pytest \
>      python3-fcntl \
> --
> 2.34.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#108544): https://lists.openembedded.org/g/openembedded-devel/message/108544
> Mute This Topic: https://lists.openembedded.org/mt/104127681/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-pyroute2_0.7.10.bb b/meta-python/recipes-devtools/python/python3-pyroute2_0.7.11.bb
similarity index 82%
rename from meta-python/recipes-devtools/python/python3-pyroute2_0.7.10.bb
rename to meta-python/recipes-devtools/python/python3-pyroute2_0.7.11.bb
index 6b340a18c..7b170147b 100644
--- a/meta-python/recipes-devtools/python/python3-pyroute2_0.7.10.bb
+++ b/meta-python/recipes-devtools/python/python3-pyroute2_0.7.11.bb
@@ -4,9 +4,15 @@  LIC_FILES_CHKSUM = "file://LICENSE;md5=dccbff78d7d79ae7e53953d43445c6e6 \
                     file://LICENSE.GPL-2.0-or-later;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
                     file://LICENSE.Apache-2.0;md5=34281e312165f843a2b7d1f114fe65ce"
 
-SRC_URI[sha256sum] = "cc2f90aad1517cb0b301041f678cc8d3c3427c26e53f15c78c93c67928d89a02"
+SRCREV = "cd8b8947f18f102875ce64c6d2094ba2be59dc35"
+SRC_URI = " \
+           git://github.com/svinota/pyroute2.git;branch=master;protocol=https \
+           file://run-ptest \
+"
+
+inherit setuptools3 ptest
 
-inherit setuptools3 pypi ptest
+S = "${WORKDIR}/git"
 
 RDEPENDS:${PN} += " \
     python3-ctypes \
@@ -22,10 +28,6 @@  RDEPENDS:${PN} += " \
     python3-unixadmin \
 "
 
-SRC_URI += " \
-    file://run-ptest \
-"
-
 RDEPENDS:${PN}-ptest += " \
     python3-pytest \
     python3-fcntl \