Skip to content
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

Fix multiple Python requirements separated by whitespace #5735

Merged
merged 1 commit into from
Sep 17, 2022

Conversation

deivid-rodriguez
Copy link
Contributor

Standard Python does not support this, but Poetry does, so when they appear on Poetry dependency files, they make dependabot crash.

Fixes #5363.

Copy link
Member

@jeffwidman jeffwidman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that these are non-standard and only supported by poetry, I'd suggest adding code comments for each of these three code blocks. Something simple like:

# Standard python doesn't support whitespace in requirements, but Poetry does.

I realize it's in the commit log, but still it's too easy to not understand why this is needed in the logic / tests otherwise.

@jeffwidman
Copy link
Member

also, why did poetry go this route? 🤦

@deivid-rodriguez
Copy link
Contributor Author

I have no idea, but seems much better than Python ignoring (but not erroring out) all requirements after the first if you don't split them with commas 🤯.

Standard Python does not support this, but Poetry does, so when they
appear on Poetry dependency files, they make dependabot crash.
@jeffwidman jeffwidman force-pushed the deivid-rodriguez/odd-poetry-reqs branch from 1f74249 to aaf292f Compare September 17, 2022 07:54
@jeffwidman jeffwidman merged commit 252cb9a into main Sep 17, 2022
@jeffwidman jeffwidman deleted the deivid-rodriguez/odd-poetry-reqs branch September 17, 2022 08:11
@pavera pavera mentioned this pull request Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: python:poetry Python packages via poetry
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Dependabot fails to parse a more complex poetry dependency
2 participants