chore: use tfhe-backward-compat-data version from Cargo.toml

This commit is contained in:
Mayeul@Zama
2025-02-10 14:37:58 +01:00
committed by mayeul-zama
parent 2e1e743bcc
commit c461273649
2 changed files with 14 additions and 1 deletions

View File

@@ -20,7 +20,7 @@ BENCH_OP_FLAVOR?=DEFAULT
BENCH_TYPE?=latency
NODE_VERSION=22.6
BACKWARD_COMPAT_DATA_URL=https://github.com/zama-ai/tfhe-backward-compat-data.git
BACKWARD_COMPAT_DATA_BRANCH?=v0.5
BACKWARD_COMPAT_DATA_BRANCH?=$(shell ./scripts/backward_compat_data_version.py)
BACKWARD_COMPAT_DATA_PROJECT=tfhe-backward-compat-data
BACKWARD_COMPAT_DATA_DIR=$(BACKWARD_COMPAT_DATA_PROJECT)
TFHE_SPEC:=tfhe

View File

@@ -0,0 +1,13 @@
#!/usr/bin/python3
import tomllib
fname = "tests/Cargo.toml"
with open(fname, "rb") as f:
data = tomllib.load(f)
dev_dependencies = data.get("dev-dependencies")
branch_name = dev_dependencies["tfhe-backward-compat-data"].get("branch")
print(branch_name)