-
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 doesn't install extra dependencies when the extra is capitalised #6321
Comments
I guess poetry sometimes normalizes extra names and sometimes doesn't. Hard to get too excited - just use lowercase extras - but if anyone cares to investigate further then the use of |
Happened in our project as well. |
I see that this behaviour was introduced by the pull request 4122 in June this year (poetry 1.2.0b3). That PR addressses the issue 4123 where Poetry's behaviour with regards to extras differed from Pip. I can't say whether the different behaviour observed in 1.2 is in fact correct and the previous behaviour was that I was exploiting a bug. It would make sense to me that |
PEP685 is accepted and declares that:
so |
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. |
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).Arch Linux x86_64 and python 3.7.9:
Poetry version 1.2.0:
I cannot disclose the contents of my pyproject file.
Issue
We have a sub-project which defines extras with a capital like so:
When attempting to install this sub-project as a dependency as follows:
The optional dependency (XlsxWriter here) is not installed at all.
If the dependency's extra name is updated to be in low-case only like so:
And the dependent's definition is updated to match:
Then the optional dependency now gets installed by poetry 1.2
The text was updated successfully, but these errors were encountered: