Skip to content

Commit 9e23d99

Browse files
committed
merge: pull in fixed workflow from main
2 parents 0088068 + 53b8ee8 commit 9e23d99

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/sdk-publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ jobs:
4949
- name: Extract version from __init__.py
5050
id: get_version
5151
run: |
52-
# Extract version from source
53-
version=$(python -c "exec(open('src/honeyhive/__init__.py').read()); print(__version__)")
52+
# Extract version from source using sed (avoids import issues)
53+
version=$(sed -n 's/^__version__[[:space:]]*=[[:space:]]*"\([^"]*\)".*/\1/p' src/honeyhive/__init__.py)
5454
echo "version=$version" >> $GITHUB_OUTPUT
5555
echo "📦 Detected version: $version"
5656
57-
# Validate version format (basic check)
58-
if ! echo "$version" | grep -E '^[0-9]+\.[0-9]+\.[0-9]+(rc[0-9]+|alpha[0-9]+|beta[0-9]+)?$'; then
57+
# Validate version format
58+
if ! echo "$version" | grep -E '^[0-9]+\.[0-9]+\.[0-9]+(-rc[0-9]+|rc[0-9]+|alpha[0-9]+|beta[0-9]+)?$'; then
5959
echo "❌ Invalid version format: $version"
60-
echo "Expected format: X.Y.Z or X.Y.Zrc# or X.Y.Zalpha# or X.Y.Zbeta#"
60+
echo "Expected format: X.Y.Z or X.Y.Z-rc# or X.Y.Zrc#"
6161
exit 1
6262
fi
6363

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- Enables publishing release candidates from any branch without merging to main
88
- Supports testing RC versions (e.g., 1.0.0-rc3) before final release
99
- Workflow validates version, checks PyPI for duplicates, and creates GitHub releases
10+
- Fixed version extraction to use sed instead of exec() to avoid import errors
1011
- **📚 Documentation: AWS Strands Integration Updates**
1112
- Updated model access documentation to reflect current AWS Bedrock policies (automatic access, no manual request)
1213
- Replaced deprecated Claude 3 model IDs with current Claude 4.5 series

docs/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Current Version Highlights
2323
* **RC Testing**: Can now publish release candidates (e.g., 1.0.0-rc3) from any branch
2424
* **Pre-Merge Testing**: Enables user testing of RCs before merging to main
2525
* **Automated**: Still performs all validation, integrity checks, and creates GitHub releases
26+
* **Fixed**: Version extraction now uses sed to avoid Python import errors
2627

2728
**📚 UPDATED: AWS Strands Documentation with Current Model IDs (Nov 6, 2025)**
2829

0 commit comments

Comments
 (0)