A guide for updating packages on PyPi

℡╲_俬逩灬. 提交于 2019-12-01 06:36:04

I found out what my problem was - I did not delete the old files in the dist folder, so the uploader tried to upload them before the new files, and failed. The solution was to:

a. Delete all files in the dist folder.

b. Update the version number in the setup.py file.

c. Re-create the wheels:

python3 setup.py sdist bdist_wheel

d. Re-upload the new files:

twine upload dist/*
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!