conda/README.md
dependabot-condaConda support for dependabot-core.
Dependabot-Conda provides support for updating packages defined in Conda environment.yml files. It supports all package types from Conda channels, as well as PyPI packages installed via pip.
enable-beta-ecosystems flagdependabot-conda uses dynamic routing based on where packages are defined:
dependencies: section) are queried via Anaconda channel APIs (api.anaconda.org)pip: section) are queried via PyPI (delegated to Python ecosystem)Conda Packages (via Conda channels):
Pip Packages (via PyPI):
pipEnvironments with simple version specifications:
name: myenv
channels:
- conda-forge
- defaults
dependencies:
- python=3.11
- numpy>=1.24.0
- r-base>=4.0
- pip:
- requests>=2.28.0
Environments using fully-qualified package specifications (with build strings):
dependencies:
- python=3.11.0=h2628c8c_0_cpython # Build string present
- numpy=1.24.0=py311h1f0f07a_0 # Build string present
Fully-qualified specs pin to specific builds, making updates complex and potentially breaking. Use simple version specs for Dependabot compatibility.
The following are out of scope for the current implementation:
conda-lock.yml or similar lock file formatsStart a development shell
bin/docker-dev-shell conda
Run tests
cd conda && rspec
Run dry-run against a repository
bin/dry-run.rb conda owner/repo --enable-beta-ecosystems
To enable Conda support, add to your .github/dependabot.yml:
version: 2
enable-beta-ecosystems: true
updates:
- package-ecosystem: "conda"
directory: "/" # Location of environment.yml
schedule:
interval: "weekly"