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 environment 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.2.0.tar.gz
.
File metadata
- Download URL: conda-merge-0.2.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0dc82aedfc1bb288c02e45b5900e09e4ed47900a9e396439daf3230d131fb62 |
|
MD5 | a1d1ed635034b8a0c16ada5940380902 |
|
BLAKE2b-256 | 5e322b1ebac466924462478fb69cd92e4de1e471f599cd25c6180d08f64452dc |