Skip to content

Require wheels for Python tooling dependencies - #27861

Merged
zanieb merged 1 commit into
astral-sh:mainfrom
zaniebot:agent/no-build-by-default
Aug 19, 2026
Merged

zanieb merged 1 commit into
astral-sh:mainfrom
zaniebot:agent/no-build-by-default

Conversation

@zaniebot

@zaniebot zaniebot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Python tooling can currently build third-party source distributions. Set no-build in the maintained Python projects and PEP 723 scripts, retaining named exceptions for Git-pinned tooling and the local ecosystem runner. Pin the isolated build dependencies for those exceptions, including their transitive requirements.

Follows merged #27856, which gives the legacy ruff-lsp suite a dedicated, locked Python 3.12 test environment.

Follow-up to #27843. Replaces #27840, which closed when the merged docs branch was deleted.

@zanieb zanieb self-assigned this Aug 18, 2026
@astral-sh-bot

astral-sh-bot Bot commented Aug 18, 2026

Copy link
Copy Markdown

Typing conformance results

No changes detected ✅

Current numbers
The percentage of diagnostics emitted that were expected errors held steady at 97.68%. The percentage of expected errors that received a diagnostic held steady at 93.44%. The number of fully passing files held steady at 109/136.

@astral-sh-bot

astral-sh-bot Bot commented Aug 18, 2026

Copy link
Copy Markdown

Memory usage report

Memory usage unchanged ✅

@codspeed

codspeed Bot commented Aug 18, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 60 untouched benchmarks
⏩ 143 skipped benchmarks1


Comparing zaniebot:agent/no-build-by-default (80c7281) with main (0680a1b)

Open in CodSpeed

Footnotes

  1. 143 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@zanieb zanieb added the ci Related to internal CI tooling label Aug 18, 2026
@astral-sh-bot

astral-sh-bot Bot commented Aug 18, 2026

Copy link
Copy Markdown

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

@zanieb
zanieb marked this pull request as ready for review August 18, 2026 23:11
@zanieb
zanieb requested review from a team and AlexWaygood as code owners August 18, 2026 23:11
@zaniebot
zaniebot force-pushed the agent/no-build-by-default branch from 31562e2 to fa82cfc Compare August 18, 2026 23:15
@zaniebot
zaniebot changed the base branch from main to agent/ruff-lsp-test-environment August 18, 2026 23:16
@zaniebot
zaniebot force-pushed the agent/no-build-by-default branch from fa82cfc to 5b6f76b Compare August 18, 2026 23:20
# dependencies = []
#
# [tool.uv]
# no-build = true

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Does uv need setting inheritance for scripts? 😆

@AlexWaygood

Copy link
Copy Markdown
Member

I filed zaniebot#1 against this branch to move more of our Python tools away from hatchling as a build backend. That dramatically decreases the build dependencies we need to pin in some cases.

@zaniebot
zaniebot force-pushed the agent/no-build-by-default branch from 5b6f76b to 52c891a Compare August 19, 2026 13:57
@zaniebot
zaniebot requested review from a team and dhruvmanila as code owners August 19, 2026 13:57
@zanieb
zanieb force-pushed the agent/ruff-lsp-test-environment branch from b87ecd8 to 9bba2d2 Compare August 19, 2026 13:57
zanieb pushed a commit that referenced this pull request Aug 19, 2026
The legacy `ruff-lsp` compatibility job installs the archived project's
entire development environment, including `mypy` and `typed-ast`, even
though it only runs pytest. Those frozen development dependencies
require source builds on Python 3.12.

Add a locked `ruff-lsp-test` dependency group containing the runtime and
test dependencies. Keep the suite on Python 3.12, the newest version
covered by the archived project's CI, and leave the published `ruff`
package out of the environment so the tests exercise the binary built
from this checkout.

This is the base for #27861, which requires wheels for
Python tooling dependencies.

---------

Co-authored-by: zaniebot <[email protected]>
@astral-sh-bot

astral-sh-bot Bot commented Aug 19, 2026 •

Copy link
Copy Markdown

ecosystem-analyzer results

No diagnostic changes detected ✅

Flaky changes detected. This PR summary excludes flaky changes; see the HTML report for details.

Full report with detailed diff (timing results)

@zaniebot
zaniebot force-pushed the agent/no-build-by-default branch from 52c891a to 80c7281 Compare August 19, 2026 14:07
@zaniebot
zaniebot changed the base branch from agent/ruff-lsp-test-environment to main August 19, 2026 14:07
@zanieb
zanieb enabled auto-merge (squash) August 19, 2026 14:09
@zanieb
zanieb merged commit 6dd1fa8 into astral-sh:main Aug 19, 2026
90 of 96 checks passed
carljm added a commit that referenced this pull request Aug 19, 2026
…ype-form

* origin/main:
  [ty] Fix dynamic-class diagnostic snapshot in string annotations (#27890)
  Lock `wrangler` for playground deployments (#27838)
  [ty] Dogfood standalone scripts with inline configuration (#27885)
  Annotate intentional release secret inheritance (#27887)
  [ty] Skip invalid subscript operands in string annotations (#27882)
  [ty] Handle dynamic classes in string annotations (#27883)
  Disable `npm` install scripts by default (#27837)
  Require wheels for Python tooling dependencies (#27861)
  Update dependency pytest to v9 (#27881)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Related to internal CI tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants