如何在将python包上传到pypi时生成md5签名?

2024-05-08 19:02:01 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试生成和添加新版本的md5散列,我正在pypi上上载,但我无法找到如何做到这一点。在

到目前为止,我找到的唯一引用是这个https://pip.pypa.io/en/latest/reference/pip_install.html,但它没有包含任何信息。在

例如,我可以很容易地添加PGP签名,但是对于md5,似乎没有文档。在

我当前的释放命令如下所示:

python setup.py register sdist bdist_wheel upload_docs upload --sign --identity 17D27B8A

Tags: installpiphttpsio版本pypi信息html
1条回答
网友
1楼 · 发布于 2024-05-08 19:02:01

您不需要为PyPI包添加MD5散列。PyPI为您计算这些值。在

事实上,pip install文档refers to

PyPI provides md5 hashes in the hash fragment of package download urls.

(重点是我的)。在

您需要做的就是将您的包(二进制或源代码)上载到PyPI项目,PyPI将从那里获得它。在

相关问题 更多 >