我正在尝试从 github actions 上传适用于 linux 和 windows 的 Pypi 包
使用linux我得到这个结果
Binary wheel 'xxx-cp36-cp36m-linux_x86_64.whl' has an unsupported platform tag 'linux_x86_64'.
在 Windows 安装过程中
InvalidDistribution: Cannot find file (or expand pattern): 'dist/*'
上传的代码是
python setup.py sdist bdist_wheel
twine upload dist/* --verbose
关于如何上传 Linux 和 Windows 发行版有什么想法吗?
您无法上传linux_*.whl
转至 PyPI(原因here https://www.python.org/dev/peps/pep-0513/#rationale).
您需要通过以下命令将此特定于平台的轮子转换为 Manylinux 轮子manylinux project https://github.com/pypa/manylinux和auditwheel tool https://github.com/pypa/auditwheel.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)