Use this instead
For uploading on test.pypi.org:
twine upload --repository testpypi dist/*
For uploading pypi:
twine upload --repository pypi dist/*