Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting error only one sdist may be uploaded

Tags:

Why is this creating 2 tar.gz files, ‘ python setup.py sdist? I am trying to upload using twine upload -r pypitest dist/*.tar.gz and i get error saying

HTTPError: 400 Client Error: Only one sdist may be uploaded per release. for url: https://test.pypi.org/legacy/
ERROR: Job failed: exit code 1

Here is the full setup.py

like image 563
Ciasto piekarz Avatar asked May 23 '18 14:05

Ciasto piekarz


1 Answers

Looks like your command twine upload -r pypitest dist/*.tar.gz is matching more than one tar.gz files and trying to upload them.

You can either be more specific with your command to refer to only one of these packages e.g. twine upload -r pypitest dist/yourPackageName.tar.gz, or simply remove the other tar.gz file(s) in the dist directory

like image 197
ECH Avatar answered Oct 07 '22 16:10

ECH