-
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
Using --all-extras
does not install from project.optional-dependencies
#7556
Comments
You have misunderstood: I don't immediately see where the docs imply anything other than this: but if they are unclear then I expect a merge request putting this right would be welcome. |
I think the confusion may stem from
But the issue is reporting that starlette has FWIW, after reading the docs I'd also expect that behavior. I'm not sure if it's intended or not, but a documentation update/bugfix may be in order. |
yes @evanrittenhouse - exactly that. I did have to dig into the dependency of A little ways down in the "extras" section, it does say:
The So I would think one of the following commands would work, but they do not.
So I think at a minimum, the term "optional dependencies" needs to be removed from the "extras" section of the documentation. I am able to solve my issue by doing the following:
Basically, the extras must be defined in the direct dependency, and that dependency must include things needed for its sub-dependency. |
@dimbleby if we want |
No code change should be needed, this all is working as intended. Again, docs improvements are encouraged |
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. |
Poetry (version 1.3.2)
Python: 3.10.7
-vvv
option) and have included the output below.Issue
The documentation indicates that
poetry install --all-extras
will install all "optional dependencies". Those in both the main group marked asoptional
, and the dev group. I've noticed that other tools with optional dependencies are not installed when using--all-extras
.Example in attached gist, summary:
pyproject.toml
and hashttpx
as an optional dependencyTestClient
classTestClient
class useshttpx
httpx
is defined inpyproject.toml
TestClient
fails ashttpx
is not installed.httpx
must be added as a direct dependencyThe text was updated successfully, but these errors were encountered: