diff mbox series

[v2,1/2] python3-cryptography-vectors: allow uv-build 0.13.0

Message ID 20261014055237.9974-1-jaipaul.cheernam@est.tech
State New
Headers show
Series [v2,1/2] python3-cryptography-vectors: allow uv-build 0.13.0 | expand

Commit Message

Jaipaul Cheernam Oct. 14, 2026, 5:52 a.m. UTC
Relax the build backend pin to <0.14.0 so it builds against uv-build
0.13.0. Backport of pyca/cryptography PR [1].

[1] https://github.com/pyca/cryptography/pull/15818

Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
---
 .../python/python3-cryptography-vectors.bb    |  1 +
 ...ject.toml-relax-uv_build-upper-bound.patch | 29 +++++++++++++++++++
 2 files changed, 30 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-cryptography-vectors/0001-pyproject.toml-relax-uv_build-upper-bound.patch
diff mbox series

Patch

diff --git a/meta/recipes-devtools/python/python3-cryptography-vectors.bb b/meta/recipes-devtools/python/python3-cryptography-vectors.bb
index 86e437ea5a..e19b9611cc 100644
--- a/meta/recipes-devtools/python/python3-cryptography-vectors.bb
+++ b/meta/recipes-devtools/python/python3-cryptography-vectors.bb
@@ -9,6 +9,7 @@  LIC_FILES_CHKSUM = "file://LICENSE;md5=8c3617db4fb6fae01f1d253ab91511e4 \
 # NOTE: Make sure to keep this recipe at the same version as python3-cryptography
 #       Upgrade both recipes at the same time
 require python3-cryptography-common.inc
+SRC_URI += "file://0001-pyproject.toml-relax-uv_build-upper-bound.patch"
 SRC_URI[sha256sum] = "d99111fe5dd5a8d40650e300aad34b6e6910ca198c674b8008450ca69f8f05c4"
 
 inherit pypi python_uv_build
diff --git a/meta/recipes-devtools/python/python3-cryptography-vectors/0001-pyproject.toml-relax-uv_build-upper-bound.patch b/meta/recipes-devtools/python/python3-cryptography-vectors/0001-pyproject.toml-relax-uv_build-upper-bound.patch
new file mode 100644
index 0000000000..008be12e30
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-cryptography-vectors/0001-pyproject.toml-relax-uv_build-upper-bound.patch
@@ -0,0 +1,29 @@ 
+From 9315d44ea059d68629c5adb33df7a84fa8ea03c2 Mon Sep 17 00:00:00 2001
+From: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
+Date: Tue, 13 Oct 2026 17:53:26 +0000
+Subject: [PATCH] Allow uv-build 0.13.0
+
+Upstream-Status: Backport [https://github.com/pyca/cryptography/commit/1e0ced8ad61d3c84215fd749abb183e87b58caea]
+
+Note: The upstream change also updates .github/requirements/build-requirements.{in,txt},
+which only exist in the git repository. The PyPI sdist that this recipe builds
+from contains just pyproject.toml, so only that file is patched here.
+
+Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
+---
+ pyproject.toml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index 0b10dcc..ee03759 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ["uv_build>=0.7.19,<0.13.0"]
++requires = ["uv_build>=0.7.19,<0.14.0"]
+ build-backend = "uv_build"
+ 
+ [project]
+-- 
+2.40.0