Skip to content

Use API tokens by default for PyPI #561

Open
@bhrutledge

Description

@bhrutledge

This idea occurred to me after responding to pypa/packaging-problems#313, and the reporter subsequently suggested something similar.

In my head, this would look something like:

$ twine upload dist/* 
Uploading distributions to https://upload.pypi.org/legacy/
Enter your API token: 

On the implementation side of things, I wonder if it'd be sufficient to default username to __token__ for PyPI and TestPyPI. But, maybe it would be clearer to add an explicit token option.

Very open to opinions on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementquestionDiscussion/decision needed from maintainers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions