Skip to content

Investigate a way to programatically publish a draft release #11312

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

Open
alanbato opened this issue May 2, 2022 · 2 comments
Open

Investigate a way to programatically publish a draft release #11312

alanbato opened this issue May 2, 2022 · 2 comments
Labels
feature request needs discussion a product management/policy issue maintainers and users should discuss

Comments

@alanbato
Copy link
Contributor

alanbato commented May 2, 2022

Sat down with @alanbato at the PyCon sprints and thought through a plan for what we need to do to get this mergeable

  • Programmatic way to turn a draft release into a published release: One thing this feature is missing right now is a way for a user to tell PyPI that a draft release should be published without needing to log into PyPI and do this via the UI itself. Users publishing multiple releases across multiple CI systems probably want some way to determine once all their draft releases have been made, and tell PyPI to publish. This doesn't need to be included in this PR but we should have a plan to work towards it before merging.

Originally posted by @di in #8941 (comment)

One way to do this without making significant changes to twine or our API, is leverage the same mechanism proposed to upload the draft release in the first place, which is to use a special HEADER as part of the request that uploads the package.

One downside of this approach though, is that there'd need to be a final "upload" of the package to mark it to be published, even if there are no source code changes involved. This would add unnecessary bandwidth usage, and could be non-ideal for big packages.

@dstufft
Copy link
Member

dstufft commented May 2, 2022

We could just make the file (and most of the data TBH, all we really need is name + version) not required when that header is present.

@dstufft
Copy link
Member

dstufft commented Jun 28, 2022

There is now PEP 694: Upload 2.0 API for Python Package Repositories, which has discussions on discuss.python.org which is relevant to this issue.

@di di added feature request needs discussion a product management/policy issue maintainers and users should discuss labels Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request needs discussion a product management/policy issue maintainers and users should discuss
Projects
None yet
Development

No branches or pull requests

3 participants