二进制轮无法使用麻线上传到pypi

Binary wheel can't be uploaded on pypi using twine

我正在尝试通过 github actions

在 Pypi 上为 linux 和 windows 上传一个包

与 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)。

您需要通过 manylinux project and the auditwheel tool.

将这个特定于平台的 wheel 转换为 manylinux wheel