Skip to content

Log missing conventional README at debug level#5258

Open
Sanjays2402 wants to merge 1 commit into
pypa:mainfrom
Sanjays2402:fix/sdist-readme-warning
Open

Log missing conventional README at debug level#5258
Sanjays2402 wants to merge 1 commit into
pypa:mainfrom
Sanjays2402:fix/sdist-readme-warning

Conversation

@Sanjays2402

@Sanjays2402 Sanjays2402 commented Jul 13, 2026

Copy link
Copy Markdown

Summary of changes

The sdist command currently emits a warning when none of the conventional README filenames are present. That diagnostic is informational rather than actionable, and it can be misleading for projects that intentionally use a nonstandard README filename.

This changes the diagnostic from warning to debug output, keeping it available for troubleshooting without showing it during normal builds. It also adds a regression test that verifies the message is logged at the debug level.

Closes #4122

Pull Request Checklist

Projects may configure a nonstandard readme in pyproject.toml, but
sdist.check_readme emitted its informational fallback through Command.warn.

Emit the diagnostic at debug level and cover its severity with a regression
test.

Fixes pypa#4122
@mergify

mergify Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@Sanjays2402

Copy link
Copy Markdown
Author

@Mergifyio queue

@mergify

mergify Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

queue

☑️ Command disallowed due to command restrictions in the Mergify configuration.

Details
  • sender-permission >= write

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Improvement] sdist complains about missing readme where readme key is in pyproject.toml

1 participant