diff --git a/.github/actions/setup-python/action.yml b/.github/actions/setup-python/action.yml index 1a13c016..9eb91764 100644 --- a/.github/actions/setup-python/action.yml +++ b/.github/actions/setup-python/action.yml @@ -7,7 +7,7 @@ inputs: description: "Python version (e.g. '3.7', '3.8.13', '3.11.0-alpha.1', '3.x')." required: true requirements: - description: "Optional list of arguments passed to `uv pip install` (e.g. 'numpy==1.19.5', '-r requirements.txt')." + description: "Optional list of arguments passed to `uv pip install` (e.g. 'tox', 'numpy==1.19.5')." required: false runs: @@ -17,7 +17,7 @@ runs: # create and activate a virtual environment that is used by all # subsequent steps (e.g. the `uv pip install` step below installs # into it). Also enables uv's built-in cache. The cache key takes - # the platform, the uv version, and a hash of the files below + # the platform, the uv version, and a hash of pyproject.toml # into account. # See https://docs.astral.sh/uv/guides/integration/github/ for details. # NOTE: setup-uv publishes immutable releases only (no @@ -29,9 +29,7 @@ runs: activate-environment: true enable-cache: true cache-suffix: "py${{ inputs.python-version }}" - cache-dependency-glob: | - pyproject.toml - requirements/*.txt + cache-dependency-glob: pyproject.toml - name: Install requirements if: ${{ inputs.requirements != '' }} diff --git a/docs/reference/changelog.md b/docs/reference/changelog.md index b3b69031..c08ef295 100644 --- a/docs/reference/changelog.md +++ b/docs/reference/changelog.md @@ -36,6 +36,7 @@ Unreleased changes - Fix the test suite's compatibility with the latest pytest release ({gh-pr}`384`) - Use the official `astral-sh/setup-uv` action to install and cache `uv` in CI ({gh-pr}`386`) - Let `uv` manage the Python interpreter and virtual environment in CI ({gh-pr}`393`) +- Remove the stale `requirements/*.txt` glob from the CI cache key, left over from the migration to PEP 735 dependency groups ({gh-pr}`394`) ---