python-setuptools-scm: bump to 10.0.1

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 <noreply@anthropic.com>
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This commit is contained in:
Alexandru Ardelean
2026-03-23 18:34:53 +00:00
committed by Alexandru Ardelean
parent 89786f5c35
commit 24cd935ac8
2 changed files with 24 additions and 3 deletions

View 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

View File

@@ -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