File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -78,12 +78,12 @@ jobs:
7878 if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
7979 VERSION="${{ github.event.inputs.version }}"
8080 else
81- # Auto-generate unique version using current commit count for the entire repo
82- # This ensures each commit gets a unique, incrementing version number
81+ # Auto-generate alpha version using commit count
82+ # Format: {major}.{minor}.{fix}.a{commit_count}
8383 TOTAL_COMMITS=$(git rev-list --count HEAD)
8484 CURRENT_VERSION=$(grep -o 'version = "[^"]*"' pyproject.toml | sed 's/version = "\(.*\)"/\1/')
85- BASE_VERSION=$(echo $CURRENT_VERSION | cut -d. -f1-2 )
86- VERSION="${BASE_VERSION}. ${TOTAL_COMMITS}"
85+ BASE_VERSION=$(echo $CURRENT_VERSION | cut -d'a' -f1)
86+ VERSION="${BASE_VERSION}a ${TOTAL_COMMITS}"
8787 fi
8888
8989 echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
Original file line number Diff line number Diff line change 11"""Version information for Klyne SDK."""
22
3- __version__ = "0.1.0 "
3+ __version__ = "0.1.0a99 "
Original file line number Diff line number Diff line change 11[project ]
22name = " klyne"
3- version = " 0.1.0 "
3+ version = " 0.1.0a99 "
44description = " Lightweight Python package analytics SDK"
55readme = " README.md"
66authors = [
You can’t perform that action at this time.
0 commit comments