Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented May 19, 2025

This PR contains the following updates:

Package Type Update Change
astral-sh/setup-uv action major v5.4.2 -> v6.0.1

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

astral-sh/setup-uv (astral-sh/setup-uv)

v6.0.1: 🌈 Fix default cache dependency glob

Compare Source

Changes

The new default in v6 used illegal patterns and therefore didn't match requirements files. This is now fixed.

🐛 Bug fixes
🧰 Maintenance
⬆️ Dependency updates

v6.0.0: 🌈 activate-environment and working-directory

Compare Source

Changes

This version contains some breaking changes which have been gathering up for a while. Lets dive into them:

Activate environment

In previous versions using the input python-version automatically activated a venv at the repository root.
This led to some unwanted side-effects, was sometimes unexpected and not flexible enough.

The venv activation is now explicitly controlled with the new input activate-environment (false by default):

- name: Install the latest version of uv and activate the environment
  uses: astral-sh/setup-uv@v6
  with:
    activate-environment: true
- run: uv pip install pip

The venv gets created by the uv venv command so the python version is controlled by the python-version input or the files pyproject.toml, uv.toml, .python-version in the working-directory.

Working Directory

The new input working-directory controls where we look for pyproject.toml, uv.toml and .python-version files
which are used to determine the version of uv and python to install.

It can also be used to control where the venv gets created.

- name: Install uv based on the config files in the working-directory
  uses: astral-sh/setup-uv@v6
  with:
    working-directory: my/subproject/dir

[!CAUTION]

The inputs pyproject-file and uv-file have been removed.

Default cache-dependency-glob

@​ssbarnea found out that the default cache-dependency-glob was not suitable for a lot of users.

The old default

cache-dependency-glob: |
  **/requirements*.txt
  **/uv.lock

is changed and should cover over 99.5% of use cases:

cache-dependency-glob: |
  **/*(requirements|constraints)*.(txt|in)
  **/pyproject.toml
  **/uv.lock

[!NOTE]

This shouldn't be a breaking change. The only thing you may notice is that your caches get invalidated once.

Use default cache dir on self hosted runners

The directory where uv stores its cache was always set to a directory in RUNNER_TEMP. For self-hosted runners this made no sense as this gets cleaned after every run and led to slower runs than necessary.

On self-hosted runners UV_CACHE_DIR is no longer set and the default cache directory is used instead.

🚨 Breaking changes
🧰 Maintenance
📚 Documentation

Configuration

📅 Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the internal An internal refactor or improvement label May 19, 2025
@github-actions
Copy link
Contributor

github-actions bot commented May 19, 2025

mypy_primer results

No ecosystem changes detected ✅

@renovate renovate bot force-pushed the renovate/astral-sh-setup-uv-6.x branch from 48b91c0 to 79e4713 Compare May 19, 2025 06:30
@MichaReiser MichaReiser reopened this May 19, 2025
@MichaReiser MichaReiser merged commit 9f743d1 into main May 19, 2025
48 of 71 checks passed
@MichaReiser MichaReiser deleted the renovate/astral-sh-setup-uv-6.x branch May 19, 2025 06:46
@github-actions
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

dcreager added a commit that referenced this pull request May 19, 2025
* origin/main: (25 commits)
  Cargo update (#18191)
  Update NPM Development dependencies (#18187)
  Update Rust crate bincode to v2 (#18188)
  Update astral-sh/setup-uv action to v6 (#18184)
  Update dependency react-resizable-panels to v3 (#18185)
  Update dependency ruff to v0.11.10 (#18171)
  Update pre-commit dependencies (#18172)
  Update docker/build-push-action action to v6.17.0 (#18174)
  Update uraimo/run-on-arch-action action to v3 (#18190)
  Update docker/metadata-action action to v5.7.0 (#18175)
  Update docker/setup-buildx-action action to v3.10.0 (#18176)
  Update taiki-e/install-action action to v2.51.2 (#18183)
  Update extractions/setup-just action to v3 (#18186)
  Update Rust crate jod-thread to v1 (#18189)
  Update Rust crate insta to v1.43.1 (#18180)
  Update dependency pyodide to v0.27.6 (#18170)
  Update react monorepo to v19.1.0 (#18178)
  Update taiki-e/install-action digest to 941e8a4 (#18168)
  Update peter-evans/find-comment action to v3.1.0 (#18177)
  Update cargo-bins/cargo-binstall action to v1.12.5 (#18169)
  ...
dcreager added a commit that referenced this pull request May 19, 2025
…rals

* origin/main: (62 commits)
  Cargo update (#18191)
  Update NPM Development dependencies (#18187)
  Update Rust crate bincode to v2 (#18188)
  Update astral-sh/setup-uv action to v6 (#18184)
  Update dependency react-resizable-panels to v3 (#18185)
  Update dependency ruff to v0.11.10 (#18171)
  Update pre-commit dependencies (#18172)
  Update docker/build-push-action action to v6.17.0 (#18174)
  Update uraimo/run-on-arch-action action to v3 (#18190)
  Update docker/metadata-action action to v5.7.0 (#18175)
  Update docker/setup-buildx-action action to v3.10.0 (#18176)
  Update taiki-e/install-action action to v2.51.2 (#18183)
  Update extractions/setup-just action to v3 (#18186)
  Update Rust crate jod-thread to v1 (#18189)
  Update Rust crate insta to v1.43.1 (#18180)
  Update dependency pyodide to v0.27.6 (#18170)
  Update react monorepo to v19.1.0 (#18178)
  Update taiki-e/install-action digest to 941e8a4 (#18168)
  Update peter-evans/find-comment action to v3.1.0 (#18177)
  Update cargo-bins/cargo-binstall action to v1.12.5 (#18169)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal An internal refactor or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants