Skip to content

Releases: astral-sh/setup-uv

v7.1.4 🌈 Fix libuv closing bug on Windows

21 Nov 08:01
1e862df

Choose a tag to compare

Changes

This release fixes the bug Assertion failed: !(handle->flags & UV_HANDLE_CLOSING) on Windows runners

🐛 Bug fixes

🧰 Maintenance

v7.1.3 🌈 Support act

10 Nov 18:50
5a7eac6

Choose a tag to compare

Changes

This bug fix release adds support for https://github.com/nektos/act
It was previously broken because of a too new undici version and TS transpilation target.

Compatibility with act is now automatically tested.

🐛 Bug fixes

  • use old undici and ES2022 target for act support @eifinger (#678)

🧰 Maintenance

📚 Documentation

v7.1.2 🌈 Speed up extraction on Windows

26 Oct 15:04
8585678

Choose a tag to compare

Changes

@lazka fixed a bug that caused extracting uv to take up to 30s. Thank you!

🐛 Bug fixes

  • Use tar for extracting the uv zip file on Windows too @lazka (#660)

🧰 Maintenance

⬆️ Dependency updates

v7.1.1 🌈 Fix empty workdir detection and lowest resolution strategy

19 Oct 18:29
2ddd2b9

Choose a tag to compare

Changes

This release fixes a bug where the working-directory input was not used to detect an empty work dir. It also fixes the lowest resolution strategy resolving to latest when only a lower bound was specified.

Special thanks to @tpgillam for the first contribution!

🐛 Bug fixes

  • Fix "lowest" resolution strategy with lower-bound only @tpgillam (#649)
  • Use working-directory to detect empty workdir @eifinger (#645)

🧰 Maintenance

📚 Documentation

⬆️ Dependency updates

v7.1.0 🌈 Support all the use cases

12 Oct 18:54
3259c62

Choose a tag to compare

Changes

Support all the use cases!!!
... well, that we know of.

This release adds support for some use cases that most users don't encounter but are useful for e.g. people running Gitea.

The input resolution-strategy lets you use the lowest possible version of uv from a version range. Useful if you want to test your tool with different versions of uv.

If you use activate-environment the path to the activated venv is now also exposed under the output venv.

Downloaded python installations can now also be uploaded to the GitHub Actions cache backend. Useful if you are running in act and have configured your own backend and don't want to download python again, and again over a slow internet connection.

Finally the path to installed python interpreters is now added to the PATH on Windows.

🚀 Enhancements

🧰 Maintenance

📚 Documentation

⬆️ Dependency updates

v7.0.0 🌈 node24 and a lot of bugfixes

07 Oct 19:45
eb1897b

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

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

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

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

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