#!/usr/bin/env bash set -euo pipefail # update-version.sh # Update version in pyproject.toml (for release artifacts only) # Usage: update-version.sh if [[ $# -ne 1 ]]; then echo "Usage: $0 " >&2 exit 1 fi VERSION="$1" # Remove 'v' prefix for Python versioning PYTHON_VERSION=${VERSION#v} if [ -f "pyproject.toml" ]; then sed -i "s/version = \".*\"/version = \"$PYTHON_VERSION\"/" pyproject.toml echo "Updated pyproject.toml version to $PYTHON_VERSION (for release artifacts only)" else echo "Warning: pyproject.toml not found, skipping version update" fi