Minor updates to scripts (#1351)

This commit is contained in:
Srikanth Chekuri
2022-09-23 12:48:37 +05:30
committed by GitHub
parent 9a2285a42b
commit 44da384853
3 changed files with 6 additions and 5 deletions

View File

@ -282,7 +282,7 @@ def find_targets_unordered(rootpath):
continue
if any(
(subdir / marker).exists()
for marker in ("pyproject.toml")
for marker in ("pyproject.toml",)
):
yield subdir
else:
@ -647,7 +647,7 @@ def update_dependencies(targets, version, packages):
targets,
"pyproject.toml",
fr"({package_name}.*)==(.*)",
r"\1== " + version,
r"\1== " + version + '",',
)