This document provides guidelines for people who want to contribute to the django-docusign project.
Please use django-docusign bugtracker [1] before starting some work:
- check if the bug or feature request has already been filed. It may have been answered too!
- else create a new ticket.
- if you plan to contribute, tell us, so that we are given an opportunity to give feedback as soon as possible.
- Then, in your commit messages, reference the ticket with some
refs #TICKET-ID
syntax.
- Work in branches.
- Prefix your branch with the ticket ID corresponding to the issue. As an
example, if you are working on ticket #23 which is about contribute
documentation, name your branch like
23-contribute-doc
. - If you work in a development branch and want to refresh it with changes from master, please rebase [2], i.e. do not merge master.
Clone django-docusign repository (adapt to use your own fork):
git clone [email protected]:novapost/django-docusign.git
cd django-docusign/
The Makefile is the reference card for usual actions in development environment:
- Install development toolkit with pip [3]:
make develop
. - Run tests with tox [4]:
make test
. - Build documentation:
make documentation
. It builds Sphinx [5] documentation in var/docs/html/index.html. - Release django-docusign project with zest.releaser [6]:
make release
. - Cleanup local repository:
make clean
,make distclean
andmake maintainer-clean
.
See also make help
.
The test suite contains several integration tests, so it requires valid DocuSign account credentials. The test suite reads environment variables to get the setup. Here is an example to run the tests:
DOCUSIGN_ROOT_URL='https://demo.docusign.net/restapi/v2' \
DOCUSIGN_USERNAME='your-username' \
DOCUSIGN_PASSWORD='your-password' \
DOCUSIGN_INTEGRATOR_KEY='your-integrator-key' \
DOCUSIGN_TEST_TEMPLATE_ID='UUID-of-your-docusign-template' \
DOCUSIGN_TEST_SIGNER_RETURN_URL='http://example.com/signer-return/' \
make test
Notes & references
[1] | https://github.com/peopledoc/django-docusign/issues |
[2] | http://git-scm.com/book/en/Git-Branching-Rebasing |
[3] | https://pypi.org/project/pip/ |
[4] | https://pypi.org/project/tox/ |
[5] | https://pypi.org/project/Sphinx/ |
[6] | https://pypi.org/project/zest.releaser/ |