Skip to content

Commit 95caf10

Browse files
committed
build: implement update dependency versions in pyproject.toml
1 parent a50cc19 commit 95caf10

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/update_git_versions.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ def main() -> None:
4242
rf"\g<1>{version or ''}\g<3>",
4343
)
4444

45+
pyproject_files = list(Path("packages").rglob("pyproject.toml"))
46+
47+
for f in [Path("pyproject.toml"), *pyproject_files]:
48+
replace_in_file(
49+
f,
50+
re.compile(r'("robotcode-\S+==)([0-9]+\.[0-9]+\.[0-9]+.*)(")', re.MULTILINE),
51+
rf"\g<1>{version or ''}\g<3>",
52+
)
53+
4554

4655
if __name__ == "__main__":
4756
main()

0 commit comments

Comments
 (0)