Skip to content

Commit

Permalink
[v1.28.x-0.49bx] Fix eachdist.py patch release to not add extra space
Browse files Browse the repository at this point in the history
and make update-version-patch.sh executable
  • Loading branch information
aabmass committed Nov 15, 2024
1 parent 9676505 commit f48be9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Empty file modified .github/scripts/update-version-patch.sh
100644 → 100755
Empty file.
5 changes: 3 additions & 2 deletions scripts/eachdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,9 @@ def update_patch_dependencies(targets, version, prev_version, packages):
operators_pattern = "|".join(re.escape(op) for op in operators)

for pkg in packages:
search = rf"({basename(pkg)}[^,]*)(\s?({operators_pattern})\s?)(.*{prev_version})"
replace = r"\1\2 " + version
search = rf"({basename(pkg)}[^,]*?)(\s?({operators_pattern})\s?)(.*{prev_version})"
replace = r"\g<1>\g<2>" + version
print(f"{search=}\t{replace=}\t{pkg=}")
update_files(
targets,
"pyproject.toml",
Expand Down

0 comments on commit f48be9b

Please sign in to comment.