Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a "shared cache" directory (#476)
* Add a "shared cache" directory Add an "{envdir}/.shared" directory, and create an API for accesing to it. * Don't fail if the ".shared" directory exists Don't raise an exception. * Update sessions.py Move the "shared cache" API inside of nox.sessions.Session * Update sessions.py Convert the "shared cache" path into a property. Now, it returns a "pathlib.Path". * Update test_sessions.py Make a test for the recent changes. * Update sessions.py Use the "pathlib.Path" methods to reduce the variable usage. * Update test_sessions.py Make some modifications to the tests. * Update test_sessions.py Fix an import error. * Update sessions.py Use the parent directory to create the cache dir. * Update test_sessions.py Use a tempfile to test the session properties. * Fix test indent * Update nox/sessions.py This avoids some unnecessary path manipulations, and using the parent directory of a virtualenv which does not necessarily exist (`PassthroughEnv` does not create a virtualenv). Co-authored-by: Claudio Jolowicz <[email protected]> * Update sessions.py Use ".cache" instead of ".shared". * Update test_sessions.py Use ".cache" instead of ".shared". Co-authored-by: Tom Fleet <[email protected]> Co-authored-by: Claudio Jolowicz <[email protected]>
- Loading branch information