Skip to content

Releases: astral-sh/setup-uv

v7.3.0 🌈 New features and bug fixes for activate-environment

06 Feb 15:43
eac588a

Choose a tag to compare

Changes

This release contains a few bug fixes and a new feature for the activate-environment functionality.

🐛 Bug fixes

🚀 Enhancements

  • feat: add venv-path input for activate-environment @eifinger (#746)

🧰 Maintenance

📚 Documentation

⬆️ Dependency updates

v7.2.1 🌈 update known checksums up to 0.9.28

30 Jan 07:41
803947b

Choose a tag to compare

Changes

🧰 Maintenance

📚 Documentation

⬆️ Dependency updates

v7.2.0 🌈 add outputs python-version and python-cache-hit

06 Jan 17:12
61cb8a9

Choose a tag to compare

Changes

Among some minor typo fixes and quality of life features for developers of actions the main feature of this release are new outputs:

  • python-version: The Python version that was set (same content as existing UV_PYTHON)
  • python-cache-hit: A boolean value to indicate the Python cache entry was found

While implementing this it became clear, that it is easier to handle the Python binaries in a separate cache entry. The added benefit for users is that the "normal" cache containing the dependencies can be used in all runs no matter if these cache the Python binaries or not.

Note

This release will invalidate caches that contain the Python binaries. This happens a single time.

🐛 Bug fixes

  • chore: remove stray space from UV_PYTHON_INSTALL_DIR message @akx (#720)

🚀 Enhancements

🧰 Maintenance

⬆️ Dependency updates

v7.1.6 🌈 add OS version to cache key to prevent binary incompatibility

13 Dec 16:40
681c641

Choose a tag to compare

Changes

This release will invalidate your cache existing keys!

The os version e.g. ubuntu-22.04 is now part of the cache key. This prevents failing builds when a cache got populated with wheels built with different tools (e.g. glibc) than are present on the runner where the cache got restored.

🐛 Bug fixes

  • feat: add OS version to cache key to prevent binary incompatibility @eifinger (#716)

🧰 Maintenance

⬆️ Dependency updates

v7.1.5 🌈 allow setting `cache-local-path` without `enable-cache: true`

07 Dec 18:04
ed21f2f

Choose a tag to compare

Changes

#612 fixed a faulty behavior where this action set UV_CACHE_DIR even though enable-cache was false. It also fixed the cases were the cache dir is already configured in a settings file like pyproject.toml or UV_CACHE_DIR was already set. Here the action shouldn't overwrite or set UV_CACHE_DIR.

These fixes introduced an unwanted behavior: You can still set cache-local-path but this action didn't do anything. This release fixes that.

You can now use cache-local-path to automatically set UV_CACHE_DIR even when enable-cache is false (or gets set to false by default e.g. on self-hosted runners)

- name: This is now possible
  uses: astral-sh/setup-uv@v7
  with:
    enable-cache: false
    cache-local-path: "/path/to/cache"

🐛 Bug fixes

🧰 Maintenance

⬆️ Dependency updates

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