Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update astral-sh/setup-uv action to v5 #10604

Merged
merged 3 commits into from
Dec 21, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 21, 2024

This PR contains the following updates:

Package Type Update Change
astral-sh/setup-uv action major v4.2.0 -> v5.0.1

Release Notes

astral-sh/setup-uv (astral-sh/setup-uv)

v5.0.1: 🌈 The christmas elves overlooked something

Compare Source

Changes

With so many breaking changes so close to the end of the year we missed something.

Thank you @​ryanhiebert for quickly reporting that our new defaults fail the workflow if neither a uv.lock nor a requirements*.txt can be found. This is now a warning instead.

🐛 Bug fixes

v5.0.0: 🎄 Merry Christmas - Help fastly and users by default

Compare Source

Changes

This christmans 🎄 release is a bit early bit still full of presents 🎁
Since we are changing some of the defaults this can lead to breaking changes, thus the major version increase.

Here are the highlights:

Default to enable-cache: true on GitHub hosted runners

Did you know that that Fastly, the company hosting PyPI, theoretically has to pay $12.5 million per month and so far have served more than 2.41 exabytes of data?
image

This is why they asked us to turn on caching by default. After weighting the pros and cons we decided to automatically upload the cache to the GitHub Actions cache when running on GitHub hosted runners. You can still disable that with enable-cache: false.

I remember when I first got into actions and didn't understand all the magic. I was baffled that some actions did something behind the scenes to make everything faster. I hope with this change we help a lot of users who are don't want to or are afraid to understand what enable-cache does.

Add **/requirements*.txt to default cache-dependency-glob

If caching is enabled we automatically searched for a uv.lock file and when this changed we knew we had to refresh the cache. A lot of projects don't use this but rather the good old requirements.txt. We now automatically search for both uv.lockand requirements*.txt (this means also requirements-test.txt, requirements-dev.txt, ...) files.
You can change this with cache-dependency-glob

Auto activate venv when python-version is set

Some workflows install packages on the fly. This automatically works when using a python version that is already present on the runner. But if uv installs the version, e.g. because it is a free-threaded version or an old one, it is a standalone-build and installing packages "into the system" is not possible.

We now automatically create a new virtual environment with uv venv and activate it for the rest of the workflow if python-version is used. This means you can now do

- name: Install uv
  uses: astral-sh/setup-uv@auto-environment
  with:
    python-version: 3.13t
- run: uv pip install -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple cython
🚨 Breaking changes
🐛 Bug fixes
🚀 Enhancements
🧰 Maintenance
📚 Documentation
⬆️ Dependency updates

Configuration

📅 Schedule: Branch creation - "after 10pm every weekday,every weekend,before 5am every weekday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies Issues or PRs related to dependencies label Dec 21, 2024
@github-actions github-actions bot added the ci Continuous Integration issues or PRs label Dec 21, 2024
@renovate renovate bot force-pushed the renovate/astral-sh-setup-uv-5.x branch 2 times, most recently from a65a295 to fdaf00e Compare December 21, 2024 00:47
@cpcloud cpcloud added this to the 10.0 milestone Dec 21, 2024
@renovate renovate bot force-pushed the renovate/astral-sh-setup-uv-5.x branch from fdaf00e to 356bd5b Compare December 21, 2024 01:30
Copy link
Contributor Author

renovate bot commented Dec 21, 2024

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@cpcloud cpcloud force-pushed the renovate/astral-sh-setup-uv-5.x branch from 7f807ce to 166bf6d Compare December 21, 2024 10:40
@cpcloud cpcloud enabled auto-merge (rebase) December 21, 2024 10:42
@cpcloud cpcloud disabled auto-merge December 21, 2024 11:06
@cpcloud cpcloud merged commit 42b333b into main Dec 21, 2024
85 of 87 checks passed
@cpcloud cpcloud deleted the renovate/astral-sh-setup-uv-5.x branch December 21, 2024 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Continuous Integration issues or PRs dependencies Issues or PRs related to dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant