Developers

Grab the source from Github: https://github.com/kumar303/mohawk

Run the tests

You can run the full test suite with the tox command:

tox

To just run Python 2.7 unit tests type:

tox -e py27

To just run doctests type:

tox -e docs

Set up an environment

Using a virtualenv you can set yourself up for development like this:

pip install -r requirements/dev.txt
python setup.py develop

Build the docs

In your virtualenv, you can build the docs like this:

make -C docs/ html doctest
open docs/_build/html/index.html

Publish a release

Do this first to prepare for a release:

  • make sure the changelog is up to date
  • make sure you bumped the module version in setup.py
  • commit, tag (like git tag 0.3.1), and push upstream (like git push --tags upstream).

Run this from the repository root to publish a new release to PyPI as both a source distribution and wheel:

rm -rf dist/*
python setup.py sdist bdist_wheel
twine upload dist/*