Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

conda_merge-0.3.0.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file conda_merge-0.3.0.tar.gz.

File metadata

  • Download URL: conda_merge-0.3.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for conda_merge-0.3.0.tar.gz
Algorithm Hash digest
SHA256 83f6bd5f1742b99cdb77638fdc19e82d826d8f3993c1dc9b8c7951a3b368e2f5
MD5 e7ef7633fd81558bb6b4cb101e8202d7
BLAKE2b-256 dd5f96b4a254652740142c6aa3c977a481969c176f79840b41e2865eaefc82e7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page