Skip to content

Respect package-scoped source filtering for scripts - #20389

Merged
charliermarsh merged 1 commit into
astral-sh:mainfrom
zaniebot:zb/bughunt100/049-script-package-scoped-sources
Jul 14, 2026
Merged

Respect package-scoped source filtering for scripts#20389
charliermarsh merged 1 commit into
astral-sh:mainfrom
zaniebot:zb/bughunt100/049-script-package-scoped-sources

Conversation

@zanieb

@zanieb zanieb commented Jul 14, 2026

Copy link
Copy Markdown
Member

uv run --no-sources-package unrelated drops every PEP 723 tool.uv.sources and [[tool.uv.index]] entry, so an unrelated package filter can make a valid local-wheel dependency unavailable even though uv lock --script retains it. Filter script sources by the specified package.

See the original package-scoped-sources request.

@zanieb zanieb added bug Something isn't working projects Related to project management capabilities labels Jul 14, 2026
@zanieb
zanieb requested a review from charliermarsh July 14, 2026 18:04
@zaniebot
zaniebot force-pushed the zb/bughunt100/049-script-package-scoped-sources branch 2 times, most recently from 975670e to 5071b81 Compare July 14, 2026 18:26
@zaniebot
zaniebot force-pushed the zb/bughunt100/049-script-package-scoped-sources branch from 5071b81 to ebe0fcb Compare July 14, 2026 18:31
@astral-sh-bot

astral-sh-bot Bot commented Jul 14, 2026

Copy link
Copy Markdown

uv test inventory changes

This PR changes the tests when compared with the latest main baseline.

  • Added tests: 1
  • Removed tests: 0
  • Changed suites: 1
uv::project: +1 / -0

Added:

  • uv::project::run::run_pep723_script_no_sources_package

Removed: none

@charliermarsh charliermarsh left a comment

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.

Very surprised we shipped that!

@charliermarsh
charliermarsh merged commit 1858138 into astral-sh:main Jul 14, 2026
57 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working projects Related to project management capabilities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants