What does the PyPI Error "Error loading" (400): summary: multiple lines not allowed "mean?

I just tried downloading the new version of the package in PyPI, but got this error:

$ 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.

What does it mean? And how can I fix this?

Previous versions of this package downloaded without problems.

The code I'm trying to download is: https://github.com/wolever/pip2pi/tree/a026f05a265a6f8c7fb7a5c4cf6484b9ede77761

+4
source share
1 answer

At some point, a change was made to PyPI that prohibits multi-line descriptions. Removing new lines in the field description="…" setup.pyfixed the problem: https://github.com/wolever/pip2pi/commit/6f24cec93344fdc133e97ead5f81224e7eb4a249

+5
source

Source: https://habr.com/ru/post/1672674/


All Articles