Skip to content

support for poetry add --latest #914

@woile

Description

@woile
  • 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

Add a way to update to latest released version. Let's say you are using gunicorn 18.x.x and you want to install the latest gunicorn 19.x.x.
Right now I couldn't find a straight forward way to do it. I found out that removing the package from the pyproject.toml and doing poetry add <package> does what I want.

Ideally I think it would be nice to have something like:
poetry add <package> --latest

Notes

Doing poetry add <package>==<latest_version> works also, but it's not the right way, because the pyproject.toml will be updated with a =<version> instead of ^<version>.

I searched a lot and couldn't find the solution, so in case it's already there I'll try to update the docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions