git: a930dbb86687 - main - net/py-urllib3: allow building with devel/py-setuptools-scm 9

From: Charlie Li <vishwin_at_FreeBSD.org>
Date: Sun, 19 Oct 2025 05:58:05 UTC
The branch main has been updated by vishwin:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a930dbb866870ef9787712d05289c40b2f2c30c6

commit a930dbb866870ef9787712d05289c40b2f2c30c6
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2025-10-19 05:55:50 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2025-10-19 05:55:50 +0000

    net/py-urllib3: allow building with devel/py-setuptools-scm 9
    
    Adjust upper bound to currently (as of this commit) nonexistent 10.
    
    https://github.com/urllib3/urllib3/pull/3682
    
    Reported by: John Hein
    PR: 290354
---
 net/py-urllib3/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/net/py-urllib3/Makefile b/net/py-urllib3/Makefile
index 9fedb9a73a50..e7a67742b218 100644
--- a/net/py-urllib3/Makefile
+++ b/net/py-urllib3/Makefile
@@ -16,7 +16,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatch-vcs>=0.4.0<0.6.0:devel/py-hatch-vcs@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}hatchling>=1.6.0<2:devel/py-hatchling@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}setuptools-scm>=8<9:devel/py-setuptools-scm@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}setuptools-scm>=8<10:devel/py-setuptools-scm@${PY_FLAVOR}
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}brotli>=1.0.9:archivers/py-brotli@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}h2>=4<5:www/py-h2@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}httpx>=0.28.1:www/py-httpx@${PY_FLAVOR} \
@@ -50,4 +50,8 @@ H2_RUN_DEPENDS=		${PYTHON_PKGNAMEPREFIX}h2>=4<5:www/py-h2@${PY_FLAVOR}
 SOCKS_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pysocks>=1.5.6<2.0:net/py-pysocks@${PY_FLAVOR}
 ZSTD_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}zstandard>=0.18.0:archivers/py-zstandard@${PY_FLAVOR}
 
+post-patch:
+	# https://github.com/urllib3/urllib3/pull/3682
+	@${REINPLACE_CMD} -e 's|setuptools-scm>=8,<9|setuptools-scm>=8,<10|' ${WRKSRC}/pyproject.toml
+
 .include <bsd.port.mk>