-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expectedstatus/triageThis issue needs to be triagedThis issue needs to be triaged
Description
- Poetry version:
Poetry (version 1.3.2) - Python version:
Python: 3.10.7 - OS version and name: macOS 12.6
- pyproject.toml: https://gist.github.com/mbrancato/d9ba6b9b64fa021a333e2892b33a210a
- I am on the latest stable Poetry version, installed using a recommended method.
- I have searched the issues of this repo and believe that this is not a duplicate.
- I have consulted the FAQ and blog for any relevant entries or release notes.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption) 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 as optional, 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:
- FastAPI is a direct dependency
- FastAPI depends on starlette
- starlette uses
pyproject.tomland hashttpxas an optional dependency - FastAPI / starlette has a
TestClientclass - The
TestClientclass useshttpx httpxis defined inpyproject.toml- Using the
TestClientfails ashttpxis not installed. - Workaround is that
httpxmust be added as a direct dependency
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expectedstatus/triageThis issue needs to be triagedThis issue needs to be triaged