packaging.python.org icon indicating copy to clipboard operation
packaging.python.org copied to clipboard

Document the solution for folks who can't paste their token in twine correctly

Open dukecat0 opened this issue 3 years ago • 5 comments

@bhrutledge That would be a good spot to document it. Also, maybe it should be documented in https://packaging.python.org/tutorials/packaging-projects/ if possible. If four people have reported it that I see, maybe others have tried to upload using twine and have been unable to do so.

Originally posted by @mathstar13 in https://github.com/pypa/twine/issues/671#issuecomment-678659253

The section to add this would be: https://packaging.python.org/tutorials/packaging-projects/#uploading-the-distribution-archives

Solution: https://github.com/pypa/twine/issues/671#issuecomment-675575517

(Or just add a reference to https://pypi.org/help/#invalid-auth)

dukecat0 avatar Sep 04 '21 13:09 dukecat0

I think linking to https://pypi.org/help/#invalid-auth in a .. tip:: below the twine output would be very helpful.

bhrutledge avatar Sep 06 '21 21:09 bhrutledge

We could try embedding that GIF in a collapsible block so that it does not distract folks who don't need a visual clue. I wouldn't commit it to Git, though.

webknjaz avatar Oct 16 '21 15:10 webknjaz

We could try embedding that GIF in a collapsible block so that it does not distract folks who don't need a visual clue. I wouldn't commit it to Git, though.

@webknjaz Where would you host the image? Are there other pages that use images?

bhrutledge avatar Oct 17 '21 10:10 bhrutledge

There are assets @ https://github.com/pypa/packaging.python.org/tree/main/source/assets but Git is not designed to store blobs effectively so I'd only keep SVGs in the repo.

As for the GIF, I imagine that it may be possible to just embed the GH-hosted one that is already uploaded in your comment.

webknjaz avatar Oct 17 '21 15:10 webknjaz

@bhrutledge here's a way of uploading pics to the GH CDN: https://gist.github.com/vinkla/dca76249ba6b73c5dd66a4e986df4c8d

webknjaz avatar Oct 19 '21 18:10 webknjaz