INNER CODE UNIT · Python
test
labsai/EDDI · scripts/bump-version.py:170
test = self.root / CHART_TEST
if test.is_file() and not EXPECTED_CHART_CONSTANT.search(read(test)):
raise BumpError(f"{CHART_TEST} no longer declares EXPECTED_CHART_VERSION = \"...\"")
# ── edits ────────────────────────────────────────────────────────────────
def _rewrite(self, path: Path, text: str) -> None:
if text != read(path):
write(path, text)
rel = path.relative_to(self.root).as_posix()
if rel not in self.changed:
self.changed.append(rel)
def set_pom(self, version: str) -> None:
path = self.root / POM
text = read(path)
m = POM_VERSION.search(text)
# Only the FIRST <version> — the project's own. Every later one is a
# dependency or plugin, and ci.yml reads the version with the same rule;