Skip to content

Conversation

@vidplace7
Copy link
Contributor

📦 Package Details

Maintainer: @BKPepe, @ja-pa, @jefferyto, @Yang-Wei-Ting

Description:
When setuptools-scm was updated to 9.x in #27815 -- urllib3 builds broke!
This has already been fixed upstream by increasing the upper-bounds of setuptools-scm to <10. Backport this fix in a patch until a new urllib3 tag is released.


🧪 Run Testing Details

  • OpenWrt Version: SNAPSHOT
  • OpenWrt Target/Subtarget: mediatek/filogic
  • OpenWrt Device: OpenWRT One

✅ Formalities

  • I have reviewed the CONTRIBUTING.md file for detailed contributing guidelines.

If your PR contains a patch:

Comment on lines +1 to +24
--- 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]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having this patch backported from https://patch-diff.githubusercontent.com/raw/urllib3/urllib3/pull/3682.patch would be much better, so it includes patch header and it helps to know if the patch was submitted to upstream or it was accepted already.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This patch was adapted from 3682.patch but I had to modify it (so not exactly the same) as the minimum hatchling version has been bumped in urllib3 upstream.

I'll re-add the header and make note of this 👍

- Fix builds for python-urllib3 with setuptools-scm
- Patch sourced from upstream (un-released/main branch)

Signed-off-by: Austin Lane <[email protected]>
@BKPepe BKPepe merged commit 12d23c8 into openwrt:master Nov 26, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants