File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments