Skip to content

Warn when workspace member scripts are skipped due to missing build system#18389

Merged
charliermarsh merged 3 commits intoastral-sh:mainfrom
terror:entrypoint-warning-skipped
Mar 10, 2026
Merged

Warn when workspace member scripts are skipped due to missing build system#18389
charliermarsh merged 3 commits intoastral-sh:mainfrom
terror:entrypoint-warning-skipped

Conversation

@terror
Copy link
Copy Markdown
Contributor

@terror terror commented Mar 9, 2026

Resolves #18388

When a workspace member declares [project.scripts] without a [build-system] table or tool.uv.package = true, uv silently skips installing those entry points. The warning that normally fires for the root project was never emitted for non-root workspace members, because the check only inspected the workspace root's pyproject.toml.

This diff replaces the single-project check with a loop over all workspace members, so the warning fires for any member that has scripts but is not packaged. The warning message now includes the package name to make it actionable when multiple members are involved.

@zsol zsol self-requested a review March 9, 2026 18:42
@terror terror changed the title Warn when workspace member scripts are skipped due to missing build s… Warn when workspace member scripts are skipped due to missing build step Mar 10, 2026
@terror terror changed the title Warn when workspace member scripts are skipped due to missing build step Warn when workspace member scripts are skipped due to missing build system Mar 10, 2026
Copy link
Copy Markdown
Member

@zsol zsol left a comment

Choose a reason for hiding this comment

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

Nice, thank you!

@charliermarsh charliermarsh merged commit 5fca951 into astral-sh:main Mar 10, 2026
100 of 103 checks passed
@charliermarsh charliermarsh added the error messages Messaging when something goes wrong label Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

error messages Messaging when something goes wrong

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No warning printed about entrypoint installation being skipped for workspace members

3 participants