I am getting an error when i run twine upload

Question:

I ran this command:

twine upload ./*

and this error happened:

Uploading distributions to https://upload.pypi.org/legacy/
ERROR    InvalidDistribution: Unknown distribution format:  
         'dist'

edit: I forgot to run it in the dist folder

Asked By: tjwllms52

||

Answers:

Well, what does ./* expand to? Chances are you’ve built your packages one way or another, and you now have a dist/* directory with the package files, so the correct incantation would be

twine upload dist/*

to upload the one or two files in dist/.

Answered By: AKX
Categories: questions Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.