Add ability to specify a set of dev dependencies to install toghether with all regular dependencies #2628
Closed
2 tasks done
Labels
kind/feature
Feature requests/implementations
Feature Request
I use poetry together with nox or tox. I then run multiple nox or tox sessions in CI, all of them starting with a
poetry install
. This installation takes up a lot of time, as this will install ~100 packages on my end.I could look into venv caching, but I would rather start fresh each time and install my package and then a selection packages relevant to my nox or tox session.
I would've wanted to take the approach seen in the Hypermodern Python setup, where you can install one ore more dependencies (and its sub-dependencies) only, and constrain all versions to poetry's lockfile.
So, imagine something like;
The above would then install my package and its production requirements. But it would also install flake8, mypy and pytest, all constrained to the versions stipulated by poetry.lock.
However, if I want to do this today, I would need to define flake8, mypy and pytest twice in my
pyproject.toml
file, both as extras/opional under dependencies and again under dev-dependencies.It would be nice to instead simply be able to pick dev-dependencies already specified.
The text was updated successfully, but these errors were encountered: