From f4d4ca06fd3d76d71906742ceb57c43a691e589e Mon Sep 17 00:00:00 2001 From: Jordan Cook Date: Sat, 18 Jan 2025 14:58:44 -0600 Subject: [PATCH] Use official setup-uv action and built-in caching --- .github/workflows/build.yml | 13 ++++--------- .github/workflows/deploy.yml | 2 +- HISTORY.md | 2 +- pyproject.toml | 2 +- 4 files changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dbe79726..13544c96 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,21 +21,16 @@ jobs: python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] steps: + # Install prereqs and dependencies, with caching - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - uses: yezz123/setup-uv@v4 - - # Cache packages per python version, and reuse until lockfile changes - - name: Cache python packages - id: cache - uses: actions/cache@v4 + - uses: astral-sh/setup-uv@v5 with: - path: .venv - key: venv-${{ matrix.python-version }}-${{ hashFiles('uv.lock') }} + enable-cache: true + cache-dependency-glob: uv.lock - name: Install dependencies - if: steps.cache.outputs.cache-hit != 'true' run: uv sync # Run tests with coverage report diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7eadc439..32a44776 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -27,7 +27,7 @@ jobs: - uses: actions/setup-python@v5 with: python-version: ${{ env.LATEST_PY_VERSION }} - - uses: yezz123/setup-uv@v4 + - uses: astral-sh/setup-uv@v5 - name: Set pre-release version if: ${{ !startsWith(github.ref, 'refs/tags/v') }} diff --git a/HISTORY.md b/HISTORY.md index 25fc961e..14ac43e0 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,6 +1,6 @@ # History -## 0.20.1 (Unreleased) +## 0.20.1 (2025-01-18) * Fix `AttributeError` when initializing `Observation.taxon` with a `Taxon` object ## 0.20.0 (2025-01-02) diff --git a/pyproject.toml b/pyproject.toml index 309123fe..4123909b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = 'pyinaturalist' -version = '0.20.1' +version = '0.20.2' description = 'iNaturalist API client for python' authors = [{ name = 'Jordan Cook' }] license = 'MIT'