6 Commits

Author SHA1 Message Date
habuchin
7c14a31bc3
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 <noreply@anthropic.com>
2025-10-15 18:32:27 +05:30
Mithun Gowda B
f973dc9ba7
Update publish-pypi.yml
Signed-off-by: Mithun Gowda B <mithungowda.b7411@gmail.com>
2025-10-14 15:01:36 +05:30
Mithun Gowda B
385c96c9d4
Update publish-pypi.yml
Signed-off-by: Mithun Gowda B <mithungowda.b7411@gmail.com>
2025-10-14 14:57:45 +05:30
Mithun Gowda B
fd1e5eda3f
Update publish-pypi.yml
Signed-off-by: Mithun Gowda B <mithungowda.b7411@gmail.com>
2025-10-14 14:54:58 +05:30
markm-io
82b92a1ca1 fix: Add missing toml dependency to prevent release version skipping
- Add toml package to build dependencies in publish-pypi.yml
- Prevents ModuleNotFoundError during version verification
- Fixes root cause of v4.0.8 version skipping issue
- Ensures reliable PyPI release workflow execution
2025-09-05 16:02:59 -05:00
NomenAK
e8afb94163 Add comprehensive PyPI publishing infrastructure
## Version Management & Consistency
- Update to version 4.0.0b1 (proper beta versioning for PyPI)
- Add __version__ attribute to SuperClaude/__init__.py
- Ensure version consistency across pyproject.toml, __main__.py, setup/__init__.py

## Enhanced Package Configuration
- Improve pyproject.toml with comprehensive PyPI classifiers
- Add proper license specification and enhanced metadata
- Configure package discovery with inclusion/exclusion patterns
- Add development and test dependencies

## Publishing Scripts & Tools
- scripts/build_and_upload.py: Advanced Python script for building and uploading
- scripts/publish.sh: User-friendly shell wrapper for common operations
- scripts/validate_pypi_ready.py: Comprehensive validation and readiness checker
- All scripts executable with proper error handling and validation

## GitHub Actions Automation
- .github/workflows/publish-pypi.yml: Complete CI/CD pipeline
- Automatic publishing on GitHub releases
- Manual workflow dispatch for TestPyPI uploads
- Package validation and installation testing

## Documentation & Security
- PUBLISHING.md: Comprehensive PyPI publishing guide
- scripts/README.md: Detailed script usage documentation
- .env.example: Environment variable template
- Secure token handling with both .pypirc and environment variables

## Features
 Version consistency validation across all files
 Comprehensive PyPI metadata and classifiers
 Multi-environment publishing (TestPyPI + PyPI)
 Automated GitHub Actions workflow
 Security best practices for API token handling
 Complete documentation and troubleshooting guides
 Enterprise-grade validation and error handling

The SuperClaude Framework is now fully prepared for PyPI publication
with professional-grade automation, validation, and documentation.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-15 15:15:51 +02:00