Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for dynamic musl Python distributions on x86-64 Linux #12121

Merged
merged 8 commits into from
Mar 11, 2025
Merged
Show file tree
Hide file tree
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
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,36 @@ jobs:
eval "$(./uv generate-shell-completion bash)"
eval "$(./uvx --generate-shell-completion bash)"

smoke-test-linux-musl:
timeout-minutes: 10
needs: build-binary-linux-musl
name: "check system | alpine"
runs-on: ubuntu-latest
container: alpine:latest
steps:
- uses: actions/checkout@v4

- name: "Download binary"
uses: actions/download-artifact@v4
with:
name: uv-linux-musl-${{ github.sha }}

- name: "Prepare binary"
run: |
chmod +x ./uv
chmod +x ./uvx

- name: "Smoke test"
run: |
# Overwrite the 3.13.0 pin from the project, there are not functional
# musl distributions for it
./uv python pin 3.13
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could this potentially affect real-world users?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, but it'll just say "No Python download found for request" (as we do for non-musl distributions) instead of the special case "uv does not support musl downloads yet"

./uv venv -v
./uv pip install ruff -v
./uvx -v ruff --version
./uv pip install numpy -v
./uv run python -c "import numpy; print(numpy.__version__)"

smoke-test-macos:
timeout-minutes: 10
needs: build-binary-macos-x86_64
Expand Down
Loading
Loading