Releases: astral-sh/setup-uv
v6.4.3 🌈 fix relative paths starting with dots
v6.4.2 🌈 Interpret relative inputs as under working-directory
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
🧰 Maintenance
- chore: update known versions for 0.8.1/0.8.2 @github-actions[bot] (#497)
- chore: update known versions for 0.8.0 @github-actions[bot] (#491)
v6.4.1 🌈 Hotfix: Ignore deps starting with uv when finding uv version
v6.4.0 🌈 Add input `version-file`
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
- chore: update known versions for 0.7.22 @github-actions[bot] (#488)
- Bump dependencies @eifinger (#487)
- chore: update known versions for 0.7.21 @github-actions[bot] (#483)
- chore: update known versions for 0.7.20 @github-actions[bot] (#480)
- chore: update known versions for 0.7.19 @github-actions[bot] (#475)
- chore: update known versions for 0.7.18 @github-actions[bot] (#473)
- chore: update known versions for 0.7.17 @github-actions[bot] (#468)
- chore: update known versions for 0.7.16 @github-actions[bot] (#466)
- chore: update known versions for 0.7.15 @github-actions[bot] (#463)
📚 Documentation
⬆️ Dependency updates
v6.3.1 🌈 Do not warn when version not in manifest-file
Changes
This is a hotfix to change the warning messages that a version could not be found in the local manifest-file to info level.
A setup-uv
release contains a version-manifest.json file with infos in all available uv
releases. When a new uv
version is released this is not contained in this file until the file gets updated and a new setup-uv
release is made.
We will overhaul this process in the future but for now the spamming of warnings is removed.
🐛 Bug fixes
🧰 Maintenance
- chore: update known versions for 0.7.14 @github-actions[bot] (#459)
- Revert "Set expected cache dir drive to C: on windows (#451)" @eifinger (#460)
v6.3.0 🌈 Use latest version from manifest-file
v6.2.1 🌈 Fix "No such file or directory version-manifest.json"
Changes
Release v6.2.0 contained a bug that slipped through the automated test. The action tried to look for the default version-manifest.json in the root of the repostory using this action instead of relative to the action itself.
🐛 Bug fixes
v6.2.0 🌈 New input manifest-file
Changes
This release adds a new input manifest-file
.
The manifest-file
input allows you to specify a JSON manifest that lists available uv versions,
architectures, and their download URLs. By default, this action uses the manifest file contained
in this repository, which is automatically updated with each release of uv.
The manifest file contains an array of objects, each describing a version,
architecture, platform, and the corresponding download URL.
You can supply a custom manifest file URL to define additional versions,
architectures, or different download URLs.
This is useful if you maintain your own uv builds or want to override the default sources.
For example:
[
{
"version": "0.7.12-alpha.1",
"artifactName": "uv-x86_64-unknown-linux-gnu.tar.gz",
"arch": "x86_64",
"platform": "unknown-linux-gnu",
"downloadUrl": "https://release.pyx.dev/0.7.12-alpha.1/uv-x86_64-unknown-linux-gnu.tar.gz"
},
...
]
- name: Use a custom manifest file
uses: astral-sh/setup-uv@v6
with:
manifest-file: "https://example.com/my-custom-manifest.json"
Warning
If you have previously used server-url
to use your self hosted uv binaries use this new way instead.
server-url
is deprecated and will be removed in a future release
🚀 Enhancements
- Add input manifest-file @eifinger (#454)
- Add warning about shadowed uv binaries to
activate-environment
@zanieb (#439)
🧰 Maintenance
- chore: update known versions for 0.7.13 @github-actions[bot] (#444)
- Set expected cache dir drive to C: on windows @eifinger (#451)
- chore: update known versions for 0.7.11 @github-actions[bot] (#442)
- chore: update known versions for 0.7.10 @github-actions[bot] (#440)
- chore: update known versions for 0.7.9 @github-actions[bot] (#437)
- Check that all jobs are in all-tests-passed.needs @eifinger (#432)
- chore: update known versions for 0.7.8 @github-actions[bot] (#428)
v6.1.0 🌈
Changes
This release adds the input server-url
which defaults to https://github.com
. You can set this to a custom url to control where this action downloads the uv release from. This is useful for users of gitea and comparable solutions.
@sebadevo pointed out that we don't invalidate the cache when the prune-cache
input is changed. This leads to unnessecarily big caches. The input is now used to compute the cache key, properly invalidating the cache when it is changed.
Note
For most users this release will invalidate the cache once.
You will see the known warning no-github-actions-cache-found-for-key
This is expected and will only appear once.
🐛 Bug fixes
🚀 Enhancements
🧰 Maintenance
- chore: update known versions for 0.7.7 @github-actions[bot] (#422)
- chore: update known versions for 0.7.6 @github-actions[bot] (#415)
- chore: update known versions for 0.7.5 @github-actions[bot] (#412)
- chore: update known versions for 0.7.4 @github-actions[bot] (#410)
- chore: update known versions for 0.7.3 @github-actions[bot] (#405)
- Fix path to known-checksums.ts @eifinger (#404)
- Fix update-known-versions workflow argument @eifinger (#401)
- Fix update-known-versions workflow @eifinger (#400)
- Create version-manifest.json on uv release @eifinger (#399)
- Run infrastructure workflows on arm runners @eifinger (#396)
- chore: update known checksums for 0.7.2 @github-actions[bot] (#395)
- chore: update known checksums for 0.7.0 @github-actions[bot] (#390)
📚 Documentation
⬆️ Dependency updates
- Bump dependencies @eifinger (#424)
- Bump typescript from 5.8.2 to 5.8.3 @dependabot[bot] (#393)
v6.0.1 🌈 Fix default cache dependency glob
Changes
The new default in v6 used illegal patterns and therefore didn't match requirements files. This is now fixed.
🐛 Bug fixes
🧰 Maintenance
- chore: update known checksums for 0.6.17 @github-actions[bot] (#384)