PyPI 400 upload error

后端 未结 2 1500
感动是毒
感动是毒 2021-02-07 08:20

I created a package in PyPI named virtdc. I made some changes and uploaded 2 different versions 0.1.0 and 0.1.1. Now I deleted version 0.1.1 through the PyPI web interface and t

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-07 08:46

    I had the same problem, and it seems there is no straight fix:

    http://sourceforge.net/p/pypi/support-requests/468

    However, if you want to upload a source distribution, there is a workaround which is not too ugly. You can build a "zip" archive instead of a "tar.gz" archive. You can control this e.g. via

    python setup.py sdist --formats=zip
    

    This way, you obtain a different file name. Then you might append the upload command directly

    python setup.py sdist --formats=zip upload
    

    Or you might use twine to upload after building:

    twine upload dist/*
    

提交回复
热议问题