Skip to contentSkip to conversation

python3-pyhamcrest: Fix upstream check by specifying the UPSTREAM_CHECK_URI and UPSTREAM_CHECK_REGEX

PATCH New Derek Straka 1 participant 1 message Sep 27, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-pyhamcrest: Fix upstream check by specifying the UPSTREAM_CHECK_URI and UPSTREAM_CHECK_REGEX

---
 .../recipes-devtools/python/python3-pyhamcrest_2.0.4.bb        | 3 +++
 1 file changed, 3 insertions(+)
meta-python/recipes-devtools/python/python3-pyhamcrest_2.0.4.bb +3 -0
index 888278af8..4ee84531e 100644
@@ -9,6 +9,9 @@ inherit pypi python_setuptools_build_meta
 
 DEPENDS += "${PYTHON_PN}-hatch-vcs-native"
 
+UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/PyHamcrest/"
+UPSTREAM_CHECK_REGEX = "/PyHamcrest/(?P<pver>(\d+[\.\-_]*)+)"
+
 RDEPENDS:${PN} += " \
     ${PYTHON_PN}-six \
     ${PYTHON_PN}-numbers \
Signature · 1 line
2.34.1