Skip to content
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

Add ability to specify a set of dev dependencies to install toghether with all regular dependencies #2628

Closed
2 tasks done
fredrikaverpil opened this issue Jul 3, 2020 · 3 comments
Labels
kind/feature Feature requests/implementations

Comments

@fredrikaverpil
Copy link
Contributor

  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

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;

$ poetry install --no-dev flake8 mypy pytest

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.

@fredrikaverpil fredrikaverpil added kind/feature Feature requests/implementations status/triage This issue needs to be triaged labels Jul 3, 2020
@fredrikaverpil fredrikaverpil changed the title Add ability to specify single package to install Add ability to specify a set of dev dependencies to install toghether with all regular dependencies Jul 3, 2020
@finswimmer
Copy link
Member

Hello @fredrikaverpil,

your feature request sounds similar to #1644, is it?

fin swimmer

@fredrikaverpil
Copy link
Contributor Author

Oh, indeed it is. I will close this issue in favor for #1644

Thanks for letting me know!

@abn abn removed the status/triage This issue needs to be triaged label Sep 25, 2020
Copy link

github-actions bot commented Mar 3, 2024

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature Feature requests/implementations
Projects
None yet
Development

No branches or pull requests

3 participants