SuperClaude/setup/__init__.py

21 lines
468 B
Python
Raw Normal View History

2025-08-14 08:56:04 +05:30
"""
SuperClaude Installation Suite
Pure Python installation system for SuperClaude framework
"""
from pathlib import Path
🔧 Fix critical setup process issues and improve reliability Major fixes for installation system robustness and version consistency: **Critical Version Synchronization:** - Update VERSION file from 4.0.0b1 to 4.0.0 for stable release - Fix setup/__init__.py to read version from VERSION file dynamically - Synchronize SuperClaude/__main__.py version reference to 4.0.0 - Establish single source of truth for version management **NPM Package Naming Resolution:** - Rename npm package from 'superclaude' to '@superclaude-org/superclaude' - Resolve naming collision with unrelated GitHub workflow package - Update package description for clarity and accurate branding - Enable proper npm organization scoping **Setup Process Reliability:** - Fix backup system double extension bug in installer.py - Improve component discovery error handling with structured logging - Replace deprecated pkg_resources with modern importlib.resources - Add comprehensive error handling to installation workflows - Convert print statements to proper logging throughout codebase **Error Handling & Logging:** - Add logger integration to ComponentRegistry and Installer classes - Enhance exception handling for component instantiation failures - Improve backup creation error handling with rollback capability - Standardize error reporting across installation system **Import System Modernization:** - Replace deprecated pkg_resources with importlib.resources (Python 3.9+) - Add robust fallback chain for Python 3.8+ compatibility - Improve module discovery reliability across different environments These changes significantly improve installation success rates and eliminate major pain points preventing successful SuperClaude deployment. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-17 00:30:02 +02:00
try:
__version__ = (Path(__file__).parent.parent / "VERSION").read_text().strip()
except Exception:
__version__ = "4.0.7" # Fallback
🔧 Fix critical setup process issues and improve reliability Major fixes for installation system robustness and version consistency: **Critical Version Synchronization:** - Update VERSION file from 4.0.0b1 to 4.0.0 for stable release - Fix setup/__init__.py to read version from VERSION file dynamically - Synchronize SuperClaude/__main__.py version reference to 4.0.0 - Establish single source of truth for version management **NPM Package Naming Resolution:** - Rename npm package from 'superclaude' to '@superclaude-org/superclaude' - Resolve naming collision with unrelated GitHub workflow package - Update package description for clarity and accurate branding - Enable proper npm organization scoping **Setup Process Reliability:** - Fix backup system double extension bug in installer.py - Improve component discovery error handling with structured logging - Replace deprecated pkg_resources with modern importlib.resources - Add comprehensive error handling to installation workflows - Convert print statements to proper logging throughout codebase **Error Handling & Logging:** - Add logger integration to ComponentRegistry and Installer classes - Enhance exception handling for component instantiation failures - Improve backup creation error handling with rollback capability - Standardize error reporting across installation system **Import System Modernization:** - Replace deprecated pkg_resources with importlib.resources (Python 3.9+) - Add robust fallback chain for Python 3.8+ compatibility - Improve module discovery reliability across different environments These changes significantly improve installation success rates and eliminate major pain points preventing successful SuperClaude deployment. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-17 00:30:02 +02:00
__author__ = "NomenAK"
2025-08-14 08:56:04 +05:30
# Core paths
SETUP_DIR = Path(__file__).parent
PROJECT_ROOT = SETUP_DIR.parent
DATA_DIR = SETUP_DIR / "data"
2025-08-14 08:56:04 +05:30
# Installation target
DEFAULT_INSTALL_DIR = Path.home() / ".claude"