CI/CD | |
Package | |
Meta |
This provides a plugin for Hatch that allows the use of conda environments.
This project is a copied and modified version of the hatch-containers plugin by Ofek Lev.
Table of Contents
pip install hatch-conda
The environment plugin name is conda
.
-
pyproject.toml
[tool.hatch.envs.<ENV_NAME>] type = "conda"
-
hatch.toml
[envs.<ENV_NAME>] type = "conda"
If the Python version is set to a multi-character integer like 310
then it will be interpreted as its <MAJOR>.<MINOR>
form e.g. 3.10
.
If not set, then the <MAJOR>.<MINOR>
version of the first python
found along your PATH
will be used, defaulting to the Python executable Hatch is running on.
The command
option specifies the command that will be used to setup the environment. The possible options are conda
and mamba
.
Default:
[envs.<ENV_NAME>]
command = "conda"
Indicates if the conda-forge index should be used.
Default:
[envs.<ENV_NAME>]
conda-forge = true
- There must be a
conda
ormamba
executable along yourPATH
. - The
env-exclude
environment variable filter has no effect.
- Install available packages from conda + conda-forge before using pip.
hatch-conda
is distributed under the terms of the MIT license.