Skip to content

Commit

Permalink
build: fix update duty
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Dec 20, 2023
1 parent 3ac4165 commit 5ae2e30
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions duties.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ def clean(ctx):
def update(ctx, *args: str):
"""Update all environment packages using pip directly."""
args_str = " " + " ".join(args) if args else ""
requirements = ctx.run(UPDATE_CMD + args_str)
requirements = "\n".join(requirements.split("\n")[1:])
packages = [x["name"] for x in json.loads(requirements)]
reqs = ctx.run(UPDATE_CMD + args_str)
packages = [x["name"] for x in json.loads(reqs)]
if packages:
pkgs = " ".join(packages)
print(f"Packages to update: {pkgs}")
Expand Down

0 comments on commit 5ae2e30

Please sign in to comment.