Tool for merging conda environment files
Project description
Tool for merging Conda (Anaconda) environment files into one file. This is used to merge your application environment file with any other environment file you might need (e.g. unit-tests, debugging, jupyter notebooks) and create a consistent environment without breaking dependencies from the previous environment files.
Installation:
pip install conda-merge
Usage:
conda-merge FILE1 FILE2 ... FILE-N > OUTPUT-FILE
A common problem with multiple environment files is that of pinned dependencies: let’s say environment.yml contains the dependency numpy=1.7, and your dev-environment.yml contains pandas as a dependency. If you sequentially apply the environment files (conda env update -f environment.yml and then conda env update -f dev-environment.yml) numpy will no longer be pinned and will be upgraded to the latest version.
One option to solve it is by using the pinned dependencies file in the environment directory, but this means storing your dependencies in another file which interacts with environment.yml, and makes the dependencies less clear to other users. This script enables you to merge the two environemnt files and then run only one conda env command to apply the change.
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
File details
Details for the file conda-merge-0.1.4.tar.gz
.
File metadata
- Download URL: conda-merge-0.1.4.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb3f33c4e0046e71d9df7149e5b12962451656ba65acb2d9831ed85852f32964 |
|
MD5 | b9b4e786967813313b2d62f002ff3fee |
|
BLAKE2b-256 | 1b8b6888d7dac8419daf737b9bb14dc9764b148b380766683f9b7ad6ed8e8b70 |