Development¶
Development requirement¶
Boussole is developed with:
- Test Development Driven (TDD) using Pytest;
- Respecting flake and pip8 rules using Flake8;
- Sphinx for documentation with enabled Napoleon extension (using only the Google style);
Every requirement is available in file requirements/dev.txt
.
Install for development¶
First ensure you have pip and virtualenv installed, then type this:
mkdir Boussole-dev
cd Boussole-dev
virtualenv .
git clone https://github.com/sveetch/boussole.git
bin/pip install -e boussole
bin/pip install -r boussole/requirements/dev.txt
source bin/activate
Boussole will be installed in editable mode from the last commit on master branch.
When it’s done, you will be able to check for boussole version, just type:
boussole version
Unittests¶
Unittests are made to works on Pytest, a shortcut in Makefile is available to start them on your current development install:
make tests
Tox¶
To ease development against multiple Python versions a tox configuration has been added. You are strongly encouraged to use it to test your pull requests.
Before using it you will need to install tox, it is recommended to install it at your system level (tox dependancy is not in tests requirements file):
sudo pip install tox
Then go in the boussole
module directory, where the setup.py
and tox.ini
live and execute tox:
tox