fix: Add missing toml dependency to prevent release version skipping (#340)

---
  Description

Fix missing toml dependency in PyPI release workflow that was causing
version releases to be skipped. This addresses the documented
v4.0.8/v4.0.9 version
confusion where v4.0.8 was prepared but never actually released due to
workflow failure.

Root Cause: The publish-pypi.yml workflow imports toml for version
verification but doesn't install the package, causing
ModuleNotFoundError and release
  failures.

  Solution: Added toml to build dependencies installation step.

  Type of Change

  - Bug fix in context files
  - New feature (agent, command, mode)
  - Documentation improvement
  - Installation system enhancement

  Testing

  - Manual testing with Claude Code
  - Context file validation passes
  - Examples validated in Claude Code conversations

  Validation Results:
-  Verified toml is imported and used in version verification script
(line 62)
  -  Confirmed toml is standard Python package available via pip
  -  Change is minimal (1 line) and follows existing patterns
  -  No breaking changes to workflow functionality
  -  Workflow will now have all required dependencies before execution

  Checklist

  - Files follow SuperClaude conventions
  - Self-review completed
  - Documentation updated
  - No breaking changes to existing context

  Additional Context

  Problem Impact:
- Release workflow fails with ModuleNotFoundError: No module named
'toml'
  - Causes versions to be skipped (v4.0.8 was never released)
  - Creates confusion in version sequencing and changelogs

  Files Changed:
  - .github/workflows/publish-pypi.yml (1 insertion, 1 deletion)

  Change Details:
  - python -m pip install build twine
  + python -m pip install build twine toml

  Benefits:
  - Ensures reliable PyPI release workflow execution
  - Prevents future version skipping issues
  - Improves dependency management explicitness
  - Zero breaking changes - purely additive fix

This fix ensures the SuperClaude Framework release process is reliable
and consistent, preventing the workflow failures that caused version
confusion.

  ---
This commit is contained in:
Mithun Gowda B
2025-09-06 07:49:09 +05:30
committed by GitHub

View File

@@ -45,7 +45,7 @@ jobs:
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
python -m pip install build twine
python -m pip install build twine toml
- name: Verify package structure
run: |