diff mbox series

[meta-python,04/11] python3-paho-mqtt: add UPSTREAM_CHECK_REGEX

Message ID 20251112145357.3788595-4-yi.zhao@windriver.com
State Under Review
Headers show
Series [meta-python,01/11] python3-cached-property: add UPSTREAM_CHECK_REGEX | expand

Commit Message

Yi Zhao Nov. 12, 2025, 2:53 p.m. UTC
Add UPSTREAM_CHECK_REGEX to check the correct latest stable
verison.

Before the patch:
$ devtool latest-version python3-paho-mqtt
INFO: Current version: 2.1.0
INFO: Latest version: 1.6.1

Before the patch:
$ devtool latest-version python3-paho-mqtt
INFO: Current version: 2.1.0
INFO: Latest version: 2.1.0

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
 meta-python/recipes-devtools/python/python3-paho-mqtt_2.1.0.bb | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-paho-mqtt_2.1.0.bb b/meta-python/recipes-devtools/python/python3-paho-mqtt_2.1.0.bb
index 86cf034394..1a9223a9cf 100644
--- a/meta-python/recipes-devtools/python/python3-paho-mqtt_2.1.0.bb
+++ b/meta-python/recipes-devtools/python/python3-paho-mqtt_2.1.0.bb
@@ -11,6 +11,8 @@  SRC_URI[sha256sum] = "12d6e7511d4137555a3f6ea167ae846af2c7357b10bc6fa4f7c3968fc1
 
 PYPI_SRC_URI = "https://files.pythonhosted.org/packages/39/15/0a6214e76d4d32e7f663b109cf71fb22561c2be0f701d67f93950cd40542/paho_mqtt-${PV}.tar.gz"
 
+UPSTREAM_CHECK_REGEX = "paho_mqtt-(?P<pver>\d+(\.\d+)+)"
+
 S = "${UNPACKDIR}/paho_mqtt-${PV}"
 
 DEPENDS += "python3-pytest-runner-native"