-
-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option --no-install to skip install commands in reused environmen…
…ts (#432) Use either of these to reuse a virtualenv without re-installing packages: ``` nox -R nox --reuse-existing-virtualenvs --no-install ``` The `--no-install` option causes the following session methods to return early: - `session.install` - `session.conda_install` - `session.run_always` This option has no effect if the virtualenv is not being reused. Co-authored-by: Jam <jam@jamandbees.net> * Add option --no-install * Add test for VirtualEnv._reused * Add test for CondaEnv._reused * Add {Virtual,Conda,Process}Env._reused * Add test for session.install with --no-install * Skip session.install when --no-install is given * Add test for session.conda_install with --no-install * Skip session.conda_install when --no-install is given * Add test for session.run_always with --no-install * Skip session.run_always when --no-install is given * Add test for short option -R * Add short option -R for `--reuse-existing-virtualenvs --no-install` * Document the --no-install and -R options * Update broken link to pip documentation * Clarify documentation of session.run_always
- Loading branch information
Showing
7 changed files
with
156 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters