updated the bundle remove auto o

This commit is contained in:
kai
2026-01-30 15:23:23 -05:00
parent 6cbdbe56ea
commit 3409e91322

View File

@@ -8,7 +8,22 @@ Students progressively build this package module by module.
Imports are optional - only available after completing each module.
"""
__version__ = "0.1.0"
from pathlib import Path as _Path
def _get_version() -> str:
"""Read version from pyproject.toml (single source of truth)."""
try:
pyproject_path = _Path(__file__).parent.parent / "pyproject.toml"
if pyproject_path.exists():
content = pyproject_path.read_text()
for line in content.splitlines():
if line.strip().startswith("version"):
return line.split("=")[1].strip().strip('"').strip("'")
except Exception:
pass
return "0.0.0-dev"
__version__ = _get_version()
# ============================================================================
# Progressive Imports - Available as students complete modules