Sourced from astral-sh/setup-uv's releases.
v4.0.0 🌈 Fail when cache local path does not exist when trying to cache
🚨 Breaking change 🚨
By default, the action will now fail if caching is enabled but there is nothing to upload (the uv cache directory does not exist). If you want to ignore this, set the
ignore-nothing-to-cache
input totrue
.- name: Ignore nothing to cache uses: astral-sh/setup-uv@v3 with: enable-cache: true ignore-nothing-to-cache: true
In previous releases only an error got logged when saving the cache failed. In most cases users did not realize something was wrong with their config.
Changes
🚨 Breaking changes
- Fail when cache local path does not exist when trying to cache
@eifinger
(#163)🐛 Bug fixes
- Fail when cache local path does not exist when trying to cache
@eifinger
(#163)- Remove working dir from cacheDependencyGlob error message
@eifinger
(#162)📚 Documentation
- Change some formulations in README.md
@eifinger
(#164)- Add comment to clarify process.exit(0)
@eifinger
(#161)v3.2.4 🌈 Expand
~
tilde in input pathsThis release adds support for expanding the
~
character to the user's home directory for the following inputs:
cache-local-path
tool-dir
tool-bin-dir
cache-dependency-glob
- name: Expand the tilde character uses: astral-sh/setup-uv@v3 with: cache-local-path: "~/path/to/cache" </tr></table>
... (truncated)
38f3f10
Resolve latest version instead of downloading latest release (#178)8bdd012
Add test for python-version (#177)5f42d5a
Replace v3 with v4 in README.md (#176)26ddfef
Add matrix example for python-version (#175)ee4fa33
Add input python-version (#174)4209155
Reduce test matrices (#173)9839fa9
chore: update known checksums for 0.5.5 (#170)196fe5f
Speed up updating known checksums (#166)49d8a3d
Clarify caching will only fail when enabled and nothing to cache (#165)d8db0a8
Change some formulations in README.md (#164)Sourced from pypa/gh-action-pypi-publish's releases.
v1.12.2
🐛 What's Fixed
The fix for signing legacy zip sdists turned out to be incomplete, so
@woodruffw
💰 promptly produced another follow-up that updatedpypi-attestations
from v0.0.13 to v0.0.15 in #297. This is the only change since the previous release.🪞 Full Diff: https://github.com/pypa/gh-action-pypi-publish/compare/v1.12.1...v1.12.2
🧔♂️ Release Manager:
@webknjaz
🇺🇦v1.12.1
🐛 What's Fixed
Version v1.12.0 hit several rare corner cases we never considered fully supported, and this release fixes a few of those. In #294,
@webknjaz
💰 improved the self-hosted runner experience by pre-installing Python if it's not there, and with #293 the ability to use the action on GitHub Enterprise instances has been restored. The latter should've also fixed the ability to invokepypi-publish
from nested in-repo composite actions — another exotic use-case that was never tested in our CI.@woodruffw
💰 also managed to squeeze in a last-minute fix for detecting legacy.zip
sdists while producing attestations via #295.🪞 Full Diff: https://github.com/pypa/gh-action-pypi-publish/compare/v1.12.0...v1.12.1
🧔♂️ Release Manager:
@webknjaz
🇺🇦🙏 Huge Thanks to all the bug reporters for posting the logs, helping inspect the problems and verify the regression fixes!
v1.12.0
⚡️ Why Should You Update?
This is a minor version bump, but it does not add any new user-facing interfaces. Still, I felt like it should not be a patch-release: this update brings significant changes to the action invocation and internal release process.
Previously, each invocation of
pypi-publish
required building a container image in the invoking CI job. This was inefficient and added about 30 seconds to the publishing jobs at their startup just to build the container.I wanted to improve this for over three years (#58) and a little over half a year ago
@br3ndonland
💰 stepped up and offered a very comprehensive solution to the limitation I was hoping to overcome: #230.Going forward, I'm going to pre-build per-version containers prior to cutting each release. And the action invocations will just pull the image from GitHub Container registry.
[!CAUTION] Known quirks:
- This seems to not work on self-hosted runners without a
python
executable: #289. The workaround could be installing it prior to running the action.Pinning to commit hashes does not work: #290. Workaround: postpone updating until it's fixed or switch to Git tags for now. Subscribe to that issue to follow the progress.UPD: This was an issue during the first 12 hours post release and it has been addressed upstream by publishing a commit SHA-tagged image for the release on Nov 12, 2024 at 10:27 UTC+1.- Calling
pypi-publish
from another nested repo-local composite action might be breaking file paths: #291. Workaround: postpone updating until it's fixed. Subscribe to that issue to follow the progress.- Running within GitHub Enterprise fails on the action repo clone: #292. Workaround: postpone updating until it's fixed. Subscribe to that issue to follow the progress.
🪞 Full Diff: https://github.com/pypa/gh-action-pypi-publish/compare/v1.11.0...v1.12.0
🧔♂️ Release Manager:
@webknjaz 🇺🇦
15c56db
Merge pull request #297
from trail-of-forks/ww/bump-pypi-attestationsfe8d148
requirements: bump pypi-attestations to 0.0.151f5d4ec
Merge pull request #295
from trail-of-forks/ww/fix-sdist-collectionfec2f0c
attestations: collect *.zip sdists as wella8b73a6
Merge pull request #294
from webknjaz/bugfixes/optional-python9b4dfb0
✨ Pre-install Python if there's none0a87186
Merge pull request #293
from webknjaz/bugfixes/uncheckout-intermediate-actiondfcfeca
🧪 Use prefetched action to make trampoline0d02f37
📝💅 Update the CI/CD badge in README61da13d
Merge pull request #230
from br3ndonland/ghcr