Visitar URL original
Releases · astral-sh/setup-uv · GitHub
Skip to content

Releases: astral-sh/setup-uv

v10.3.0 🌈 Add Python architecture selection

Choose a tag to compare

@github-actions github-actions released this 09 Oct 20:41
Immutable release. Only release title and notes can be modified.
1c37ad0

Changes

This release adds the python-arch input to select a Python architecture independently of the Python version. With uv 0.13.0 or later, set python-arch: x86_64 to use x64 Python on Windows ARM64 runners.

It also includes embedded checksums for uv releases through 0.13.0.

🚀 Enhancements

🧰 Maintenance

⬆️ Dependency updates

v10.2.0 🌈 Disable automatic cache saves for merge queues

Choose a tag to compare

@github-actions github-actions released this 21 Sep 13:15
Immutable release. Only release title and notes can be modified.
c18668a

Changes

This release contains the known-checksum of the most recent uv releases and also disabled the uploading(saving) of the cache when in a merge queue since theses caches would almost never be used.

🚀 Enhancements

🧰 Maintenance

📚 Documentation

⬆️ Dependency updates

v10.1.0 🌈 New output `python-runtime-id`and respect NO_PROXY

Choose a tag to compare

@github-actions github-actions released this 10 Sep 19:20
Immutable release. Only release title and notes can be modified.
bec219d

Changes

This release adds more bheind the scene security improvements and also 2 small improvements.

NO_PROXY

This action now respects no_proxy/NO_PROXY environment variables which were previously ignored.

New output python-runtime-id

The new output python-runtime-id can be used to know which python version exactly was installed if you use activate-environment. See pyca/cryptography#15572 (comment) for details on why this can be useful.

🐛 Bug fixes

🚀 Enhancements

🧰 Maintenance

📚 Documentation

⬆️ Dependency updates

v10.0.1 🌈 Tolerate transient manifest timeouts

Choose a tag to compare

@github-actions github-actions released this 14 Aug 08:55
Immutable release. Only release title and notes can be modified.
20cfd1b

Changes

Thank you @arguile- for making this action more resilient.

🐛 Bug fixes

🧰 Maintenance

📚 Documentation

v10.0.0 🌈 Disable automatic caching for sensitive events and new QOL features

Choose a tag to compare

@github-actions github-actions released this 12 Aug 12:58
Immutable release. Only release title and notes can be modified.
ae62891

Changes

Another breaking release, directly after v9.0.0 but we think the added security justifies that.

Extra security by default

If you use the default enable-cache: auto this will now DISABLE THE CACHE to protect against cache poisoning for the following events:

  • pull_request_target
  • workflow_run
  • release

You can read the full reasoning in #984

version: latest-known

- name: Install the latest version of uv known to setup-uv
  uses: astral-sh/setup-uv@v10.0.0
  with:
    version: "latest-known"

This will now install the latest version with a checksum that is known by this action. The known uv checksums are automatically updated but will take a release of this action to take effect. You won't be always using the latest & greatest but you will have an extra level of security.

Read python version from .tool-versions

- name: Install uv based on the version defined in .tool-versions and also set python
  uses: astral-sh/setup-uv@v10.0.0
  with:
    version-file: "pyproject.toml"

Will now also set the python version if it is defined in .tool-versions. You can read the details in the docs

🚨 Breaking changes

  • Disable automatic caching for sensitive events @eifinger (#992)

🐛 Bug fixes

🚀 Enhancements

🧰 Maintenance

📚 Documentation

⬆️ Dependency updates

v9.0.0 🌈 Change `prune-cache` default to `false`

Choose a tag to compare

@github-actions github-actions released this 21 Jul 15:48
Immutable release. Only release title and notes can be modified.
c771a70

Changes

This release disables the default cache cache pruning to ease the load on the PyPi infrastructure.
Since users might experience more GitHub Actions cache usage which might result in higher costs this is marked as a breaking change. To read more on why we did this (now) you can read the detailed analysis and reasoning in #967

Besides this big breaking change we also have a small bugfix while building caches for linux distributions that behave a big different than the "big ones" and a speed up in version resolution by only reading the version manifest until a matching version is found saving runtime and network bandwith.

🚨 Breaking changes

🐛 Bug fixes

  • fix: fall back to distribution ID when os-release has no version field @cxzhong (#961)

🚀 Enhancements

  • Speed up version client by partial response reads @eifinger (#807)

🧰 Maintenance

📚 Documentation

⬆️ Dependency updates

v8.3.2 🌈 update known checksums for 0.11.28

Choose a tag to compare

@github-actions github-actions released this 08 Jul 09:08
Immutable release. Only release title and notes can be modified.
11f9893

Changes

Just a maintenance release

🧰 Maintenance

📚 Documentation

⬆️ Dependency updates

v8.3.1 🌈 update known checksums for 0.11.27

Choose a tag to compare

@github-actions github-actions released this 07 Jul 08:14
Immutable release. Only release title and notes can be modified.
f98e069

Changes

Just a maintenance release

🧰 Maintenance

📚 Documentation

v8.3.0 🌈 Support uv.lock as a version-file source

Choose a tag to compare

@github-actions github-actions released this 05 Jul 08:56
Immutable release. Only release title and notes can be modified.
d31148d

Changes

Thanks to @somaz94 you can now use the pinned version of uv itself in uv.lock. It gets picked up automatically.
If you have pinned another version of uv in your uv.lock you can use the inputs version or version-source to override this.

🐛 Bug fixes

  • Strip environment markers from detected uv dependency pins @eifinger (#938)
  • Fix cache keys for Python version ranges @eifinger (#937)
  • fix: use BUILD_ID as backup for determining os version @hgaiser (#912)

🚀 Enhancements

  • feat: support uv.lock as a version-file source @somaz94 (#918)

🧰 Maintenance

📚 Documentation

  • docs: update version references to v8.2.0 @KRRT7 (#932)
  • Add a threat model for setup-uv @zsol (#923)

⬆️ Dependency updates

v8.2.0 🌈 New inputs `quiet` and `download-from-astral-mirror`

Choose a tag to compare

@github-actions github-actions released this 03 Jun 12:19
Immutable release. Only release title and notes can be modified.
fac544c

Changes

This release brings two new inputs and a few bug fixes.

New inputs

Lets talk about the new inputs first.

quiet

Pretty simple. It turns of all info loggings. Useful if you use this in a composite action and are not interested in all the details.
In the upcoming releases we will add log groups to fully implement support for "less noise"

Note

Warnings and errors are always logged.

download-from-astral-mirror

In some cases you may want to directly use the fallback of checking for available versions and downloading releases from GitHub instead of using the astral.sh mirror. Setting download-from-astral-mirror: false allows you to do that.

Bugfixes

When using the astral.sh mirror to query available versions and download releases (done by default) we now stop sending the GitHub token in the header. The mirror never looked at it but we shouldn't be handing out that data even if it is just a short lived token.
All other bugfixes try to limit the impact of failed GitHub queries due to retries and other faults.

We couldn't pinpoint all rootcauses yet but added more logging for error cases to track them down.

🐛 Bug fixes

🚀 Enhancements

🧰 Maintenance

⬆️ Dependency updates