+
Skip to content

Releases: astral-sh/setup-uv

v7.0.0 🌈 node24 and a lot of bugfixes

07 Oct 19:45
eb1897b
Compare
Choose a tag to compare

Changes

This release comes with a load of bug fixes and a speed up. Because of switching from node20 to node24 it is also a breaking change. If you are running on GitHub hosted runners this will just work, if you are using self-hosted runners make sure, that your runners are up to date. If you followed the normal installation instructions your self-hosted runner will keep itself updated.

This release also removes the deprecated input server-url which was used to download uv releases from a different server.
The manifest-file input supersedes that functionality by adding a flexible way to define available versions and where they should be downloaded from.

Fixes

  • The action now respects when the environment variable UV_CACHE_DIR is already set and does not overwrite it. It now also finds cache-dir settings in config files if you set them.
  • Some users encountered problems that cache pruning took forever because they had some uv processes running in the background. Starting with uv version 0.8.24 this action uses uv cache prune --ci --force to ignore the running processes
  • If you just want to install uv but not have it available in path, this action now respects UV_NO_MODIFY_PATH
  • Some other actions also set the env var UV_CACHE_DIR. This action can now deal with that but as this could lead to unwanted behavior in some edgecases a warning is now displayed.

Improvements

If you are using minimum version specifiers for the version of uv to install for example

[tool.uv]
required-version = ">=0.8.17"

This action now detects that and directly uses the latest version. Previously it would download all available releases from the uv repo
to determine the highest matching candidate for the version specifier, which took much more time.

If you are using other specifiers like 0.8.x this action still needs to download all available releases because the specifier defines an upper bound (not 0.9.0 or later) and "latest" would possibly not satisfy that.

🚨 Breaking changes

🐛 Bug fixes

🚀 Enhancements

  • Shortcut to latest version for minimum version specifier @eifinger (#598)

🧰 Maintenance

⬆️ Dependency updates

v6.8.0 🌈 Add **/*.py.lock to cache-dependency-glob

30 Sep 15:07
d0cc045
Compare
Choose a tag to compare

Changes

Thanks to @parched the default cache-dependency-glob now also find all lock files generated by uv lock --script

🚀 Enhancements

🧰 Maintenance

📚 Documentation

  • README.md: Fix Python versions and update checkout action @cclauss (#572)

⬆️ Dependency updates

v6.7.0 🌈 New inputs `restore-cache` and `save-cache`

14 Sep 13:13
b75a909
Compare
Choose a tag to compare

Changes

This release adds fine-grained control over the caching steps.

  • The input restore-cache (true by default) can be set to false to skip restoring the cache while still allowing to save the cache.
  • The input save-cache (true by default) can be set to false to skip saving the cache.

Skipping cache saving can be useful if you know, that you will never use this version of the cache again and don't want to waste storage space:

- name: Save cache only on main branch
  uses: astral-sh/setup-uv@v6
  with:
    enable-cache: true
    save-cache: ${{ github.ref == 'refs/heads/main' }}

🚀 Enhancements

🧰 Maintenance

⬆️ Dependency updates

v6.6.1 🌈 Fix exclusions in cache-dependency-glob

01 Sep 14:25
557e51d
Compare
Choose a tag to compare

Changes

Exclusions with a leading ! in the cache-dependency-glob did not work and got fixed with this release. Thank you @KnisterPeter for raising this!

🐛 Bug fixes

🧰 Maintenance

v6.6.0 🌈 Support for .tools-versions

21 Aug 09:24
4959332
Compare
Choose a tag to compare

Changes

This release adds support for asdf .tool-versions in the version-file input

🐛 Bug fixes

  • Add log message before long API calls to GitHub @eifinger (#530)

🚀 Enhancements

🧰 Maintenance

v6.5.0 🌈 Better error messages, bug fixes and copilot agent settings

12 Aug 20:52
d9e0f98
Compare
Choose a tag to compare

Changes

This release brings better error messages in case the GitHub API is impacted, fixes a few bugs and allows to disable problem matchers for better use in Copilot Agent workspaces.

🐛 Bug fixes

  • Improve error messages on GitHub API errors @eifinger (#518)
  • Ignore backslashes and whitespace in requirements @axm2 (#501)

🚀 Enhancements

🧰 Maintenance

📚 Documentation

  • add note on caching to read disable-cache-pruning @eifinger (#506)

⬆️ Dependency updates

v6.4.3 🌈 fix relative paths starting with dots

23 Jul 17:44
e92bafb
Compare
Choose a tag to compare

🐛 Bug fixes

v6.4.2 🌈 Interpret relative inputs as under working-directory

23 Jul 13:33
2c7142f
Compare
Choose a tag to compare

Changes

This release will interpret relative paths in inputs as relative
to the value of working-directory (default is ${{ github.workspace }}) .
This means the following configuration

- uses: astral-sh/setup-uv@v6
   with:
     working-directory: /my/path
     cache-dependency-glob: uv.lock

will look for the cache-dependency-glob under /my/path/uv.lock

🐛 Bug fixes

  • interpret relative inputs as under working-directory @eifinger (#498)

🧰 Maintenance

v6.4.1 🌈 Hotfix: Ignore deps starting with uv when finding uv version

18 Jul 06:11
7edac99
Compare
Choose a tag to compare

Changes

Thank you @phpmypython for raising a PR to fix this issue!

🐛 Bug fixes

  • Ignore deps starting with uv when finding uv version @eifinger (#492)

v6.4.0 🌈 Add input `version-file`

17 Jul 19:49
05273c1
Compare
Choose a tag to compare

Changes

You can now use the version-file input to specify a file that contains the version of uv to install.
This can either be a pyproject.toml or uv.toml file which defines a required-version or
uv defined as a dependency in pyproject.toml or requirements.txt.

- name: Install uv based on the version defined in requirements.txt
  uses: astral-sh/setup-uv@v6
  with:
    version-file: "requirements.txt"

🚀 Enhancements

🧰 Maintenance

📚 Documentation

  • Add FAQ on changed cache and cache upload behavior @eifinger (#477)

⬆️ Dependency updates

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载