Skip to contentSkip to conversation

python3-pyroute2: update to version 0.7.11

PATCH In review Derek Straka 2 participants 2 messages Feb 2, 2024 – Feb 3, 2024

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 python3-pyroute2: update to version 0.7.11

Leverage git repo as src is not published in latest pypi release

---
 ...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%)
meta-python/recipes-devtools/python/python3-pyroute2_0.7.11.bb renamed from meta-python/recipes-devtools/python/python3-pyroute2_0.7.10.bb +8 -6
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
@@ -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 \
Signature · 1 line
2.34.1
#1 lore raw

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 ===============================

Quoted 57 lines · Derek Straka

Leverage git repo as src is not published in latest pypi release

---
 ...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%)
meta-python/recipes-devtools/python/python3-pyroute2_0.7.11.bb renamed from meta-python/recipes-devtools/python/python3-pyroute2_0.7.10.bb +8 -7
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
@@ -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: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-