Page MenuHomeFreeBSD

devel/py-setuptools-scm: update to 9.2.0
Needs ReviewPublic

Authored by vishwin on Sep 3 2025, 7:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 8, 12:05 AM
Unknown Object (File)
Wed, Sep 24, 3:42 AM
Unknown Object (File)
Tue, Sep 23, 6:36 PM
Unknown Object (File)
Sat, Sep 20, 5:23 AM
Unknown Object (File)
Sep 15 2025, 12:13 AM
Unknown Object (File)
Sep 10 2025, 1:17 PM
Unknown Object (File)
Sep 7 2025, 6:45 AM
Unknown Object (File)
Sep 7 2025, 6:45 AM

Details

Reviewers
None
Group Reviewers
Python
Summary
Test Plan

exp-run as a precaution

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 66797
Build 63680: arc lint + arc unit

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/).