You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: add micromamba support
Signed-off-by: Henry Schreiner <[email protected]>
* tests: add micromamba test
Signed-off-by: Henry Schreiner <[email protected]>
* tests: support Python 3.7
Signed-off-by: Henry Schreiner <[email protected]>
* fix: don't override user set channels for micromamba env creation
Signed-off-by: Henry Schreiner <[email protected]>
---------
Signed-off-by: Henry Schreiner <[email protected]>
Copy file name to clipboardexpand all lines: docs/config.rst
+3-3
Original file line number
Diff line number
Diff line change
@@ -167,7 +167,7 @@ You can also specify that the virtualenv should *always* be reused instead of re
167
167
deftests(session):
168
168
pass
169
169
170
-
You are not limited to virtualenv, there is a selection of backends you can choose from as venv, uv, conda, mamba, or virtualenv (default):
170
+
You are not limited to virtualenv, there is a selection of backends you can choose from as venv, uv, conda, mamba, micromamba, or virtualenv (default):
171
171
172
172
.. code-block:: python
173
173
@@ -176,8 +176,8 @@ You are not limited to virtualenv, there is a selection of backends you can choo
176
176
pass
177
177
178
178
You can chain together optional backends with ``|``, such as ``uv|virtualenv``
179
-
or ``mamba|conda``, and the first available backend will be selected. You
180
-
cannot put anything after a backend that can't be missing like ``venv`` or
179
+
or ``micromamba|mamba|conda``, and the first available backend will be selected.
180
+
You cannot put anything after a backend that can't be missing like ``venv`` or
Copy file name to clipboardexpand all lines: docs/usage.rst
+6-6
Original file line number
Diff line number
Diff line change
@@ -126,7 +126,7 @@ Then running ``nox --session tests`` will actually run all parametrized versions
126
126
Changing the sessions default backend
127
127
-------------------------------------
128
128
129
-
By default Nox uses ``virtualenv`` as the virtual environment backend for the sessions, but it also supports ``uv``, ``conda``, ``mamba``, and ``venv`` as well as no backend (passthrough to whatever python environment Nox is running on). You can change the default behaviour by using ``-db <backend>`` or ``--default-venv-backend <backend>``. Supported names are ``('none', 'uv', 'virtualenv', 'conda', 'mamba', 'venv')``.
129
+
By default Nox uses ``virtualenv`` as the virtual environment backend for the sessions, but it also supports ``uv``, ``conda``, ``mamba``, ``micromamba``, and ``venv`` as well as no backend (passthrough to whatever python environment Nox is running on). You can change the default behaviour by using ``-db <backend>`` or ``--default-venv-backend <backend>``. Supported names are ``('none', 'uv', 'virtualenv', 'conda', 'mamba', 'venv')``.
130
130
131
131
132
132
.. tabs::
@@ -142,9 +142,9 @@ By default Nox uses ``virtualenv`` as the virtual environment backend for the se
142
142
143
143
.. note::
144
144
145
-
The ``uv``, ``conda``, and ``mamba`` backends require their respective
146
-
programs be pre-installed. ``uv`` is distributed as a Python package
147
-
and can be installed with the ``nox[uv]`` extra.
145
+
The ``uv``, ``conda``, ``mamba``, and ``micromamba`` backends require their
146
+
respective programs be pre-installed. ``uv`` is distributed as a Python
147
+
package and can be installed with the ``nox[uv]`` extra.
148
148
149
149
You can also set this option with the ``NOX_DEFAULT_VENV_BACKEND`` environment variable, or in the Noxfile with ``nox.options.default_venv_backend``. In case more than one is provided, the command line argument overrides the environment variable, which in turn overrides the Noxfile configuration.
150
150
@@ -156,7 +156,7 @@ Note that using this option does not change the backend for sessions where ``ven
156
156
as ``uv pip`` is used to install programs instead. If you need to manually
157
157
interact with pip, you should install it with ``session.install("pip")``.
158
158
159
-
Backends that could be missing (``uv``, ``conda``, and ``mamba``) can have a fallback using ``|``, such as ``uv|virtualenv`` or ``mamba|conda``. This will use the first item that is available on the users system.
159
+
Backends that could be missing (``uv``, ``conda``, ``mamba``, and ``micromamba``) can have a fallback using ``|``, such as ``uv|virtualenv`` or ``micromamba|mamba|conda``. This will use the first item that is available on the users system.
160
160
161
161
If you need to check to see which backend was selected, you can access it via
162
162
``session.venv_backend`` in your noxfile.
@@ -166,7 +166,7 @@ If you need to check to see which backend was selected, you can access it via
166
166
Forcing the sessions backend
167
167
----------------------------
168
168
169
-
You might work in a different environment than a project's default continuous integration settings, and might wish to get a quick way to execute the same tasks but on a different venv backend. For this purpose, you can temporarily force the backend used by **all** sessions in the current Nox execution by using ``-fb <backend>`` or ``--force-venv-backend <backend>``. No exceptions are made, the backend will be forced for all sessions run whatever the other options values and Noxfile configuration. Supported names are ``('none', 'uv', 'virtualenv', 'conda', 'mamba', 'venv')``.
169
+
You might work in a different environment than a project's default continuous integration settings, and might wish to get a quick way to execute the same tasks but on a different venv backend. For this purpose, you can temporarily force the backend used by **all** sessions in the current Nox execution by using ``-fb <backend>`` or ``--force-venv-backend <backend>``. No exceptions are made, the backend will be forced for all sessions run whatever the other options values and Noxfile configuration. Supported names are ``('none', 'uv', 'virtualenv', 'conda', 'mamba', 'micromamba', 'venv')``.
0 commit comments