Skip to content

Fix default handling in PEP 792 status markers#17671

Merged
woodruffw merged 1 commit intomainfrom
ww/pep792-tests
Jan 23, 2026
Merged

Fix default handling in PEP 792 status markers#17671
woodruffw merged 1 commit intomainfrom
ww/pep792-tests

Conversation

@woodruffw
Copy link
Member

@woodruffw woodruffw commented Jan 23, 2026

Summary

"project-status": {} is a perfectly valid PEP 792 status response, which just means "default status" (active) and "no reason given." We previously didn't handle that correctly because we didn't tell serde it could use the default impls to fill in missing fields. Now we do.

See #17631.

Part of #15254.

Test Plan

Added two testcases for this.

Signed-off-by: William Woodruff <william@astral.sh>
@woodruffw woodruffw self-assigned this Jan 23, 2026
@woodruffw woodruffw added the internal A refactor or improvement that is not user-facing label Jan 23, 2026
@woodruffw woodruffw requested a review from konstin January 23, 2026 16:44
@woodruffw woodruffw added the test:integration Enable integration tests for a pull request label Jan 23, 2026
@woodruffw
Copy link
Member Author

TestPyPI seems to be a little flakey at the moment.

@woodruffw woodruffw merged commit 73410fa into main Jan 23, 2026
144 of 155 checks passed
@woodruffw woodruffw deleted the ww/pep792-tests branch January 23, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal A refactor or improvement that is not user-facing test:integration Enable integration tests for a pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants