Skip to content

Commit fc90a9d

Browse files
authored
Automates version check (#11309)
### Related https://linear.app/rerun/issue/RR-1120/replace-most-of-our-release-checklist-with-kittest ### What - Removes the manual version check from the release checklist. - Extends current unit test to check if the version in Cargo.toml matches the SDK.
1 parent 5c8022f commit fc90a9d

File tree

2 files changed

+7
-50
lines changed

2 files changed

+7
-50
lines changed

rerun_py/tests/unit/test_version.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
from __future__ import annotations
22

3+
from pathlib import Path
4+
35
import rerun as rr
46
import semver
7+
import tomli
58

69

710
def test_version() -> None:
11+
cargo_toml_path = Path(__file__).parent.parent.parent.parent / "Cargo.toml"
12+
cargo_toml = tomli.loads(cargo_toml_path.read_text())
13+
assert rr.__version__ == cargo_toml["workspace"]["package"]["version"]
14+
815
ver = semver.VersionInfo.parse(rr.__version__)
916

1017
assert len(rr.__version_info__) == 4

tests/python/release_checklist/check_version.py

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)