torchcell.knowledge_graphs.kg_manifest.checkout_package_version
- checkout_package_version(repo_root: Path) tuple[str, str | None][source]
(torchcell.__version__, tag)of the checkout atrepo_root.The version is read from the checkout’s
torchcell/__version__.py; the tag isgit describe --tags --exact-match HEADand None when HEAD is untagged, which is what a build between two package releases records.