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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With