-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
- I have searched the issues of this repo and believe that this is not a duplicate.
- I have searched the FAQ and general documentation and believe that my question is not already covered.
Feature Request
Hi,
In my current workflow, I install my python module in a docker image. I copy the project sources (with pyproject.toml poetry.lock) in the image and do a poetry install. it's simple and it works perfectly
But sometime, I'd like to test just one module upgrade
So In a job preceding the build, I'd like to update the pyproject and lock files with just this module to a specific version. And eventually its own dependencies if the current constraints doesn't match.
I didn't find any commands and/or options to do that :
poetry update <module>only get the latest versionpoetry add <module@version>also do the installpoetry add <module@version> --lockdo a full lock update
What I'm looking for is something like a poetry add <module@version> --lock --no-update
But this add command option doesn't currently exist.
I made my own plugin duplicating the add command and adding a --no-update option to add. It's very simple
I could do a PR with the change.
But I'm actually not sure if it is a feature you want to have
Maybe it is some kind of "anti-pattern" or maybe there is an other approach to achieve what I try to do