-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add root-only install option #3648
Conversation
@abn anything I can do to help this along? Is it worth me adding a new test script ( |
I'd be really interested in this too. It would make it possible to cache dependencies installation separately from package installation in CI. |
I'm not convinced that this adds any benefit over
This was after a fresh poetry install -- notice that pip did nothing as all the requirements were already satisfied by Poetry itself -- it merely built a new root package and installed it into the virtualenv. Docs changes to explain this use case are welcome -- I'd suggest a new PR with just the doc changes to document this command, if my example indeed works for the requested use-case. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Pull Request Check List
Resolves: #2166
Summary
Adds an option to skip any dependency resolution and just install the root package.
Motivation
poetry install --no-root
), and then install the root package at runtime (once the code has been mounted in to the container). At the moment thepoetry install
command can take a long time (~1 minute) to resolve even though all dependencies are installed and up to date. Adding a--root-only
option would enable a quick install of the root package in situations where you are confident that the dependencies are already up to date. This would have big impact on development speed and is in keeping with theno-dev
anddev-only
commands that are already present.Notes
tests/console/command/test_install.py
so wasn't sure where to add them.