aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorOnur Gündüz <ogunduz@gmail.com>2026-09-29 16:54:27 +0200
committerOnur Gündüz <ogunduz@gmail.com>2026-09-29 16:54:27 +0200
commit5a738121c04989e1bdcb728347f12e677adf3bd4 (patch)
treee47c1e732bacac41b5b1ace02a39687a58567c34 /scripts
parent5c51cd28a928c44232e625279691da17e55858de (diff)
downloadele-5a738121c04989e1bdcb728347f12e677adf3bd4.tar.gz
ele-5a738121c04989e1bdcb728347f12e677adf3bd4.zip
Rename crate and CLI to aif
Diffstat (limited to '')
-rw-r--r--scripts/release.py6
-rw-r--r--scripts/test_release.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/scripts/release.py b/scripts/release.py
index 512feab..e607c79 100644
--- a/scripts/release.py
+++ b/scripts/release.py
@@ -50,8 +50,8 @@ def set_version(version):
manifest = Path("Cargo.toml")
text = manifest.read_text()
package = tomllib.loads(text)["package"]
- if package["name"] != "aip_filter":
- raise ValueError("expected the aip_filter package")
+ if package["name"] != "aif":
+ raise ValueError("expected the aif package")
current = package["version"]
if version_tuple(current) > version_tuple(version):
raise ValueError(f"manifest version {current} exceeds the planned release {version}")
@@ -64,7 +64,7 @@ def set_version(version):
if count != 1:
raise ValueError("expected one explicit package version")
expected_lock = copy.deepcopy(tomllib.loads(Path("Cargo.lock").read_text()))
- packages = [p for p in expected_lock["package"] if p["name"] == "aip_filter" and "source" not in p]
+ packages = [p for p in expected_lock["package"] if p["name"] == "aif" and "source" not in p]
if len(packages) != 1 or packages[0]["version"] != current:
raise ValueError("manifest and lockfile versions must agree")
packages[0]["version"] = version
diff --git a/scripts/test_release.py b/scripts/test_release.py
index 1986ad5..b3f1deb 100644
--- a/scripts/test_release.py
+++ b/scripts/test_release.py
@@ -48,7 +48,7 @@ class RepositoryTests(unittest.TestCase):
release.run("git", "config", "commit.gpgsign", "false")
Path(".gitignore").write_text("target/\n")
Path("Cargo.toml").write_text(
- '[package]\nname = "aip_filter"\nversion = "0.1.0"\nedition = "2024"\n'
+ '[package]\nname = "aif"\nversion = "0.1.0"\nedition = "2024"\n'
)
Path("src").mkdir()
Path("src/lib.rs").write_text("pub fn example() {}\n")