mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 19:02:09 +00:00
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>
21 lines
474 B
Bash
Executable File
21 lines
474 B
Bash
Executable File
#!/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
|