Version drift: __init__.py hardcodes 0.18.0 but pyproject.toml declares 0.20.0 #61
Labels
No labels
architecture
backlog
enhancement
module:documents
module:hardware
module:manage
module:pipeline
module:voice
priority:backlog
priority:high
priority:medium
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Circuit-Forge/circuitforge-core#61
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
circuitforge_core/__init__.pyhardcodes__version__ = "0.18.0"butpyproject.tomldeclaresversion = "0.20.0".This means:
pip show circuitforge-core→0.20.0(reads pyproject)circuitforge_core.__version__→0.18.0(reads hardcoded string)circuitforge_core.__version__will be wrongFix
Switch to dynamic version resolution via
importlib.metadata:This is a single source of truth — pyproject.toml owns the version,
__version__always matches what pip installed.Notes
PackageNotFoundErrorfallback handles running directly from a git clone without editable installFixed in
circuitforge_core/__init__.py— replaced hardcoded__version__ = "0.18.0"withimportlib.metadata.version("circuitforge-core")(fallback to"dev"when not installed). Re-ranpip install -e .to refresh egg-info; now reads0.21.0correctly.