Skip to content
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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Commits on Dec 8, 2023

  1. 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 committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    0ee4530 View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2023

  1. chore: add callbacks for conda tests

    wpk committed Dec 11, 2023
    Configuration menu
    Copy the full SHA
    d1d1aee View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    30ccf44 View commit details
    Browse the repository at this point in the history
  3. chore: added testing for callable venv_backend

    Pretty basic testing, but now have coverage
    wpk committed Dec 11, 2023
    Configuration menu
    Copy the full SHA
    de30319 View commit details
    Browse the repository at this point in the history
  4. chore: cleanup noxfile.py

    wpk committed Dec 11, 2023
    Configuration menu
    Copy the full SHA
    49061c8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    88e141d View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2023

  1. Configuration menu
    Copy the full SHA
    1e0bfca View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2024

  1. 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 committed Feb 12, 2024
    Configuration menu
    Copy the full SHA
    aeb9d31 View commit details
    Browse the repository at this point in the history