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.

Improve documentation on the behaviour of update and install

See original GitHub issue

I believe that the documentation could be improved regarding what update and install are doing.

To me it is not really clear, for example:

  • when doing update are the new packages installed? is the pyproject.toml file update with latest version numbers?
  • when should one do install ? Only the first time?

Maybe we could collect here answers to questions like the two above and I’ll be happy to make a PR for the doc.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
finswimmercommented, May 30, 2021

The purpose of poetry install is to:

  • create a venv if None exists
  • resolve dependency and write the exact version to poetry.lock if None exists
  • install the locked dependencies in the venv
  • install the current project in editable mode

A poetry install is only necessary if you:

  • create the venv the first time
  • change any metadata of the project, like version number
  • add “scripts” entry points to the pyproject.toml

The purpose of poetry update is to:

  • update all dependencies to the current version within in the pyproject.toml specified version range
  • write the updated version to poetry.lock
  • the version numbers in pyproject.toml remain untouched
1reaction
rafrafekcommented, Oct 13, 2022

Yes, they are installed by default using Poetry (but not captured by tools that build/install as a Python package).

Can we add this information to the docs here: https://python-poetry.org/docs/cli/#install

Read more comments on GitHub >

github_iconTop Results From Across the Web

Clarify and define install/upgrade behaviour for the new resolver
We should focus on getting well-specified and understandable behaviour in the new resolver. ... I propose the following rules for what to install...
Read more >
Windows Update settings you can manage with Intune Update ...
For more information about the behavior of each setting, see the Windows Update CSP documentation. Choose how automatic updates are installed ...
Read more >
Schedule an OS Update | Apple Developer Documentation
Downloading and installing updates in iOS and tvOS is a two-step process. Send a ScheduleOSUpdate command with Default for InstallAction to download the...
Read more >
Options that control the installation process - PIP documentation
The base behaviour is to allow packages specified on pip's command line to be upgraded. This option controls what other packages can be...
Read more >
brew(1) – The Missing Package Manager for macOS (or Linux)
Unless HOMEBREW_NO_INSTALL_UPGRADE is set, brew install * formula * will upgrade formula if it is already installed but outdated. -d , --debug :...
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