Skip to content

Cache exported requirements in Nox sessions#491

Merged
cjolowicz merged 2 commits intomasterfrom
retrocookie-pr/cache-requirements
Aug 2, 2020
Merged

Cache exported requirements in Nox sessions#491
cjolowicz merged 2 commits intomasterfrom
retrocookie-pr/cache-requirements

Conversation

@cjolowicz
Copy link
Owner

@cjolowicz cjolowicz commented Aug 2, 2020

This PR speeds up Nox runs by exporting requirements only when the lock file changes. The requirement files are cached in the per-session temporary directory introduced in Nox 2020.5.24. As a consequence, requirements are only reused as long as the Nox environments are reused (--reuse-existing-virtualenvs).

As a side effect, the requirements file for safety is no longer generated without hashes. safety appears to handle requirements files with hashes just fine.

Claudio Jolowicz added 2 commits August 2, 2020 11:49
The `--no-root` option allows installing core dependencies without the
package itself, so it is no longer necessary to export requirements and
install with pip.
@cjolowicz cjolowicz added the enhancement New feature or request label Aug 2, 2020
@cjolowicz cjolowicz added this to the 2020.8.15 milestone Aug 2, 2020
@cjolowicz cjolowicz merged commit 77705a4 into master Aug 2, 2020
@cjolowicz cjolowicz deleted the retrocookie-pr/cache-requirements branch August 2, 2020 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant