Spaces:
Paused
Paused
Sync GitHub main 5fa71f509e927e7eccb7edca5c536797a13bca17 (part 3)
Browse filesFiles changed (2)
6 unmodified lines78910111213141535 unmodified lines515253545556576 unmodified linesUsage:>>> from src.version import BRAIN5D_VERSION, BRAIN5D_VERSION_DISPLAY>>> print(BRAIN5D_VERSION)0.6.0a5>>> print(BRAIN5D_VERSION_DISPLAY)0.6.0-alpha.5"""from __future__ import annotations35 unmodified linesif _pyproject_version is not None and _pkg_version_str != _pyproject_version:_pkg_version_str = _pyproject_versionexcept PackageNotFoundError:_pkg_version_str = _pyproject_version or "0.6.0a5"BRAIN5D_VERSION: str = _pkg_version_str"""PEP-440 compatible version string (e.g. '0.5.0a7')."""6 unmodified lines78910111213141535 unmodified lines515253545556576 unmodified linesUsage:>>> from src.version import BRAIN5D_VERSION, BRAIN5D_VERSION_DISPLAY>>> print(BRAIN5D_VERSION)0.6.0a6>>> print(BRAIN5D_VERSION_DISPLAY)0.6.0-alpha.6"""from __future__ import annotations35 unmodified linesif _pyproject_version is not None and _pkg_version_str != _pyproject_version:_pkg_version_str = _pyproject_versionexcept PackageNotFoundError:_pkg_version_str = _pyproject_version or "0.6.0a6"BRAIN5D_VERSION: str = _pkg_version_str"""PEP-440 compatible version string (e.g. '0.5.0a7')."""
21 unmodified lines222324252627282930313233343521 unmodified linesproject = tomllib.load(stream)["project"]current = _release("current.json")assert project["version"] == "0.6.0a5"assert current["version"] == "0.6.0-alpha.5"assert current["pep440"] == project["version"]assert current["status"] == "released"assert current.get("release_type") == "pre-release"assert current.get("target_tag") == "v0.6.0-alpha.5"assert current["parent"] == "v0.5.0-alpha.7"assert current["as_of"] == "2026-09-19"assert current["milestone_status"] in {"stage3_engineering_reached_scientific_maturity_separate","engineering_release_candidate_scientific_programme_active",21 unmodified lines222324252627282930313233343521 unmodified linesproject = tomllib.load(stream)["project"]current = _release("current.json")assert project["version"] == "0.6.0a6"assert current["version"] == "0.6.0-alpha.6"assert current["pep440"] == project["version"]assert current["status"] == "release_candidate"assert current.get("release_type") == "pre-release"assert current.get("target_tag") == "v0.6.0-alpha.6"assert current["parent"] == "v0.6.0-alpha.5"assert current["as_of"] == "2026-09-20"assert current["milestone_status"] in {"stage3_engineering_reached_scientific_maturity_separate","engineering_release_candidate_scientific_programme_active",
src/version.py+3-3
tests/test_release_registry.py+6-6