Skip to contentSkip to conversation

bazel-native: add UPSTREAM_CHECK_URI

PATCH New Yi Zhao 1 participant 3 messages Nov 28, 2025

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH 1/3 bazel-native: add UPSTREAM_CHECK_URI

Add UPSTREAM_CHECK_URI and UPSTREAM_CHECK_REGEX to check the correct latest stable verison.

Before the patch:

$ devtool latest-version bazel-native
INFO: Current version: 6.0.0
INFO: Latest version:

After the patch:

$ devtool latest-version bazel-native
INFO: Current version: 6.0.0
INFO: Latest version: 7.7.1
---
 recipes-devtools/bazel/bazel-native_6.0.0.bb | 3 +++
 1 file changed, 3 insertions(+)
recipes-devtools/bazel/bazel-native_6.0.0.bb +3 -0
index 4960358..12351ff 100644
@@ -15,6 +15,9 @@ SRC_URI = "https://github.com/bazelbuild/bazel/releases/download/${PV}/bazel-${P
            file://include_stdint.patch \
 "
 
+UPSTREAM_CHECK_URI = "https://github.com/bazelbuild/bazel/releases/"
+UPSTREAM_CHECK_REGEX = "releases/tag/v?(?P<pver>\d+(\.\d+)+)$"
+
 inherit python3native
 
 INHIBIT_SYSROOT_STRIP = "1"
Signature · 1 line
2.34.1
author
#1 lore raw

PATCH 2/3 python3-mldtypes: add UPSTREAM_CHECK_URI

Add UPSTREAM_CHECK_URI and UPSTREAM_CHECK_PYPI_PACKAGE to check the correct latest stable verison.

Before the patch:

$ devtool latest-version python3-mldtypes
INFO: Current version: 0.5.1
INFO: Latest version:

After the patch:

$ devtool latest-version python3-mldtypes
INFO: Current version: 0.5.1
INFO: Latest version: 0.5.4
---
 recipes-devtools/python/python3-mldtypes_0.5.1.bb | 3 +++
 1 file changed, 3 insertions(+)
recipes-devtools/python/python3-mldtypes_0.5.1.bb +3 -0
index b3f8b98..9a72066 100644
@@ -13,6 +13,9 @@ PYPI_SRC_URI = "https://files.pythonhosted.org/packages/32/49/6e67c334872d2c114d
 SRC_URI += "file://0001-fix-setuptools-missing.patch"
 S = "${UNPACKDIR}/${SRCNAME}-${PV}"
 
+UPSTREAM_CHECK_PYPI_PACKAGE = "ml_dtypes"
+UPSTREAM_CHECK_URI = "https://pypi.org/simple/${UPSTREAM_CHECK_PYPI_PACKAGE}/"
+
 DEPENDS = " \
     python3-pybind11-native \
     python3-numpy-native \
Signature · 1 line
2.34.1
author
#2 lore raw

PATCH 3/3 python3-opt-einsum: add UPSTREAM_CHECK_PYPI_PACKAGE

In reply to Yi Zhao

Add UPSTREAM_CHECK_PYPI_PACKAGE to check the correct latest stable verison.

Before the patch:

$ devtool latest-version python3-opt-einsum
INFO: Current version: 3.3.0
INFO: Latest version:

After the patch:

$ devtool latest-version python3-opt-einsum
INFO: Current version: 3.3.0
INFO: Latest version: 3.4.0
---
 recipes-devtools/python/python3-opt-einsum_3.3.0.bb | 3 +++
 1 file changed, 3 insertions(+)
recipes-devtools/python/python3-opt-einsum_3.3.0.bb +3 -0
index 4aecbba..ea9b29e 100644
@@ -14,6 +14,9 @@ PYPI_SRC_URI = "https://files.pythonhosted.org/packages/source/o/${PYPI_PACKAGE}
 SRC_URI += " \
     file://0001-Use-ConfigParser-instead-of-SafeConfigParser.patch \
 "
+
+UPSTREAM_CHECK_PYPI_PACKAGE = "opt_einsum"
+
 S = "${UNPACKDIR}/${SRCNAME}-${PV}"
 
 BBCLASSEXTEND = "native"
Signature · 1 line
2.34.1