Skip to content

Latest commit

 

History

History
78 lines (52 loc) · 1.6 KB

development_guide.md

File metadata and controls

78 lines (52 loc) · 1.6 KB

Developing East

Table of Contents

Setup

To develop and test east the use of virtualenv virtual environment is highly recommended.

Additionally, makefile file in the root directory contains most common commands for interacting with the project.

  1. Install virtualenv:
pip install virtualenv
  1. Create and activate virtualenv, run this from the project root directory:
virtualenv venv
source venv/bin/activate
  1. To create an editable install of east tool run the below command. Whatever change you make in the code will be immediately reflected if you run east on the command line afterwards.
make install-dev

Running unit tests

To run unit tests:

make test

Formatting

To format the project run:

make format

Known issues

Editable install does not work

If make install or make install-dev (more exactly pip install -e .) ever misbehaves, it is probably due to this: pypa/pip#7953.

Run the below command once and then again make install, this fixed it last time:

python3 -m pip install --prefix=$(python3 -m site --user-base) -e .

Test for version check fails

This happens if the make install-dev command was not run before running make test.