Skip to content

Commit 58106fa

Browse files
committed
ci: make sure that the pyproject has also the right version
Signed-off-by: Tristram Gräbener <tristram+git@tristramg.eu>
1 parent fe047c5 commit 58106fa

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

check_versions.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,21 @@
44

55
rust = tomllib.load(open("Cargo.toml", "rb"))
66
python = tomllib.load(open("python/Cargo.toml", "rb"))
7+
pyproject = tomllib.load(open("python/pyproject.toml", "rb"))
78
wasm = json.load(open("wasm/package.json", "rb"))
89

910
rust_version = rust["package"]["version"]
1011
python_version = python["package"]["version"]
12+
pyproject_version = pyproject["project"]["version"]
1113
wasm_version = wasm["version"]
12-
if rust_version == python_version == wasm_version:
14+
if rust_version == python_version == pyproject_version == wasm_version:
1315
print("all versions are the same")
1416
sys.exit(0)
1517
else:
1618
print(f"version mismatch\n"
1719
f" rust: {rust_version}\n"
1820
f" python: {python_version}\n"
21+
f" pyproject: {pyproject_version}\n"
1922
f" wasm: {wasm_version}\n")
2023

2124
sys.exit(1)

python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "liblrs_python"
3-
version = "0.2.6"
3+
version = "0.3.0"
44
requires-python = ">=3.12"
55
dependencies = ["pip>=25.2"]
66

0 commit comments

Comments
 (0)