-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Poetry allows multiline descriptions which causes problems with pip installing extras #1372
Comments
Provide `.readthedocs.yaml` for RTD build environment. Change `description` in `pyproject.toml` to single-line format to address python-poetry/poetry#1372 Apply minor doc fixes. !wip !wip
0.1.0-rc.2 (2019-09-12) New * Publish docs on RTD (fixes #5). [OK-UNDP] Provide `.readthedocs.yaml` for RTD build environment. Change `description` in `pyproject.toml` to single-line format to address python-poetry/poetry#1372 Apply minor doc fixes. !wip !wip Fix * Gevent monkey patching (fixes #6). [OK-UNDP] Ensure `gevent` monkey patching is performed only for tests requiring it. * Read-only docker image (fixes #4). [OK-UNDP] Ensure all PID files are placed in `/tmp`. Provide an example `docker-compose.yaml` demonstrating how to deploy workers as read-only images with `tmpfs` volume mounted to `/tmp`. * Empty `app_config.yaml` (fixes #3). [OK-UNDP] Properly handle empty or comments-only `app_config.yaml`. * MsGraphResponse iterator (fixes #2). [OK-UNDP] Refactoring that allows `MsGraphResponse` to be repeatedly iterated.
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
@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 As it stands now, no error occurs when building, A simple example that breaks without any useful feedback (I am using Poetry 1.0.5): [build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.poetry]
name = "example-lib"
version = "0.1.0"
description = """
First line
Second line (BOOOOOM)"""
authors = ["John Doe <john.doe@example.org>"]
packages = [{ include = "example", from = "src" }]
[tool.poetry.dependencies]
python = "^3.8"
addict = "^2.2.1"
loguru = "^0.5.0"
typer = {extras = ["all"], version = "^0.2.1"}
wcmatch = "^6.0.1" @sdispater if you agree with my suggestion to enforce the single-line |
Same problem here. It causes pkginfo to leave metadata as is instead of interpreting them :
vs
|
In fact, per https://packaging.python.org/specifications/core-metadata/#description pkginfo manages to parse most of metadata when I do so in pyproject.toml |
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 :) |
Previously, we would include the description-with-newlines directly as the PKG-INFO summary, which could cause subtly broken builds (for instance, the package may install, but none of the specified dependencies). Now, raise a validation error during building, like: RuntimeError The Poetry configuration is invalid: - [description] 'First line\nSecond line (BOOOOOM)' does not match '^[^\n]+$' Closes python-poetry/poetry#1372
* Require that package descriptions not include newlines Previously, we would include the description-with-newlines directly as the PKG-INFO summary, which could cause subtly broken builds (for instance, the package may install, but none of the specified dependencies). Now, raise a validation error during building, like: RuntimeError The Poetry configuration is invalid: - [description] 'First line\nSecond line (BOOOOOM)' does not match '^[^\n]+$' Closes python-poetry/poetry#1372
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Issue
The issue was discovered while publishing docs from undp/MsGraphExporter on ReadTheDocs. When
pyproject.toml
optiondescription
has a multi-line string enclosed in"""
(which is perfectly legit for a string in TOML), it causespoetry
to build the package with multi-lineSummary
ininfo/METADATA
which does not seem to be valid according to pypa/pip#7010 (comment)Perhaps
poetry
could just truncate the multi-linedescription
, make it a single-lined one or flag the issue withpoetry check
.Originally posted by @OK-UNDP in readthedocs/readthedocs.org#6151 (comment)
The text was updated successfully, but these errors were encountered: