GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add uv-build to table by cbrnr · Pull Request #1880 · pypa/packaging.python.org

Conversation

@cbrnr

@cbrnr cbrnr commented Jul 16, 2025 •
edited by github-actions Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

uv-build is stable since 0.7.19 and supports PEP 639.


📚 Documentation preview 📚: https://python-packaging-user-guide--1880.org.readthedocs.build/en/1880/

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

johnthagen and woodruffw reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
@cbrnr
Add uv-build to table
9a6a435
webknjaz
webknjaz approved these changes Jul 17, 2025
View reviewed changes
@webknjaz
webknjaz enabled auto-merge July 17, 2025 07:38
@hoechenberger hoechenberger mentioned this pull request Jul 17, 2025
Question: why uv is not shown in Python documentation astral-sh/uv#14672
Open
Mey1986
Mey1986 approved these changes Jul 18, 2025
View reviewed changes
@cbrnr

cbrnr commented Jul 18, 2025

Copy link
Copy Markdown
Contributor Author

I'm happy to add uv-build in the other locations mentioned in the linked issue. Is it OK in this PR, or should I open a new one?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cbrnr
Add uv in other places
bfd629b
auto-merge was automatically disabled July 18, 2025 06:58

Head branch was pushed to by a user without write access

@pre-commit-ci
[pre-commit.ci] auto fixes from pre-commit.com hooks
4bd6330
for more information, see https://pre-commit.ci
@cbrnr

cbrnr commented Jul 18, 2025

Copy link
Copy Markdown
Contributor Author

I think it's easy enough to add this here.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cbrnr
Use first version that supported PEP 639
f57c5bf
cbrnr
cbrnr commented Jul 18, 2025
View reviewed changes

@cbrnr cbrnr left a comment •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that the table in writing-pyproject-toml.rst lists hatchling 1.27.0, whereas build-backend-tabs.rst contains 1.26.0. Should I fix this and if so, which one is the correct version?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@webknjaz

webknjaz commented Jul 20, 2025

Copy link
Copy Markdown
Member

It's probably a good idea to separate such changes. Also, the broken link needs a separate PR too, to unblock this.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

webknjaz
webknjaz reviewed Jul 20, 2025
View reviewed changes
Comment thread source/shared/build-backend-tabs.rst
.. code-block:: toml

[build-system]
requires = ["uv_build >= 0.7.19, <0.9.0"]

@webknjaz webknjaz Jul 20, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upper limits are normally discouraged. What's the justification here?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

hroncok reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

@cbrnr cbrnr Jul 20, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the note in their official docs: https://docs.astral.sh/uv/concepts/build-backend/#using-the-uv-build-backend

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@konstin konstin Jul 21, 2025

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We make (careful) breaking changes in the configuration format in 0.x releases, i.e. the configuration is only stable between >=0.x and <0.(x+1). Being a build backend, the usual concerns about upper bounds don't apply: The uv build backend is a binary with only a minimal Python shim, so older versions of the build backend will still work with newer Python versions. It has zero dependencies and is the only package in the build venv, so the aren't any conflicts the upper bound could cause.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

zanieb, notatallshaw, cbrnr, hoechenberger, and twmr reacted with thumbs up emoji
All reactions
  • 👍 5 reactions

@webknjaz webknjaz Jul 30, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Being a build backend, the usual concerns about upper bounds don't apply

That may be true upstream, but may present a challenge for the downstream maintainers as they often have a single version of a thing across their entire repositories (per distro release).

cc @befeleme @hroncok @mgorny any downstream insights on this?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@hroncok hroncok Jul 30, 2025

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't encourage upper bounds here. If you do, we'll and up in a position where we cannot update uv-build until we lift them. We won't be even able to test the packages with the new uv-build version in Fedora because of the pin.

Thanks @webknjaz for the mention.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

musicinmybrain, befeleme, and webknjaz reacted with thumbs up emoji
All reactions
  • 👍 3 reactions

@ncoghlan ncoghlan Aug 2, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting back to the specific question of this PR review (rather than the more general ones of showing exact version numbers and upper bounds in build dependencies):

  • mentioning uv-build is a reasonable change to make
  • the exact build backend version number problem is an existing issue, not new in this PR
  • the upper bound problem is an existing issue (due to flit), not new in this PR

That says to me that we should define a new PyPUG issue regarding the maintainability of those config snippets, and avoid having that concern block this PR.

I've created that issue here: #1886

@webknjaz Given the creation of the dedicated issue, are you happy to consider the question resolved for the purpose of adding uv-build to the example backends?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

cbrnr, notatallshaw, and konstin reacted with thumbs up emoji zanieb reacted with heart emoji
All reactions
  • 👍 3 reactions
  • ❤️ 1 reaction

@webknjaz webknjaz Aug 2, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ncoghlan I'm worried that accepting this as is would make the existing problem worse. And doing so is too impactful to just disregard it. The downstreams have expressed legitimate concern. Perhaps, we should address that issue you filed first so this PR wouldn't be as harmful?


@notatallshaw

because indeed they can not be kept up to date

I see regular PRs to update the setuptools lower bound, why would this be any different?

This is different because the example with setuptools is adding new features and when documenting them, the bound has to be updated for things to work. Inevitably.

But the same isn't happening when things break. Nobody comes in to update the guide documenting breakages and adjusting related bounds. And so there's no process for when this would be happening.

There should be a very obvious note leading to an explanation of why one should set version constraints with examples of how to write such version constraints and an advice to go check each project's own documentation regarding their versioning policies.

Every other build back end has lower bound version constraints, flit has lower and upper: https://packaging.python.org/en/latest/guides/writing-pyproject-toml/

Why are you adding this requirement for uv_build when it's not been required to any other build back end?

Lower bounds are fine. Flit was mostly missed. It should also have an admonition explaining that upper bounds should be updated often. Maybe this admonition makes sense to have below all the examples, not selectively.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

sinoroc reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

@ncoghlan ncoghlan Aug 4, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess my view is that the PR itself isn't really making things worse, it's instead making this existing problem with the status quo more obvious.

Omitting the upper bounds creates an "old project releases may not build" scenario that affects potentially everyone, whereas including them has a more limited impact specifically on "unified build environment" scenarios (which could potentially be mitigated by build tooling changes, such as an option to ignore upper bounds in build dependency declarations and see if anything actually breaks with the newer build tool versions).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

cbrnr, hoechenberger, konstin, and sinoroc reacted with thumbs up emoji webknjaz reacted with eyes emoji
All reactions
  • 👍 4 reactions
  • 👀 1 reaction

@webknjaz webknjaz Aug 8, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mgorny @hroncok while merging this didn't exactly cater to your needs, I'd like to suggest discussing a systemic change to adding mentions of what's important for downstreams throughout PyPUG, if you're interested. Maybe, some admonitions linking to #1791 where relevant.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@konstin konstin Aug 26, 2025

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've filed a PR to automatically update the uv_build version range, to address the concern that the bounds would go stale: #1899

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@konstin konstin mentioned this pull request Jul 21, 2025
Add uv / uv_build to the Python Packaging User Guide astral-sh/uv#14794
Closed
@johnthagen

johnthagen commented Jul 21, 2025

Copy link
Copy Markdown

Another place it might be worth mentioning uv_build

  • https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license-and-license-files
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cbrnr

cbrnr commented Jul 21, 2025

Copy link
Copy Markdown
Contributor Author

@johnthagen that's already part of this PR.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cbrnr

cbrnr commented Jul 21, 2025

Copy link
Copy Markdown
Contributor Author

@webknjaz the broken link works for me, can you re-run the failing test?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@webknjaz

webknjaz commented Jul 21, 2025

Copy link
Copy Markdown
Member

Okay, I restarted it, but since this has been failing in multiple PRs, I don't expect it to succeed. Sometimes, different websites rate-limit or block access for crawlers or networks. In that case, they may open in a regular browser but break when on GitHub's network or just based on the User-Agent or similar.
This means sometimes having to suppress select URLs or configuring something..

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cbrnr

cbrnr commented Jul 22, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

You're probably right, but I think this problem should then be fixed in a different PR. One option would be to add this URL to linkcheck_ignore. See #1881.

webknjaz reacted with eyes emoji
All reactions
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mgorny

mgorny commented Jul 30, 2025

Copy link
Copy Markdown
Contributor

And I think that the option of uv-build should include a warning that it introduces a dependency on the Rust compiler for pure Python packages, which is a limiting factor for downstream adoption.

webknjaz reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@zanieb

zanieb commented Jul 30, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

And I think that the option of uv-build should include a warning that it introduces a dependency on the Rust compiler for pure Python packages, which is a limiting factor for downstream adoption.

It sounds pretty challenging to say this in a way that makes sense to the target audience here? It adds a dependency on the Rust compiler for people who are on uncommon systems or won't use prebuilt wheels of uv-build. I don't mean to trivialize the concern, but I don't really see why this belongs in the list of available build backends.

cbrnr, woodruffw, and hoechenberger reacted with thumbs up emoji
All reactions
  • 👍 3 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@konstin

konstin commented Jul 30, 2025

Copy link
Copy Markdown
Contributor

Also note that we're only building pure Python py3-none-any wheels, so it is possible to build a package on any supported linux/windows/mac/... machine and reuse on any other system. Similarly, users of those packages never have to build from source, as py3-none-any wheels exist on the index.

Please see astral-sh/uv#3957 (comment), where we're addressing a lot of the common concerns there.

woodruffw and geofft reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@geofft geofft mentioned this pull request Jul 31, 2025
Better handling of multiple uv-build versions for repackagers / distros astral-sh/uv#15000
Open
@ncoghlan
Merge branch 'main' into patch-2
2f4a15a
@ncoghlan ncoghlan mentioned this pull request Aug 2, 2025
Maintaining the example build backend specifiers #1886
Open
1 task done
ncoghlan
ncoghlan approved these changes Aug 2, 2025
View reviewed changes

@ncoghlan ncoghlan left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I'll give @webknjaz time to consider my suggestion on the version number/bounds maintainability question.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@webknjaz
webknjaz enabled auto-merge August 8, 2025 21:32
@webknjaz

webknjaz commented Aug 8, 2025

Copy link
Copy Markdown
Member

Alright, let's give it a go.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@webknjaz
webknjaz added this pull request to the merge queue Aug 8, 2025
Merged via the queue into pypa:main with commit 4e2c714 Aug 8, 2025
@notatallshaw notatallshaw mentioned this pull request Aug 11, 2025
Add build constraints pypa/pip#13534
Merged
konstin added a commit to konstin/packaging.python.org that referenced this pull request Aug 25, 2025
@konstin
Update uv_build version automatically
92a58b0
In pypa#1880, the concern was raised that the uv_build upper bound in the docs will go stale. This PR adds a GitHub Actions workflow that automatically updates the version daily with the latest uv(-build) version.

I tested this change on my fork, but I unfortunately can't test this in pypa/packaging.python.org itself.
konstin added a commit to konstin/packaging.python.org that referenced this pull request Aug 25, 2025
@konstin
Update uv_build version automatically
28b3f79
In pypa#1880, the concern was raised that the uv_build upper bound in the docs will go stale. This PR adds a GitHub Actions workflow that automatically updates the version daily with the latest uv(-build) version.

I tested this change on my fork, but I unfortunately can't test this in pypa/packaging.python.org itself.
konstin added a commit to konstin/packaging.python.org that referenced this pull request Aug 25, 2025
@konstin
Update uv_build version automatically
8290c3f
In pypa#1880, the concern was raised that the uv_build upper bound in the docs will go stale. This PR adds a GitHub Actions workflow that automatically updates the version daily with the latest uv(-build) version.

I tested this change on my fork, but I unfortunately can't test this in pypa/packaging.python.org itself.
This was referenced Aug 25, 2025
Update uv_build version automatically konstin/packaging.python.org#1
Merged
Update uv_build version automatically #1899
Merged
@WSH032 WSH032 mentioned this pull request Aug 29, 2025
build: remove upper version constraint for build-system.requires deps pytauri/pytauri#263
Merged
4 tasks done
@konstin konstin mentioned this pull request Sep 1, 2025
Evolution and developer experience of provider plugins wheelnext/pep_817_wheel_variants#71
Open
@rgommers rgommers mentioned this pull request Nov 12, 2026
Update uv_build version to 0.13.7 #2180
Draft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@webknjaz webknjaz webknjaz approved these changes
@ncoghlan ncoghlan ncoghlan approved these changes
+9 more reviewers
@geofft geofft geofft left review comments
@mgorny mgorny mgorny left review comments
@hroncok hroncok hroncok left review comments
@zanieb zanieb zanieb left review comments
@sinoroc sinoroc sinoroc left review comments
@konstin konstin konstin left review comments
@musicinmybrain musicinmybrain musicinmybrain left review comments
@notatallshaw notatallshaw notatallshaw left review comments
@Mey1986 Mey1986 Mey1986 approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

13 participants

@cbrnr @webknjaz @johnthagen @mgorny @zanieb @konstin @geofft @ncoghlan @hroncok @sinoroc @musicinmybrain @notatallshaw @Mey1986
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.