Page MenuHomeFreeBSD

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

Authored by vishwin on Sep 3 2025, 7:43 PM.
Tags
None
Referenced Files
F141597286: D52368.diff
Wed, Jan 7, 8:47 PM
Unknown Object (File)
Wed, Jan 7, 2:51 AM
Unknown Object (File)
Tue, Jan 6, 9:47 PM
Unknown Object (File)
Tue, Jan 6, 5:13 PM
Unknown Object (File)
Tue, Jan 6, 2:27 PM
Unknown Object (File)
Mon, Jan 5, 9:26 PM
Unknown Object (File)
Wed, Dec 31, 6:16 AM
Unknown Object (File)
Wed, Dec 10, 5:47 PM

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 69705
Build 66588: 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/).

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

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