Skip to content

Commit 0d49d13

Browse files
committed
Add uv sync call to update cli/glue script
1 parent 82e374f commit 0d49d13

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cookiecutter/update_pulp_cli.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
import json
1111
import logging
12+
import subprocess
1213
import urllib.request
1314

1415
import tomlkit
@@ -119,6 +120,9 @@ def main() -> None:
119120

120121
with open("pyproject.toml", "w") as fp:
121122
tomlkit.dump(pyproject_toml, fp)
123+
ret = subprocess.call(["uv", "sync"])
124+
if ret != 0:
125+
raise RuntimeError("uv sync failed.")
122126

123127

124128
if __name__ == "__main__":

0 commit comments

Comments
 (0)