-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use upstream setup-uv with uv python
Signed-off-by: Bernát Gábor <[email protected]>
- Loading branch information
1 parent
3ce64d0
commit 7037df5
Showing
2 changed files
with
28 additions
and
28 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
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 |
---|---|---|
|
@@ -12,18 +12,17 @@ jobs: | |
permissions: | ||
id-token: write | ||
steps: | ||
- name: Setup python to build package | ||
uses: actions/setup-python@v5 | ||
- name: Install the latest version of uv | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
python-version: "3.12" | ||
- name: setup uv for tox | ||
uses: yezz123/setup-uv@v4 | ||
- name: Install build | ||
run: uv pip install build[uv] --system | ||
enable-cache: true | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Build package | ||
run: pyproject-build --installer uv --sdist --wheel . --outdir dist | ||
run: uv build --python 3.13 --python-preference only-managed --sdist --wheel . --out-dir dist | ||
- name: Publish to PyPI | ||
uses: pypa/[email protected] | ||
with: | ||
attestations: true |