Skip to content

Commit 393e2ec

Browse files
fix: Import version directly from _version module in release workflow
The version check was failing because it tried to import from the main __init__.py which imports cli.py, which in turn imports click. Since dependencies aren't installed at this point, the import fails. Changed to import directly from _version module which has no dependencies. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f9643d6 commit 393e2ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ jobs:
123123
- name: Verify version consistency
124124
run: |
125125
EXPECTED_VERSION="${{ needs.validate-tag.outputs.version }}"
126-
PACKAGE_VERSION=$(python -c "import sys; sys.path.insert(0, 'src'); from claude_setup import __version__; print(__version__)")
126+
PACKAGE_VERSION=$(python -c "import sys; sys.path.insert(0, 'src'); from claude_setup._version import __version__; print(__version__)")
127127
128128
echo "Expected version: $EXPECTED_VERSION"
129129
echo "Package version: $PACKAGE_VERSION"

0 commit comments

Comments
 (0)