Page MenuHomeFreeBSD

devel/py-setuptools-scm: update to 9.2.2
ClosedPublic

Authored by vishwin on Sep 3 2025, 7:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Mar 2, 1:15 AM
Unknown Object (File)
Thu, Feb 26, 4:17 AM
Unknown Object (File)
Mon, Feb 16, 4:11 PM
Unknown Object (File)
Sat, Feb 14, 2:23 AM
Unknown Object (File)
Wed, Feb 11, 7:17 PM
Unknown Object (File)
Jan 31 2026, 2:49 AM
Unknown Object (File)
Jan 31 2026, 2:48 AM
Unknown Object (File)
Jan 22 2026, 11:20 PM

Details

Summary
Test Plan

exp-run as a precaution

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

vishwin created this revision.

This update is working for me in local testing (using about 60 ports that depend on setuptools-scm).

This breaks for python3.9 and python3.10 at build time because of the following requirement in the setuptool-scm 9.2.0 pyproject.toml:

'tomli<=2.0.2; python_version < "3.11"'

The ports tree currently has tomli 2.2.1

The following patch removes this restriction and setuptools-scm builds and installs successfully for python3.9 and python3.10 and tomli 2.2.1, and it functions correctly (returns the correct version information), and a large number of dependent ports are building (although I did not run a full coverage local exp-run):

--- pyproject.toml.orig 2025-08-04 09:14:50 UTC
+++ pyproject.toml
@@ -4,7 +4,7 @@
 build-backend = "_own_version_helper:build_meta"
 requires = [
   "setuptools>=61",
-  'tomli<=2.0.2; python_version < "3.11"',
+  'tomli; python_version < "3.11"',
 ]
 backend-path = [
   ".",

The addition of that restriction upstream appears to be wrong and is in question:

https://github.com/pypa/setuptools-scm/issues/1090

devel/py-setuptools-scm/Makefile
6

Very minor nitpick: Why the extra characters in changing the dash to an underscore (/[-_.]+/ instead of just /-/)? There's no need to have this been a generic converter to handle many possible characters where PORTNAME is not known (like you might want in Mk/).

vishwin retitled this revision from devel/py-setuptools-scm: update to 9.2.0 to devel/py-setuptools-scm: update to 9.2.2.Jan 6 2026, 6:07 AM
vishwin edited the summary of this revision. (Show Details)

remove typing-extensions from RUN_DEPENDS, only needed for < 3.10

This revision was not accepted when it landed; it landed in state Needs Review.Thu, Feb 12, 10:37 AM
This revision was automatically updated to reflect the committed changes.