Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.

maresb/micromamba-install-locked-pip-dependencies

Repository files navigation

USE MICROMAMBA >=0.26.0

This project is no longer relevant. Please instead use an up-to-date version of Micromamba.

PyPI - Version PyPI - Python Version


Table of Contents

Links

Introduction

Micromamba currently ignores pip dependencies in new-style lockfiles. This script parses the lockfile and installs those dependencies.

This script has no dependencies other than Python 3.6+. (It implements its own crude YAML parser.)

Usage

To install main-category dependencies from conda-lock.yml, simply run micromamba-install-locked-pip-dependencies.

For more advanced usage:

$ micromamba-install-locked-pip-dependencies --help
usage: micromamba-install-locked-pip-dependencies [-h] [-f LOCKFILE]
                                                  [-c CATEGORY] [--dry-run]
                                                  [--uninstall]
                                                  [--pip-location PIP_LOCATION]

Install pip dependencies from new-style lockfiles

optional arguments:
  -h, --help            show this help message and exit
  -f LOCKFILE, --lockfile LOCKFILE
                        Filename of the lockfile
  -c CATEGORY, --category CATEGORY
                        Category to install (default 'main')
  --dry-run             Do not actually install anything
  --uninstall           Do not actually install anything
  --pip-location PIP_LOCATION
                        Location of pip executable

Installation

pip install micromamba-install-locked-pip-dependencies

Without installation

curl https://raw.githubusercontent.com/maresb/micromamba-install-locked-pip-dependencies/master/micromamba_install_locked_pip_dependencies/cli.py | python - --help

License

micromamba-install-locked-pip-dependencies is distributed under the terms of the MIT license.

About

Install pip dependencies from new-style lockfiles

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages