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.
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:
On the implementation side of things, I wonder if it'd be sufficient to default
usernameto__token__for PyPI and TestPyPI. But, maybe it would be clearer to add an explicittokenoption.Very open to opinions on this.