Developer Guide

Setup Development Environment

  1. Install pip3 and development dependencies:

    wget https://bootstrap.pypa.io/get-pip.py
    sudo python3 get-pip.py
    sudo pip3 install tox
    
  2. Install a native toolchain to build extensions and other required tools:

    sudo apt install python3-dev build-essential graphviz
    
  3. Optionally, it is recommended to install the webdev package to run a development web server from a local directory:

    sudo pip3 install webdev
    webdev .tox/doc/tmp/html
    

Building Package

tox -e build

Output will be available at dist/.

  • Source distribution: ninjecto-<version>.tar.gz.
  • Python wheel: ninjecto-<version>-py3-none-any.whl
  • Binary wheel: ninjecto-<version>-cp36-cp36m-linux_x86_64.whl

Note

The tags of the binary wheel will change depending on the interpreter and operating system you build the binary wheel on.

Building Documentation

tox -e doc

Output will be available at .tox/doc/tmp/html.

webdev .tox/doc/tmp/html

Running Test Suite

tox -e test

Output will be available at .tox/test/tmp/.

webdev .tox/test/tmp/
  • Test results: tests.xml.
  • Coverage results: coverage.xml.
  • Coverage report: coverage.html.