Dependencies in the development environment are managed with Conda.
-
Initialize submodules (run in repository root directory)
$ git submodule init && git submodule update
-
Create the environment (run in repository root directory)
$ conda env create -f environment.yml
This will create a 'amigos' environment with the correct version of python and dependencies for the project.
-
Activate the environment
$ conda activate amigos
-
Install amigos CLI commands (local to source directory)
$ python setup.py develop
Due to poor support for Python 2.6, tests are run in a separate Python 2.7 environment. Easy way:
make test
Hard way:
-
from the repository directory, run
$ conda env create -f environment-testing.yml
This will create a 'amigos' environment with the correct version of python and dependencies for the project.
-
Activate the environment
$ conda activate amigos-testing
-
Run tests
$ pytest --ignore amigos/ext
TODO