-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
Allow passing callable venv_backend for creation of session virtualenv #753
base: main
Are you sure you want to change the base?
Commits on Dec 8, 2023
-
feat: Added callable venv_backend
This branch allows passing a callable for `venv_backend` in `nox.session`. This allows the user to apply any special commands during the virtualenv creation. As an example, `noxfile.py` includes some demo session using this functionality. * conda-env-backend: creates an environment using `conda env create` * conda-lock-backend: creates an environment using `conda-lock install` * dev-example: Creates a development. This creates an environment in `.nox/.venv` for demo purposes Other potential uses: * Alter the python interpreter search path * Add smart caching of environment. i.e., add check in callback to reinstall/recreate only if dependencies have changed The whole point is that the approach is general. Theres a degree of buyer beware with this functionality. In the examples in `noxfile.py`, the correct python version must be specified in the `environment.yaml` files. To me, the added functionality is worth it.
wpk committedDec 8, 2023 Configuration menu - View commit details
-
Copy full SHA for 0ee4530 - Browse repository at this point
Copy the full SHA 0ee4530View commit details
Commits on Dec 11, 2023
-
chore: add callbacks for conda tests
wpk committedDec 11, 2023 Configuration menu - View commit details
-
Copy full SHA for d1d1aee - Browse repository at this point
Copy the full SHA d1d1aeeView commit details -
chore: add examples of callable venv_backend to cookbook
wpk committedDec 11, 2023 Configuration menu - View commit details
-
Copy full SHA for 30ccf44 - Browse repository at this point
Copy the full SHA 30ccf44View commit details -
chore: added testing for callable venv_backend
Pretty basic testing, but now have coverage
wpk committedDec 11, 2023 Configuration menu - View commit details
-
Copy full SHA for de30319 - Browse repository at this point
Copy the full SHA de30319View commit details -
wpk committed
Dec 11, 2023 Configuration menu - View commit details
-
Copy full SHA for 49061c8 - Browse repository at this point
Copy the full SHA 49061c8View commit details -
chore: add note about conda-lock usage in cookbook
wpk committedDec 11, 2023 Configuration menu - View commit details
-
Copy full SHA for 88e141d - Browse repository at this point
Copy the full SHA 88e141dView commit details
Commits on Dec 12, 2023
-
chore: Added check that callable venv_backend returns a ProcessEnv
wpk committedDec 12, 2023 Configuration menu - View commit details
-
Copy full SHA for 1e0bfca - Browse repository at this point
Copy the full SHA 1e0bfcaView commit details
Commits on Feb 12, 2024
-
feat: add micromamba example usage
* Added micromamba_test sessions to `noxfile.py` * Updated conda env create section of cookbook to also include a micromamba example
wpk committedFeb 12, 2024 Configuration menu - View commit details
-
Copy full SHA for aeb9d31 - Browse repository at this point
Copy the full SHA aeb9d31View commit details