Skip to content

Commit d77510a

Browse files
fix: bump version to 3.5.0 and add release workflow verification (#100)
Bumps version from 3.4.0 to 3.5.0 in pyproject.toml and __init__.py. Also adds version extraction from tag and post-publish PyPI verification to the release workflow to prevent future publish failures.
1 parent 656b302 commit d77510a

4 files changed

Lines changed: 42 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,19 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616

17+
- name: Extract version from tag
18+
id: version
19+
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
20+
21+
- name: Update version in source
22+
run: |
23+
VERSION=${{ steps.version.outputs.VERSION }}
24+
sed -i "s/^version = .*/version = \"${VERSION}\"/" pyproject.toml
25+
sed -i "s/^__version__ = .*/__version__ = \"${VERSION}\"/" axonflow/__init__.py
26+
echo "Updated version to ${VERSION}"
27+
grep version pyproject.toml | head -1
28+
grep __version__ axonflow/__init__.py
29+
1730
- name: Set up Python
1831
uses: actions/setup-python@v5
1932
with:
@@ -87,3 +100,29 @@ jobs:
87100
88101
See [CHANGELOG.md](https://github.com/getaxonflow/axonflow-sdk-python/blob/main/CHANGELOG.md) for full release details.
89102
generate_release_notes: false
103+
104+
verify-publish:
105+
needs: publish-pypi
106+
runs-on: ubuntu-latest
107+
steps:
108+
- name: Extract version from tag
109+
id: version
110+
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
111+
112+
- name: Wait for PyPI propagation
113+
run: sleep 30
114+
115+
- name: Verify package on PyPI
116+
run: |
117+
VERSION=${{ steps.version.outputs.VERSION }}
118+
for i in 1 2 3 4 5; do
119+
echo "Attempt $i: Checking PyPI for axonflow==${VERSION}..."
120+
if pip install --dry-run axonflow==${VERSION} 2>&1 | grep -q "Would install"; then
121+
echo "SUCCESS: axonflow ${VERSION} is available on PyPI"
122+
exit 0
123+
fi
124+
echo "Not yet available, waiting 30 seconds..."
125+
sleep 30
126+
done
127+
echo "FAILURE: axonflow ${VERSION} not found on PyPI after 5 attempts"
128+
exit 1

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to the AxonFlow Python SDK will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [3.5.0] - 2026-02-18
8+
## [3.5.0] - 2026-02-19
99

1010
### Added
1111

axonflow/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202
WorkflowStepInfo,
203203
)
204204

205-
__version__ = "3.4.0"
205+
__version__ = "3.5.0"
206206
__all__ = [
207207
# Main client
208208
"AxonFlow",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "axonflow"
7-
version = "3.4.0"
7+
version = "3.5.0"
88
description = "AxonFlow Python SDK - Enterprise AI Governance in 3 Lines of Code"
99
readme = "README.md"
1010
license = {text = "MIT"}

0 commit comments

Comments
 (0)