Development

After checkout, install dependencies and package in active virtualenv:

$ pip install -r requirements/development.txt
$ pip install -r requirements/testing.txt
$ pip install -r requirements/production.txt
$ pip install -e .

Testing

Running tests with Tox:

$ tox -v

Or alternatively:

$ python setup.py test

Running tests without Tox:

$ ./runtests.py

Directly with django-admin:

$ django-admin test --settings=encode.tests.settings encode

Coverage

To generate a test coverage report using coverage.py:

$ coverage run --source='.' runtests.py
$ coverage html

The resulting HTML report can be found in the htmlcov directory.

Localization

To collect all strings for the locale nl into django.po:

$ django-admin makemessages --settings=encode.tests.settings --ignore=tests/*.py -l nl

After translating, compile the django.po catalog into the binary version django.mo:

$ django-admin compilemessages --settings=encode.tests.settings