Poetry allows multiline descriptions which causes problems with pip installing extras
See original GitHub issue- I am on the latest Poetry version.
- I have searched the issues of this repo and believe that this is not a duplicate.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).
- Poetry version: 1.0.0b1
- Link to pyproject.toml file: https://github.com/undp/MsGraphExporter/blob/e75b59102d31225b12f6181ea3118ad65cfb22b9/pyproject.toml
Issue
The issue was discovered while publishing docs from undp/MsGraphExporter on ReadTheDocs. When pyproject.toml
option description
has a multi-line string enclosed in """
(which is perfectly legit for a string in TOML), it causes poetry
to build the package with multi-line Summary
in info/METADATA
which does not seem to be valid according to https://github.com/pypa/pip/issues/7010#issuecomment-531068027
Perhaps poetry
could just truncate the multi-line description
, make it a single-lined one or flag the issue with poetry check
.
_Originally posted by @OK-UNDP in https://github.com/readthedocs/readthedocs.org/issues/6151#issuecomment-531048562_
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:5
Top Results From Across the Web
Poetry allows multiline descriptions which causes problems ...
As it stands now, no error occurs when building, poetry check says everything is okay, and pip only installs my library and none...
Read more >All my poetry commands fail with 'The Poetry config is invalid'
A multi-line string is not valid for the description field. The error message does not match '^[^\n]*$' is telling you that it is...
Read more >tox-poetry-installer - PyPI
This plugin extends the default Tox dependency installation behavior to support installing dependencies using a Poetry-based installation method ...
Read more >Configuration - tox
Configuration#. tox configuration can be split into two categories: core and environment specific. Core settings are options that can be set once and...
Read more >Making Python Packages Part 2: How to Publish & Test Your ...
pip install poetry. As always, try pip3 (the version for python3)if you don't have pip. Poetry new. Our first command is to create...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I also ran into this today, and spent multiple hours trying to figure out why my package deps were not installing. Funny enough, I accidentally fixed it at one point just through the course of generally editing the file, then reverted that and broke it again – never once understanding cause and effect. Amazingly frustrating!
I really, really appreciate the work on this project, and know what it’s like to maintain OSS. Not complaining (too loudly) – but consider this a vote to fix this to help the next person avoid hours of pain 😃
@sdispater thank you very much for creating poetry! I am absolutely in love with this tool ❤️
Any news on this topic? I just spent way too much time banging my head against the wall because of this… 😭
According to this link (https://packaging.python.org/specifications/core-metadata/#summary) and what @OK-UNDP said, I believe poetry should enforce a single-line
description
field (duringpoetry build
andpoetry check
). Also, it would be nice if this restriction was mentioned in the documentation (https://python-poetry.org/docs/pyproject/#description).As it stands now, no error occurs when building,
poetry check
says everything is okay, and pip only installs my library and none of its dependencies, but it doesn’t display any errors either, which makes it extremely hard to find the source of the error. Worse still, pip installing the sdist does install dependencies!A simple example that breaks without any useful feedback (I am using Poetry 1.0.5):
@sdispater if you agree with my suggestion to enforce the single-line
description
field, I’d be happy to give it a try and submit a PR 😃