Skip to content

A tox-alike configuration for conda environments.

Notifications You must be signed in to change notification settings

asford/toxish-conda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tox-alike via Invoke & Conda

A simple proof-of-concept for tox-style multi-environment testing via conda environments. Utilizes invoke to declare a matrix of conda environments covering multiple python versions. This is likely package-agnostic, and could be used to declare a matrix of arbitrary dependency versions.

Environments are created under .env, with a version-specific prefix. Each environment is updated to include the contents of environment.yml. A configurable test command is then executed with each environment activated.

See the minimal demo project is available under demo.

Requirements

conda >= 4.5, attrs, invoke in current shell. Eg:

wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
sh Miniconda3-latest-Linux-x86_64.sh

conda install invoke attrs

Bugs

  • Unlike tox, does not perform sdist & install.
  • 
    
    

Releases

No releases published

Packages

No packages published

Languages