version handling in management script and update pyproject.toml

This commit is contained in:
Lloyd
2026-01-06 17:28:48 +00:00
parent 02bc44556b
commit 4c7e8e5a46
2 changed files with 10 additions and 11 deletions
+10 -9
View File
@@ -279,8 +279,15 @@ EOF
SCRIPT_DIR="$(dirname "$0")"
cd "$SCRIPT_DIR"
# Set version for setuptools-scm (since .git folder won't be copied)
export SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYMC_REPEATER="1.0.5-dev0"
# Calculate version from git for setuptools_scm
if [ -d .git ]; then
git fetch --tags 2>/dev/null || true
GIT_VERSION=$(python3 -m setuptools_scm 2>/dev/null || echo "1.0.5")
export SETUPTOOLS_SCM_PRETEND_VERSION="$GIT_VERSION"
echo "Installing version: $GIT_VERSION"
else
export SETUPTOOLS_SCM_PRETEND_VERSION="1.0.5"
fi
if pip install --break-system-packages --force-reinstall --no-cache-dir --ignore-installed .; then
echo ""
@@ -420,13 +427,7 @@ EOF
SCRIPT_DIR="$(dirname "$0")"
cd "$SCRIPT_DIR"
# Ensure we have the latest tags for version calculation
if [ -d .git ]; then
echo "Fetching latest tags for version info..."
git fetch --tags 2>/dev/null || true
fi
if pip install --break-system-packages --force-reinstall --no-cache-dir --no-build-isolation --ignore-installed .; then
if pip install --break-system-packages --force-reinstall --no-cache-dir --ignore-installed .; then
echo ""
echo "✓ Python package update completed successfully!"
else
-2
View File
@@ -75,8 +75,6 @@ profile = "black"
line_length = 100
[tool.setuptools_scm]
write_to = "repeater/_version.py"
version_scheme = "guess-next-dev"
local_scheme = "no-local-version"
fallback_version = "1.0.5"