Development guide¶
Install development requirements¶
Install the development requirements:
$ pipenv install --dev
Note
The commands below assume you are in the virtualenv. You activate the virtualenv with:
$ pipenv shell
You can also run all the commands with:
$ pipenv run <command>
Running tests¶
To run the tests, we need to use a different settings file. We tell ievvtasks to
do this using the DJANGOENV
environent variable:
$ DJANGOENV=test python manage.py test
Adding more dependencies¶
Just add dependencies as normal with pipenv, BUT make sure you run:
$ pipenv lock -r > requirements.txt
when you merge into master before you push IF you add any non-dev dependencies. This
is because readthedocs requires requirements.txt
to build.