Grab the source from Github:

Run the tests

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


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 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
  • 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 sdist bdist_wheel
twine upload dist/*