Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support X-PyPI-Is-Staged #17331

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from
Draft

Conversation

DarkaMaul
Copy link
Contributor

This PR is built on top of #17257 and implements the second stage of staged release.

The workflow is as follows:

  • A user sends a request to legacy/?:action=file_upload with the header X-PyPI-Is-Staged to initiate a stage release.
    If the header is set, the release field published is set to False.
  • The user then can perform multiple requests to the same endpoint with the header set. (_restrictions on file immutability still apply - it is impossible to replace a previously uploaded file). While the header is set, the release has still not been published.
  • With the last upload, the user MUST not send the header. This will publish the release.

A follow-up PR will add the possibility of publishing / un-stage a release via the user interface.

/cc @woodruffw @facutuesca

marked as draft until #17257 is merged

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.

4 participants