Skip to content

Commit

Permalink
Add PyPy finder (#5337)
Browse files Browse the repository at this point in the history
## Summary

This PR adds PyPy finder and adds PyPy to uv managed Python versions.

## Test Plan

```console
$ cargo run -- python install
```
  • Loading branch information
j178 committed Jul 23, 2024
1 parent 96b2434 commit 7ddf67a
Show file tree
Hide file tree
Showing 7 changed files with 2,948 additions and 23 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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: |
Expand Down Expand Up @@ -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
Expand Down
Loading

0 comments on commit 7ddf67a

Please sign in to comment.