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

build(deps): bump astral-sh/setup-uv from 4 to 5 #4727

Merged
merged 1 commit into from
Dec 24, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 23, 2024

Bumps astral-sh/setup-uv from 4 to 5.

Release notes

Sourced from astral-sh/setup-uv's releases.

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

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

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from 4 to 5.
- [Release notes](https://github.com/astral-sh/setup-uv/releases)
- [Commits](astral-sh/setup-uv@v4...v5)

---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels Dec 23, 2024
Copy link

vercel bot commented Dec 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
polar ⬜️ Ignored (Inspect) Visit Preview Dec 23, 2024 6:04am
polar-sandbox ⬜️ Ignored (Inspect) Visit Preview Dec 23, 2024 6:04am

Copy link
Contributor

📦 Next.js Bundle Analysis for web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

Twenty-two Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (350 KB)
/(main)/login/magic-link/authenticate/page 363 B 155.62 KB 44.46% ( /- <0.01%)
/(main)/(installation)/github/layout 362 B 155.62 KB 44.46% ( /- <0.01%)
/(main)/dashboard/layout 361 B 155.62 KB 44.46% ( /- <0.01%)
/(main)/docs/layout 362 B 155.62 KB 44.46% ( /- <0.01%)
/(main)/dashboard/(create)/layout 362 B 155.62 KB 44.46% ( /- <0.01%)
/(main)/(landing)/(mdx)/legal/privacy/page 33.54 KB 188.8 KB 53.94% ( /- <0.01%)
/(main)/(landing)/(mdx)/legal/terms/page 33.54 KB 188.8 KB 53.94% ( /- <0.01%)
/(main)/docs/(mdx)/countries/page 33.54 KB 188.8 KB 53.94% ( /- <0.01%)
/(main)/docs/(mdx)/customers/purchases/page 33.54 KB 188.81 KB 53.94% ( /- <0.01%)
/(main)/docs/(mdx)/fees/page 33.54 KB 188.8 KB 53.94% ( /- <0.01%)
/(main)/docs/(mdx)/finance/payouts/page 33.54 KB 188.8 KB 53.94% ( /- <0.01%)
/(main)/docs/(mdx)/github/funding-yaml/page 33.54 KB 188.8 KB 53.94% ( /- <0.01%)
/(main)/docs/(mdx)/merchant-of-record/compliance/page 33.54 KB 188.81 KB 53.94% ( /- <0.01%)
/(main)/docs/(mdx)/subscriptions/page 33.54 KB 188.8 KB 53.94% ( /- <0.01%)
/(main)/docs/developers/guides/node/page 34.02 KB 189.29 KB 54.08% ( /- <0.01%)
/(main)/docs/developers/sdk/polar-init/page 34.02 KB 189.29 KB 54.08% ( /- <0.01%)
/(main)/docs/developers/sdk/polar-migrate/page 33.54 KB 188.8 KB 53.94% ( /- <0.01%)
/(main)/docs/developers/sdk/github-actions/page 34.02 KB 189.29 KB 54.08% ( /- <0.01%)
/(main)/docs/developers/sdk/python/page 33.54 KB 188.8 KB 53.94% ( /- <0.01%)
/(main)/docs/developers/sdk/checkout-link/page 34.02 KB 189.29 KB 54.08% ( /- <0.01%)
/(main)/docs/developers/sdk/typescript/page 33.54 KB 188.81 KB 53.94% (🟡 0.01%)
/(main)/docs/developers/webhooks/events/page 361 B 155.62 KB 44.46% ( /- <0.01%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see " /- <0.01%" it means that there was a change in bundle size, but it is a trivial enough amount that it can be ignored.

@frankie567 frankie567 merged commit fa6f853 into main Dec 24, 2024
9 checks passed
@frankie567 frankie567 deleted the dependabot/github_actions/astral-sh/setup-uv-5 branch December 24, 2024 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant