-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pipx): add support for specifying package extras (jdx#2510)
* feat(pipx): add support for specifying extras * chore: fix linting erros * tests: add e2e tests for pipx with extras
- Loading branch information
1 parent
4be14b3
commit 35eb1ad
Showing
2 changed files
with
43 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
require_cmd python3 | ||
|
||
# Create a system pipx that always fail and push it to the front of PATH | ||
cat >"$HOME/bin/pipx" <<'EOF' | ||
#!/usr/bin/env bash | ||
echo "CALL TO SYSTEM pipx! args: $*" >&2 | ||
exit 1 | ||
EOF | ||
chmod +x "$HOME"/bin/pipx | ||
export PATH="$HOME/bin:$PATH" | ||
|
||
# Just to be sure... | ||
assert_fail "pipx" | ||
|
||
# Use precompiled python | ||
export MISE_PYTHON_COMPILE=0 | ||
|
||
# Set up a 2-step installation: [email protected] > pipx:[email protected] | ||
cat >.mise.toml <<EOF | ||
[tools] | ||
pipx = "1.5.0" | ||
"pipx:harlequin" = {version = "1.24.0", extras = "s3"} | ||
EOF | ||
|
||
# Install the tools | ||
mise install | ||
|
||
assert_contains "mise x -- harlequin --version" "1.24.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters