Skip to contentSkip to conversation

python3-oauthlib: Drop redundant nose dependency

PATCH New Khem Raj 1 participant 2 messages Feb 24, 2022

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 python3-oauthlib: Drop redundant nose dependency

Add pytest module dependency for testing
nose has been dropped upstream too [1]

[1] https://github.com/oauthlib/oauthlib/commit/037453c6f92b502eaae2acafe11161e4bb2e38bb

---
 meta-python/recipes-devtools/python/python3-oauthlib_3.2.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-oauthlib_3.2.0.bb +1 -1
index 3e5d957c4e..e7f7f0b47b 100644
@@ -14,7 +14,7 @@ inherit pypi setuptools3
 #
 # Uncomment this line to enable all the optional features.
 #PACKAGECONFIG ?= "test signedtoken signals rsa"
-PACKAGECONFIG[test] = ",,,${PYTHON_PN}-blinker ${PYTHON_PN}-cryptography ${PYTHON_PN}-nose ${PYTHON_PN}-pyjwt"
+PACKAGECONFIG[test] = ",,,${PYTHON_PN}-blinker ${PYTHON_PN}-cryptography ${PYTHON_PN}-pytest ${PYTHON_PN}-pyjwt"
 PACKAGECONFIG[signedtoken] = ",,,${PYTHON_PN}-cryptography ${PYTHON_PN}-pyjwt"
 PACKAGECONFIG[signals] = ",,,${PYTHON_PN}-blinker"
 PACKAGECONFIG[rsa] = ",,,${PYTHON_PN}-cryptography"
Signature · 1 line
2.35.1
author
#1 lore raw

PATCH 2/2 netplan: Add knob to enable tests

this puts python3-nose away from default requirements, nose dependency should eventually be removed and perhaps converted to pytest

---
 .../recipes-connectivity/netplan/netplan_0.104.bb           | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
meta-networking/recipes-connectivity/netplan/netplan_0.104.bb +5 -1
index 6a32f55d47..e26649744c 100644
@@ -22,7 +22,11 @@ SRC_URI:append:libc-musl = " file://0001-don-t-fail-if-GLOB_BRACE-is-not-defined
 
 DEPENDS = "glib-2.0 libyaml ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
 
-RDEPENDS:${PN} = "python3 python3-core python3-pyyaml python3-netifaces python3-nose python3-coverage python3-pycodestyle python3-pyflakes util-linux-libuuid libnetplan"
+PACKAGECONFIG ?= ""
+
+PACKAGECONFIG[tests] = ",,,python3-nose python3-coverage python3-netifaces python3-pycodestyle python3-pyflakes python3-pyyaml"
+
+RDEPENDS:${PN} = "python3 python3-core python3-netifaces python3-pyyaml util-linux-libuuid libnetplan"
 
 inherit pkgconfig systemd
 
Signature · 1 line
2.35.1