mirror of
https://github.com/astral-sh/uv
synced 2026-01-20 21:10:10 -05:00
Add PyPy finder (#5337)
## Summary This PR adds PyPy finder and adds PyPy to uv managed Python versions. ## Test Plan ```console $ cargo run -- python install ```
This commit is contained in:
21
.github/workflows/ci.yml
vendored
21
.github/workflows/ci.yml
vendored
@@ -579,10 +579,6 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "pypy3.9"
|
||||
|
||||
- name: "Download binary"
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
@@ -591,12 +587,12 @@ jobs:
|
||||
- name: "Prepare binary"
|
||||
run: chmod +x ./uv
|
||||
|
||||
- name: PyPy info
|
||||
run: which pypy
|
||||
- name: "Install PyPy"
|
||||
run: ./uv python install pypy3.9
|
||||
|
||||
- name: "Create a virtual environment"
|
||||
run: |
|
||||
./uv venv -p $(which pypy)
|
||||
./uv venv -p pypy3.9 --python-preference only-managed
|
||||
|
||||
- name: "Check for executables"
|
||||
run: |
|
||||
@@ -645,22 +641,17 @@ jobs:
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "pypy3.9"
|
||||
|
||||
- name: "Download binary"
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: uv-windows-${{ github.sha }}
|
||||
|
||||
- name: PyPy info
|
||||
run: Get-Command pypy
|
||||
- name: "Install PyPy"
|
||||
run: .\uv.exe python install pypy3.9
|
||||
|
||||
- name: "Create a virtual environment"
|
||||
run: |
|
||||
$pypy = (Get-Command pypy).source
|
||||
.\uv.exe venv -p $pypy
|
||||
.\uv.exe venv -p pypy3.9 --python-preference only-managed
|
||||
|
||||
- name: "Check for executables"
|
||||
shell: python
|
||||
|
||||
Reference in New Issue
Block a user