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.toml and has httpx as an optional dependency
- FastAPI / starlette has a
TestClient class
- The
TestClient class uses httpx
httpx is defined in pyproject.toml
- Using the
TestClient fails as httpx is not installed.
- Workaround is that
httpx must be added as a direct dependency
Poetry (version 1.3.2)Python: 3.10.7-vvvoption) and have included the output below.Issue
The documentation indicates that
poetry install --all-extraswill 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.tomland hashttpxas an optional dependencyTestClientclassTestClientclass useshttpxhttpxis defined inpyproject.tomlTestClientfails ashttpxis not installed.httpxmust be added as a direct dependency