mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-01-08 06:13:58 -05:00
chore: use tfhe-backward-compat-data version from Cargo.toml
This commit is contained in:
2
Makefile
2
Makefile
@@ -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
|
||||
|
||||
13
scripts/backward_compat_data_version.py
Executable file
13
scripts/backward_compat_data_version.py
Executable 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)
|
||||
Reference in New Issue
Block a user