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

Install a single package from poetry.lock #3854

Closed
2 tasks done
cprevosteau opened this issue Mar 29, 2021 · 2 comments
Closed
2 tasks done

Install a single package from poetry.lock #3854

cprevosteau opened this issue Mar 29, 2021 · 2 comments
Labels
kind/feature Feature requests/implementations status/duplicate Duplicate issues

Comments

@cprevosteau
Copy link

  • 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

Hi,
Thanks for this marvellous tool.

I often find myself wanting to install a single package from poetry.lock.
For instance, in my CI/CD pipeline I have a task to check my code against a linter.
And I would like to install the version of flake8 defined in the poetry.lock without installing the whole file.

Today the only way to get this version is to parse the result of the command poetry show flake8.

It would be nice to able to do so with a command like:

poetry install flake8

in order to only install flake8.

Or at least there is an option to the command poetry show to only return the version of the package. Something like:

$ poetry show flake8 --only-version
3.9.0

This way a simple pip install flake8==$(poetry show flake8 --only-version) will do the trick in my CI/CD task.

@cprevosteau cprevosteau added kind/feature Feature requests/implementations status/triage This issue needs to be triaged labels Mar 29, 2021
@finswimmer
Copy link
Member

Hello @cprevosteau,

this was requested earlier in #3570. I've made a PR for it in #3623. But maybe it get superseded by the implementation for #1644.

fin swimmer

@finswimmer finswimmer added status/duplicate Duplicate issues and removed status/triage This issue needs to be triaged labels Mar 29, 2021
Copy link

github-actions bot commented Mar 2, 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 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature Feature requests/implementations status/duplicate Duplicate issues
Projects
None yet
Development

No branches or pull requests

2 participants