Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/pyodide-kernel/py/piplite/piplite/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ async def get_action_kwargs(argv: list[str]) -> tuple[str | None, dict[str, Any]

if action == "install":
kwargs["requirements"] = args.packages
kwargs["constraints"] = []
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is fine, or could be a kwargs.setdefault("constraints", []).append() below.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx for the review, I find it simpler and more explicit as it is, but let me know if you prefer it the other way, no pb.


if args.pre:
kwargs["pre"] = True
Expand Down