question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

poetry update --latest (w/ ignoring current pinning)

See original GitHub issue
  • I have searched the issues of this repo and believe that this is not a duplicate.

Issue

I’ve tried to search both documentation, issues and Web, but haven’t found a solution for use case of “please update this package to newest version without reading current pinning in pyproject.toml”. This is something I do quite often and so far I haven’t found a clean way of doing it with Poetry.

For example: I currently have django = "^2.0.0" in my pyproject.toml but I’d like to upgrade that to the very latest version (3.0.2). I can of course change the pinning by hand to pyproject.toml but what if I want to upgrade my whole project to latest everything (every package)? What I’d like to is something like poetry update --latest

Is there currently a way to do this without too much manual work (for one or many packages)?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:11
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
AndreCNFcommented, Feb 5, 2020

I’d also prefer to have a more intuitive way of updating packages to the latest version. Right now, to update packages, I run this command, which seems to work fine (although it’s not as clear as using a command called ‘update’): poetry add PACKAGE_NAME@latest

1reaction
Garrett-Rcommented, Dec 20, 2020

@sinoroc I was expecting it to not add the caret. I started an issue here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Commands | Documentation | Poetry - Python dependency ...
This command will help you kickstart your new Python project by creating a directory ... When --only is specified, --with and --without options...
Read more >
Dependency Management With Python Poetry
Pin dependencies; Install dependencies with poetry.lock; Execute basic Poetry CLI commands. Using Poetry will help you start new projects, ...
Read more >
Dependency version syntax for Python Poetry - Stack Overflow
If you don't include any modifiers, Poetry will keep your dependency pinned at that exact version. beepboop = "2.1.7". With that configuration, ...
Read more >
Managing Python Dependencies with Poetry
Having pinned dependencies, doesn't mean that you shouldn't care about more recent versions of them being released on PyPI. It is important to...
Read more >
Ask HN: Why Poetry did not become a mainstream package ...
If I install something with pip, the newly installed package goes into ... I can pin down my dependencies, upgrade to a new...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found