From 12d23c8e95cb1385e70d7250951a3e1dab89ea3d Mon Sep 17 00:00:00 2001 From: Austin Lane Date: Tue, 25 Nov 2025 14:45:54 -0500 Subject: [PATCH] python-urllib3: fix builds with setuptools-scm 9.x - Fix builds for python-urllib3 with setuptools-scm - Patch sourced from upstream (un-released/main branch) Signed-off-by: Austin Lane --- lang/python/python-urllib3/Makefile | 2 +- .../001-setuptools-scm-upper-limit.patch | 24 +++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 lang/python/python-urllib3/patches/001-setuptools-scm-upper-limit.patch diff --git a/lang/python/python-urllib3/Makefile b/lang/python/python-urllib3/Makefile index 7c95cc5f12..9595ae6c1d 100644 --- a/lang/python/python-urllib3/Makefile +++ b/lang/python/python-urllib3/Makefile @@ -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 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 index 0000000000..d8dd73701e --- /dev/null +++ b/lang/python/python-urllib3/patches/001-setuptools-scm-upper-limit.patch @@ -0,0 +1,24 @@ +From ea61320386d57d5654307fb19314c1bb17ceb0e8 Mon Sep 17 00:00:00 2001 +From: Trevor Gamblin +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 + +Backport to v2.5.0 for OpenWrt + +Signed-off-by: Austin Lane +--- 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] -- 2.30.2