python-urllib3: fix builds with setuptools-scm 9.x
authorAustin Lane <[email protected]>
Tue, 25 Nov 2025 19:45:54 +0000 (14:45 -0500)
committerJosef Schlehofer <[email protected]>
Wed, 26 Nov 2025 10:22:22 +0000 (11:22 +0100)
- Fix builds for python-urllib3 with setuptools-scm
- Patch sourced from upstream (un-released/main branch)

Signed-off-by: Austin Lane <[email protected]>
lang/python/python-urllib3/Makefile
lang/python/python-urllib3/patches/001-setuptools-scm-upper-limit.patch [new file with mode: 0644]

index 7c95cc5f125ab55c93237592b5ba25307d4e2941..9595ae6c1d91bbd34b47d8f6edeee76c3ef56150 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-urllib3
 PKG_VERSION:=2.5.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_MAINTAINER:=Josef Schlehofer <[email protected]>
 PKG_LICENSE:=MIT
diff --git a/lang/python/python-urllib3/patches/001-setuptools-scm-upper-limit.patch b/lang/python/python-urllib3/patches/001-setuptools-scm-upper-limit.patch
new file mode 100644 (file)
index 0000000..d8dd737
--- /dev/null
@@ -0,0 +1,24 @@
+From ea61320386d57d5654307fb19314c1bb17ceb0e8 Mon Sep 17 00:00:00 2001
+From: Trevor Gamblin <[email protected]>
+Date: Mon, 22 Sep 2025 10:37:58 -0400
+Subject: [PATCH] pyproject.toml: change setuptools-scm upper limit
+
+setuptools-scm version 9.2.0 is now available, so change the upper limit
+specified in dependencies.
+
+Signed-off-by: Trevor Gamblin <[email protected]>
+
+Backport to v2.5.0 for OpenWrt
+
+Signed-off-by: Austin Lane <[email protected]>
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,7 +1,7 @@
+ # This file is protected via CODEOWNERS
+ [build-system]
+-requires = ["hatchling>=1.6.0,<2", "hatch-vcs>=0.4.0,<0.6.0", "setuptools-scm>=8,<9"]
++requires = ["hatchling>=1.6.0,<2", "hatch-vcs>=0.4.0,<0.6.0", "setuptools-scm>=8,<10"]
+ build-backend = "hatchling.build"
+ [project]