FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Use upstream setup-uv with uv python by gaborbernat · Pull Request #305 · tox-dev/platformdirs · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .yml  (2) All 1 file type selected
Only manifest files
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
54 changes: 25 additions & 29 deletions .github/workflows/check.yml
This file contains hidden or 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
Expand Up @@ -33,25 +33,23 @@ jobs:
- macos-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: "pyproject.toml"
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup python hatch
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Add .local/bin to Windows PATH
if: runner.os == 'Windows'
shell: bash
run: echo "$USERPROFILE/.local/bin" >> $GITHUB_PATH
- name: install hatch
run: uv pip install --system --python 3.12 hatch
- name: Setup python for test ${{ matrix.py }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.py }}
allow-prereleases: true
- uses: actions/checkout@v4
with:
fetch-depth: 0
run: uv tool install --python-preference only-managed --python 3.13 hatch
- name: install Python
run: uv python install --python-preference only-managed ${{ matrix.py }}
- name: Pick environment to run
run: |
import codecs; import os
Expand Down Expand Up @@ -92,20 +90,17 @@ jobs:
steps:
- name: Let us have colors
run: echo "FORCE_COLOR=true" >> "$GITHUB_ENV"
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: "pyproject.toml"
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup python hatch
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: install hatch
run: uv pip install --system --python 3.12 hatch
- uses: actions/checkout@v4
with:
fetch-depth: 0
run: uv tool install --python-preference only-managed --python 3.13 hatch
- name: Setup coverage tool
run: |
hatch -v env create coverage
Expand Down Expand Up @@ -139,20 +134,21 @@ jobs:
- { "name": "docs", "target": "build" }
- { "name": "readme", "target": "run" }
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: "pyproject.toml"
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup python hatch
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Add .local/bin to Windows PATH
if: runner.os == 'Windows'
shell: bash
run: echo "$USERPROFILE/.local/bin" >> $GITHUB_PATH
- name: install hatch
run: uv pip install --system --python 3.12 hatch
- uses: actions/checkout@v4
with:
fetch-depth: 0
run: uv tool install --python-preference only-managed --python 3.13 hatch
- name: Setup ${{ matrix.env.name }}
run: |
hatch -v env create ${{ matrix.env.name }}
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
This file contains hidden or 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
Expand Up @@ -12,18 +12,18 @@ jobs:
permissions:
id-token: write
steps:
- name: Setup python to build package
uses: actions/setup-python@v5
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
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: "pyproject.toml"
github-token: ${{ secrets.GITHUB_TOKEN }}
- 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/gh-action-pypi-publish@v1.10.1
with:
attestations: true

Back | FazBrowse Home | New Git URL