MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / get_mz_version

Function get_mz_version

misc/python/materialize/ci_util/__init__.py:83–88  ·  view source on GitHub ↗

Get the current Materialize version from Cargo.toml.

(workspace: cargo.Workspace | None = None)

Source from the content-addressed store, hash-verified

81
82
83def get_mz_version(workspace: cargo.Workspace | None = None) -> VersionInfo:
84 """Get the current Materialize version from Cargo.toml."""
85
86 if not workspace:
87 workspace = cargo.Workspace(MZ_ROOT)
88 return VersionInfo.parse(workspace.crates["mz-environmentd"].version_string)

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected