Skip to content

Commit 7c14a31

Browse files
habuchinclaude
andauthored
Fix ModuleNotFoundError in PyPI publish workflow (#433)
## Problem The v4.1.6 PyPI publish workflow is failing with `ModuleNotFoundError: No module named 'SuperClaude'`. **Failed workflow runs:** - 5 consecutive failures since v4.1.6 release **Root cause:** v4.1.6 partially fixed the module import but missed updating variable references: - ✅ Changed `import SuperClaude` → `import superclaude` - ❌ Left `SuperClaude.__version__` unchanged (should be `superclaude.__version__`) ## Changes Fixed 2 remaining incorrect module references: 1. **Line 125** (deployment summary step): - `from SuperClaude import __version__` → `from superclaude import __version__` 2. **Line 164** (test installation step): - `SuperClaude.__version__` → `superclaude.__version__` ## Context - **Package name** (PyPI): `SuperClaude` (used for `pip install SuperClaude`) - **Module name** (Python): `superclaude` (used for `import superclaude`) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <[email protected]>
1 parent 4f55fcf commit 7c14a31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
echo "|----------|-------|" >> $GITHUB_STEP_SUMMARY
123123
echo "| Target | ${{ github.event_name == 'release' && 'PyPI (Production)' || github.event.inputs.target || 'TestPyPI' }} |" >> $GITHUB_STEP_SUMMARY
124124
echo "| Trigger | ${{ github.event_name }} |" >> $GITHUB_STEP_SUMMARY
125-
echo "| Version | $(python -c 'from SuperClaude import __version__; print(__version__)') |" >> $GITHUB_STEP_SUMMARY
125+
echo "| Version | $(python -c 'from superclaude import __version__; print(__version__)') |" >> $GITHUB_STEP_SUMMARY
126126
echo "| Commit | ${{ github.sha }} |" >> $GITHUB_STEP_SUMMARY
127127
echo "" >> $GITHUB_STEP_SUMMARY
128128
@@ -161,8 +161,8 @@ jobs:
161161
# Test basic import
162162
python -c "
163163
import superclaude
164-
print(f'✅ Successfully imported SuperClaude v{SuperClaude.__version__}')
165-
164+
print(f'✅ Successfully imported SuperClaude v{superclaude.__version__}')
165+
166166
# Test CLI entry point
167167
import subprocess
168168
result = subprocess.run(['SuperClaude', '--version'], capture_output=True, text=True)

0 commit comments

Comments
 (0)