Skip to content

poetry install with nested packages with "--no-root-nested" or similar option to improve docker builds #3671

@yeus

Description

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

Feature Request

Right now it is possible to install only the dependencies of a package with the poetry install --no-root --no-dev options. This is great to improve docker builds (cache behaviour for example).

it would be great to extend that functionality to nested packages. Something like

poetry install --no-root --no-dev --no-root-nested

which would tell poetry to only install the dependencies of the nested package, but
not the package itself. This would greatly improve the caching behaviour of docker builds as we would only need
to copy the pyproject.toml and poetry.lock files into the docker machine which causes much better caching behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions