PyPI错误“上传失败(400):摘要:不允许多行”是什么意思?

时间:2017-03-19 15:03:18

标签: python pypi

我只是尝试将新版本的软件包上传到PyPI,但是出现了这个错误:

$ python setup.py sdist bdist_wheel upload
…
Writing pip2pi-0.7.0/setup.cfg
Creating tar archive
removing 'pip2pi-0.7.0' (and everything under it)
running upload
Submitting /Users/wolever/code/pip2pi/dist/pip2pi-0.7.0-py2.py3-none-any.whl to https://upload.pypi.org/legacy/
Upload failed (400): summary: Multiple lines are not allowed.
error: Upload failed (400): summary: Multiple lines are not allowed.

这是什么意思?我该如何解决?

此软件包的早期版本上传时没有问题。

我要上传的代码:https://github.com/wolever/pip2pi/tree/a026f05a265a6f8c7fb7a5c4cf6484b9ede77761

1 个答案:

答案 0 :(得分:5)

在某些时候必须对PyPI进行更改,禁止多行描述。删除y=20 x=20 later y=20 x=423 refresh y=423 x=423 description="…"字段中的换行符修复了问题:https://github.com/wolever/pip2pi/commit/6f24cec93344fdc133e97ead5f81224e7eb4a249

相关问题