Contributing to datreant¶
datreant is an open-source project, with its development driven by the needs of its users. Anyone is welcome to contribute to the project, which centers around the datreant GitHub organization.
datreant follows the development model outlined by Vincent Driessen , with the
develop branch being the unstable focal point for development. The
master branch merges from the develop branch only when all tests are
passing, and usually only before a release. In general, master should be usable
at all times, while develop may be broken at any particular moment.
Setting up your development environment¶
git clone firstname.lastname@example.org:datreant/datreant.git
Make a new virtualenv called
and make a development installation of
cd datreant pip install -e .
-e flag will cause pip to call setup with the
develop option. This
means that any changes on the source code will immediately be reflected in your
Running the tests locally¶
As you work on datreant, it’s important to see how your changes affected its expected behavior. With your virtualenv enabled:
switch to the top-level directory of the package and run:
py.test --cov src/ --pep8 src/
Note that to run the tests you will need to install
py.test and the
coverage and PEP8 plugins into your virtualenv:
pip install pytest pytest-cov pytest-pep8