Add `--no-install` option to only update files without installing
See original GitHub issue- 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
I want to add/remove a dependency and generate the lock file without installing. For example,
poetry remove --no-install requests
poetry add --no-install httpx
would update the pyproject.toml and poetry.lock but not install anything. Maybe someone can think of a better name than --no-install
that would make sense for the remove
case too.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:24
- Comments:12 (7 by maintainers)
Top Results From Across the Web
python - How to update Poetry's lock file without upgrading ...
There is a specific option for the lock command: poetry lock --no-update. This makes it possible to remove a dependency from pyproject.toml ...
Read more >How to use yum to download a package without installing it
yum install --downloadonly --downloaddir=<directory> <package>. Confirm the RPM files are available in the specified download directory.
Read more >Command-line interface / Commands - Composer
The install command reads the composer.json file from the current ... --no-install: Does not run the install step after updating the composer.lock file....
Read more >yarn install
yarn install is used to install all dependencies for a project. ... Running yarn with no command will run yarn install , passing...
Read more >apt-get - APT package handling utility -- command-line interface
The difference is that it only removes package files that can no longer be downloaded, ... --no-install-recommends Do not consider recommended packages as...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
poetry add --lock
option already exists to handle this in1.1.0b2
. This can also be added intopoetry remove
command.The goal is to prevent Poetry from installing or uninstalling anything, because that is slow and I don’t need it. I only want it to manage the
pyproject.toml
andpoetry.lock
files, not create a virtualenv or install anything.Maybe it should be
--dont-manage-environment
andPOETRY_DONT_MANAGE_ENVIRONMENT=1
.