python-setuptools-scm: bump to 10.0.1
authorAlexandru Ardelean <redacted>
Mon, 23 Mar 2026 18:34:53 +0000 (18:34 +0000)
committerAlexandru Ardelean <redacted>
Tue, 24 Mar 2026 04:24:12 +0000 (06:24 +0200)
v10.0.0 is a major release with these key changes:
- Drop Python 3.8 and 3.9 support; minimum is now Python 3.10
- Depend on vcs-versioning for core version inference logic, allowing
  other build backends to reuse it without a setuptools dependency
- Version files (write_to, version_file) are now written to the build
  directory during build_py instead of the source tree during version
  inference, enabling builds from read-only source directories

v10.0.1 fixes the release pipeline tooling only (no functional changes).

Full release notes:
https://github.com/pypa/setuptools-scm/releases/tag/setuptools-scm-v10.0.0

Co-Authored-By: Claude Sonnet 4.6 <redacted>
Signed-off-by: Alexandru Ardelean <redacted>
lang/python/python-setuptools-scm/Makefile
lang/python/python-setuptools-scm/test.sh [new file with mode: 0755]

index 9804c284043ac851d2093afa83ea2df3f869e20b..44be8a9107f5281384697ee7d1ad9a028f7ac29c 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-setuptools-scm
-PKG_VERSION:=9.2.2
+PKG_VERSION:=10.0.1
 PKG_RELEASE:=1
 
 PYPI_NAME:=setuptools-scm
 PYPI_SOURCE_NAME:=setuptools_scm
-PKG_HASH:=1c674ab4665686a0887d7e24c03ab25f24201c213e82ea689d2f3e169ef7ef57
+PKG_HASH:=90dd62d5c06ed3436bd2504331a8e3ccb6e3c3aeda23d257fc2c0b83a053b201
 
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
@@ -27,7 +27,8 @@ HOST_BUILD_DEPENDS:= \
        python-installer/host \
        python-wheel/host \
        python-packaging/host \
-       python-typing-extensions/host
+       python-typing-extensions/host \
+       python-vcs-versioning/host
 
 include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
diff --git a/lang/python/python-setuptools-scm/test.sh b/lang/python/python-setuptools-scm/test.sh
new file mode 100755 (executable)
index 0000000..0bce224
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+[ "$1" = "python3-setuptools-scm" ] || exit 0
+
+python3 - << EOF
+import sys
+import setuptools_scm
+
+if setuptools_scm.__version__ != "$2":
+    print("Wrong version: " + setuptools_scm.__version__)
+    sys.exit(1)
+
+# Test get_version() via pretend version env var (no git repo needed)
+import os
+os.environ["SETUPTOOLS_SCM_PRETEND_VERSION"] = "1.2.3"
+version = setuptools_scm.get_version()
+assert version == "1.2.3", f"Expected 1.2.3, got {version}"
+
+sys.exit(0)
+EOF
git clone https://git.99rst.org/PROJECT