Releases: astral-sh/setup-uv
v7.3.0 🌈 New features and bug fixes for activate-environment
Changes
This release contains a few bug fixes and a new feature for the activate-environment functionality.
🐛 Bug fixes
- fix: warn instead of error when no python to cache @eifinger (#762)
- fix: use --clear to create venv @eifinger (#761)
🚀 Enhancements
🧰 Maintenance
- chore: update known checksums for 0.10.0 @github-actions[bot] (#759)
- refactor: tilde-expansion tests as unittests and no self-hosted tests @eifinger (#760)
- chore: update known checksums for 0.9.30 @github-actions[bot] (#756)
- chore: update known checksums for 0.9.29 @github-actions[bot] (#748)
📚 Documentation
- Fix punctuation @pm-dev563 (#747)
⬆️ Dependency updates
- Bump typesafegithub/github-actions-typing from 2.2.1 to 2.2.2 @dependabot[bot] (#753)
- Bump peter-evans/create-pull-request from 8.0.0 to 8.1.0 @dependabot[bot] (#751)
- Bump actions/checkout from 6.0.1 to 6.0.2 @dependabot[bot] (#740)
- Bump release-drafter/release-drafter from 6.1.0 to 6.2.0 @dependabot[bot] (#743)
- Bump eifinger/actionlint-action from 1.9.3 to 1.10.0 @dependabot[bot] (#731)
- Bump actions/setup-node from 6.1.0 to 6.2.0 @dependabot[bot] (#738)
v7.2.1 🌈 update known checksums up to 0.9.28
Changes
🧰 Maintenance
- chore: update known checksums for 0.9.28 @github-actions[bot] (#744)
- chore: update known checksums for 0.9.27 @github-actions[bot] (#742)
- chore: update known checksums for 0.9.26 @github-actions[bot] (#734)
- chore: update known checksums for 0.9.25 @github-actions[bot] (#733)
- chore: update known checksums for 0.9.24 @github-actions[bot] (#730)
📚 Documentation
⬆️ Dependency updates
- Bump zizmorcore/zizmor-action from 0.3.0 to 0.4.1 @dependabot[bot] (#741)
v7.2.0 🌈 add outputs python-version and python-cache-hit
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
🚀 Enhancements
- add outputs python-version and python-cache-hit @eifinger (#728)
- Add action typings with validation @krzema12 (#721)
🧰 Maintenance
- fix: use uv_build backend for old-python-constraint-project @eifinger (#729)
- chore: update known checksums for 0.9.22 @github-actions[bot] (#727)
- chore: update known checksums for 0.9.21 @github-actions[bot] (#726)
- chore: update known checksums for 0.9.20 @github-actions[bot] (#725)
- chore: update known checksums for 0.9.18 @github-actions[bot] (#718)
⬆️ Dependency updates
- Bump peter-evans/create-pull-request from 7.0.9 to 8.0.0 @dependabot[bot] (#719)
- Bump github/codeql-action from 4.31.6 to 4.31.9 @dependabot[bot] (#723)
v7.1.6 🌈 add OS version to cache key to prevent binary incompatibility
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
🧰 Maintenance
- chore: update known checksums for 0.9.17 @github-actions[bot] (#714)
⬆️ Dependency updates
- Bump actions/checkout from 5.0.0 to 6.0.1 @dependabot[bot] (#712)
- Bump actions/setup-node from 6.0.0 to 6.1.0 @dependabot[bot] (#715)
v7.1.5 🌈 allow setting `cache-local-path` without `enable-cache: true`
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
- set biome files.maxSize to 2MiB @eifinger (#708)
- chore: update known checksums for 0.9.16 @github-actions[bot] (#706)
- chore: update known checksums for 0.9.15 @github-actions[bot] (#704)
- chore: use
npm ci --ignore-scriptseverywhere @woodruffw (#699) - chore: update known checksums for 0.9.14 @github-actions[bot] (#700)
- chore: update known checksums for 0.9.13 @github-actions[bot] (#694)
- chore: update known checksums for 0.9.12 @github-actions[bot] (#693)
- chore: update known checksums for 0.9.11 @github-actions[bot] (#688)
⬆️ Dependency updates
- Bump peter-evans/create-pull-request from 7.0.8 to 7.0.9 @dependabot[bot] (#695)
- bump dependencies @eifinger (#709)
- Bump github/codeql-action from 4.30.9 to 4.31.6 @dependabot[bot] (#698)
- Bump zizmorcore/zizmor-action from 0.2.0 to 0.3.0 @dependabot[bot] (#696)
- Bump eifinger/actionlint-action from 1.9.2 to 1.9.3 @dependabot[bot] (#690)
v7.1.4 🌈 Fix libuv closing bug on Windows
Changes
This release fixes the bug Assertion failed: !(handle->flags & UV_HANDLE_CLOSING) on Windows runners
🐛 Bug fixes
🧰 Maintenance
- chore: update known checksums for 0.9.10 @github-actions[bot] (#681)
- chore: update known checksums for 0.9.9 @github-actions[bot] (#679)
v7.1.3 🌈 Support act
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
🧰 Maintenance
- chore: update known checksums for 0.9.8 @github-actions[bot] (#677)
- chore: update known checksums for 0.9.7 @github-actions[bot] (#671)
- chore: update known checksums for 0.9.6 @github-actions[bot] (#670)
📚 Documentation
- Correct description of
cache-dependency-glob@allanlewis (#676)
v7.1.2 🌈 Speed up extraction on Windows
Changes
@lazka fixed a bug that caused extracting uv to take up to 30s. Thank you!
🐛 Bug fixes
🧰 Maintenance
- chore: update known checksums for 0.9.5 @github-actions[bot] (#663)
⬆️ Dependency updates
- Bump dependencies @eifinger (#664)
- Bump github/codeql-action from 4.30.8 to 4.30.9 @dependabot[bot] (#652)
v7.1.1 🌈 Fix empty workdir detection and lowest resolution strategy
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
- chore: update known checksums for 0.9.4 @github-actions[bot] (#651)
- chore: update known checksums for 0.9.3 @github-actions[bot] (#644)
📚 Documentation
⬆️ Dependency updates
- Bump github/codeql-action from 4.30.7 to 4.30.8 @dependabot[bot] (#639)
- Bump actions/setup-node from 5.0.0 to 6.0.0 @dependabot[bot] (#641)
- Bump eifinger/actionlint-action from 1.9.1 to 1.9.2 @dependabot[bot] (#634)
- Update lockfile with latest npm @eifinger (#636)
v7.1.0 🌈 Support all the use cases
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
- Add resolution-strategy input to support oldest compatible version selection @copilot-swe-agent[bot] (#631)
- Add value of UV_PYTHON_INSTALL_DIR to path @eifinger (#628)
- Set output venv when activate-environment is used @eifinger (#627)
- Cache python installs @merlinz01 (#621)
🧰 Maintenance
- Add copilot-instructions.md @eifinger (#630)
- chore: update known checksums for 0.9.2 @github-actions[bot] (#626)
- chore: update known checksums for 0.9.1 @github-actions[bot] (#625)
- Fall back to PR for updating known versions @eifinger (#623)
📚 Documentation
⬆️ Dependency updates
- Bump deps @eifinger (#633)
- Bump github/codeql-action from 3.30.6 to 4.30.7 @dependabot[bot] (#614)