-
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-core generates invalid PEP 508 requirements when extras are used #6900
Comments
I don't think a whitespace is required according to PEP 508. Further, pip does not require whitespace in a requirements.txt. |
I think you are mistaken and without whitespace the semicolon is mistaken for being part of the url there's code a few lines up that tries to add a space for direct dependencies but (surely accidentally?) omits directory dependencies. Simplest is likely to include the space unconditionally, it should be benign always if only required sometimes |
You're right. I missed that part. Whitespace is required in some cases (e.g. with urls). I agree we should simply add it in any case. |
Strangely, I'm still getting the same error message about extras on the repo that I've linked. |
The change is not yet in a released version of Poetry. Merged does not mean it has shown up on your machine yet. |
I supposed installing from the source on the main branch would do the trick. |
Only if the fix is in poetry itself. This fix is in poetry-core. When installing poetry from source you still get a released version of poetry-core. Replacing poetry-core with the version from its main branch should do the trick. |
That won't work either as this is poetry-core as the build-system. You'll need to update your build-system requirement to use a Git reference. |
Thanks for the build-system trick! Seems to be working now. |
Just note that by using a non-SHA git reference there is inherent instability; please do not release versions with such a build dependency (see #6741 for an example of why this is bad). |
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) and have included the output below.Issue
Installing the repository by poetry install works fine, but when running pip install . the following error message shows up:
Output message
The text was updated successfully, but these errors were encountered: