Skip to main content

No project description provided

Project description

Conda-Vendor

Conda Vendor is a tool to create local conda channels and attestetation manifests based on an input conda environment yaml file. This tool is particularly useful when trying to use conda packages inside an air-gapped network.

Installation

To install with pip, run:

pip install conda-vendor

To install with conda, run:

conda install -c conda-forge conda-vendor

Development Installation

Create a conda environment with conda-vendor development dependencies:

mamba env create --file environment.yaml

Install conda-vendor as an editable pip package:

pip install -e .

Running Tests:

pytest tests/ -vvv -s

Usage

Supported Solvers

  • Conda
  • Mamba
  • Micromamba

Vendor dependencies from an environment.yaml into a local channel:

# Use conda as the solver for linux-64
conda-vendor vendor --file environment.yaml --solver conda --platform linux-64

# use mamba as the solver for osx-64
conda-vendor vendor --file environment.yaml --solver mamba --platform osx-64

# use micromamba as the solver for the host platform
conda-vendor vendor --file environment.yaml --solver micromamba

Use Dry-Run install to verify that conda can solve using only the vendored channel:

# NOTE: ensure to use the same solver used to create the vendored channel
# example channel vendored with mamba: that includes micromamba python and pip
mamba create -n some-new-env --offline --channel ./my-vendored-channel --override-channels --dry-run micromamba python pip 

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_vendor-1.0.5.tar.gz (7.9 kB view details)

Uploaded Source

File details

Details for the file conda_vendor-1.0.5.tar.gz.

File metadata

  • Download URL: conda_vendor-1.0.5.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for conda_vendor-1.0.5.tar.gz
Algorithm Hash digest
SHA256 ea597adf283ab1eeeef5d630051f27dd727fad98e3a387c7d72cf8df4e60bb42
MD5 f957a49042d1d880e9aef5070bfaa591
BLAKE2b-256 6abaab9bef6b8e4dbcf8eaf3be2935576f673e0703d0338eafae73e277af14c2

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