Hatch plugin for conda environments
Project description
hatch-conda
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
Installation
pip install hatch-conda
Configuration
The environment plugin name is conda
.
-
pyproject.toml
[tool.hatch.envs.<ENV_NAME>] type = "conda"
-
hatch.toml
[envs.<ENV_NAME>] type = "conda"
Python
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.
Command
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"
Conda-forge
Indicates if the conda-forge index should be used.
Default:
[envs.<ENV_NAME>]
conda-forge = true
Notes
- There must be a
conda
ormamba
executable along yourPATH
. - The
env-exclude
environment variable filter has no effect.
Future
- Install available packages from conda + conda-forge before using pip.
License
hatch-conda
is distributed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for hatch_conda-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4c2b33154add5f218f38526d6e97d0486627062d939256033dae18fa8037fad |
|
MD5 | b334a8e6e19b778416749a540f6b455c |
|
BLAKE2b-256 | 6606851864ceb8c9d7f385fd97918655d4c82e572ccbef74dd3dd7a963804423 |