Support for different lockfiles in the conda CLI tool.
Important
This project is still in early stages of development. Don't use it in production (yet). We do welcome feedback on what the expected behaviour should have been if something doesn't work!
conda-lockfiles adds support for additional lockfile formats to conda. It supports different types of lockfiles from the ecosystem like conda-lock or pixi.
The basic usage is:
# Create environment from lockfile
conda env create -n ENV-NAME --env-spec=FORMAT --file=/path/to/lockfile
# Export current environment to lockfile
conda export -n ENV-NAME --format=FORMAT --file=/path/to/lockfileCurrently supported lockfile formats:
- conda-lock.yml (
conda-lock-v1) - pixi.lock (
rattler-lock-v6orpixi-lock-v6)
This is a conda plugin and must be installed in the base environment:
conda install -n base conda-forge::conda-lockfilesconda export --format=FORMAT --file=FILETo specify additional platforms:
conda export --format=FORMAT --file=FILE [--override-platforms] --platform=PLATFORM ...See conda export docs for more details.
conda env create --file=FILEIf conda is unable to determine the file format:
conda env create --file=FILE --env-spec=FORMATSee conda env create docs for more details.
More information is available on our documentation.
Please refer to CONTRIBUTING.md.