How do I upload a Universal Python Wheel for Python 2 and 3?

不打扰是莪最后的温柔 提交于 2019-12-04 02:39:33

The command python3 setup.py sdist bdist_wheel upload creates a new wheel distribution.

You'll need to include the same flags again on that command line:

python3 setup.py sdist bdist_wheel --universal upload

It's better to use twine to manage the uploads; it'll use an encrypted connection (setuptools uses an unencrypted connection and thus sends your username and password in the clear) and it allows you to inspect and test the distribution before uploading:

python3 setup.py sdist
python3 setup.py bdist_wheel --universal
# test the distributions
twine upload dist/*

Twine is currently also the only tool that sets the 'Py versions' metadata for PyPI correctly for universal wheels.

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