Contributing

Development Installation

Create a virtualenv:

mkproject --python=<fullpath_to_python_3> factory-boy-rest

Get the code:

git clone https://github.com/bertonha/factory-boy-rest.git .

Install it:

python setup.py develop

The last command enter your code in “Development Mode” it creates an egg-link in your virtualenv’s site-packages making it available on this environment sys.path. For more info see setuptools development mode

Development and test dependencies

setup.py will handle test dependencies, to install development use:

pip install -e .[dev]

Tests

You have many forms to run tests.

The following command will handle test dependencies installation. Perfect for first run.

python setup.py test

Don’t forget to run the test suite against all python versions before submit a pull request. It’s ease just do:

tox

If you want to run only for Python3 you can do:

tox -e py34