Add UPSTREAM_CHECK_REGEX to check the correct latest stable
verison.

Before the patch:
$ devtool latest-version python3-pytest-xdist
INFO: Current version: 3.8.0
INFO: Latest version: 3.5.0

After the patch:
$ devtool latest-version python3-pytest-xdist
INFO: Current version: 3.8.0
INFO: Latest version: 3.8.0

Signed-off-by: Yi Zhao <[email protected]>
---
 .../recipes-devtools/python/python3-pytest-xdist_3.8.0.bb       | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-python/recipes-devtools/python/python3-pytest-xdist_3.8.0.bb 
b/meta-python/recipes-devtools/python/python3-pytest-xdist_3.8.0.bb
index 7b340e8920..f172c728ce 100644
--- a/meta-python/recipes-devtools/python/python3-pytest-xdist_3.8.0.bb
+++ b/meta-python/recipes-devtools/python/python3-pytest-xdist_3.8.0.bb
@@ -5,6 +5,8 @@ LIC_FILES_CHKSUM = 
"file://LICENSE;md5=fbae836e16c18f4b220f7db6564e8f61"
 
 SRC_URI[sha256sum] = 
"7e578125ec9bc6050861aa93f2d59f1d8d085595d6551c2c90b6f4fad8d3a9f1"
 
+UPSTREAM_CHECK_REGEX = "pytest_xdist-(?P<pver>\d+(\.\d+)+)"
+
 inherit pypi python_setuptools_build_meta
 
 DEPENDS += "python3-setuptools-scm-native"
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#121557): 
https://lists.openembedded.org/g/openembedded-devel/message/121557
Mute This Topic: https://lists.openembedded.org/mt/116257102/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to