| 1 |
############ |
| 2 |
Contributing |
| 3 |
############ |
| 4 |
|
| 5 |
|
| 6 |
.. image:: https://jazzband.co/static/img/jazzband.svg |
| 7 |
:target: https://jazzband.co/ |
| 8 |
:alt: Jazzband |
| 9 |
|
| 10 |
This is a `Jazzband <https://jazzband.co>`_ project. By contributing you agree to abide by the `Contributor Code of Conduct <https://jazzband.co/about/conduct>`_ and follow the `guidelines <https://jazzband.co/about/guidelines>`_. |
| 11 |
|
| 12 |
|
| 13 |
This document provides guidelines for people who want to contribute to |
| 14 |
``django-downloadview``. |
| 15 |
|
| 16 |
|
| 17 |
************** |
| 18 |
Create tickets |
| 19 |
************** |
| 20 |
|
| 21 |
Please use the `bugtracker`_ **before** starting some work: |
| 22 |
|
| 23 |
* check if the bug or feature request has already been filed. It may have been |
| 24 |
answered too! |
| 25 |
|
| 26 |
* else create a new ticket. |
| 27 |
|
| 28 |
* if you plan to contribute, tell us, so that we are given an opportunity to |
| 29 |
give feedback as soon as possible. |
| 30 |
|
| 31 |
* Then, in your commit messages, reference the ticket with some |
| 32 |
``refs #TICKET-ID`` syntax. |
| 33 |
|
| 34 |
|
| 35 |
****************** |
| 36 |
Use topic branches |
| 37 |
****************** |
| 38 |
|
| 39 |
* Work in branches. |
| 40 |
|
| 41 |
* Prefix your branch with the ticket ID corresponding to the issue. As an |
| 42 |
example, if you are working on ticket #23 which is about contribute |
| 43 |
documentation, name your branch like ``23-contribute-doc``. |
| 44 |
|
| 45 |
* If you work in a development branch and want to refresh it with changes from |
| 46 |
master, please `rebase`_ or `merge-based rebase`_, i.e. do not merge master. |
| 47 |
|
| 48 |
|
| 49 |
*********** |
| 50 |
Fork, clone |
| 51 |
*********** |
| 52 |
|
| 53 |
Clone ``django-downloadview`` repository (adapt to use your own fork): |
| 54 |
|
| 55 |
.. code:: sh |
| 56 |
|
| 57 |
git clone [email protected]:jazzband/django-downloadview.git |
| 58 |
cd django-downloadview/ |
| 59 |
|
| 60 |
|
| 61 |
************* |
| 62 |
Usual actions |
| 63 |
************* |
| 64 |
|
| 65 |
The ``Makefile`` is the reference card for usual actions in development |
| 66 |
environment: |
| 67 |
|
| 68 |
* Install development toolkit with `pip`_: ``make develop``. |
| 69 |
|
| 70 |
* Run tests with `tox`_: ``make test``. |
| 71 |
|
| 72 |
* Build documentation: ``make documentation``. It builds `Sphinx`_ |
| 73 |
documentation in ``var/docs/html/index.html``. |
| 74 |
|
| 75 |
* Release project with `zest.releaser`_: ``make release``. |
| 76 |
|
| 77 |
* Cleanup local repository: ``make clean``, ``make distclean`` and |
| 78 |
``make maintainer-clean``. |
| 79 |
|
| 80 |
See also ``make help``. |
| 81 |
|
| 82 |
|
| 83 |
********************* |
| 84 |
Demo project included |
| 85 |
********************* |
| 86 |
|
| 87 |
The ``demo`` included in project's repository is part of the tests and |
| 88 |
documentation. Maintain it along with code and documentation. |
| 89 |
|
| 90 |
|
| 91 |
.. rubric:: Notes & references |
| 92 |
|
| 93 |
.. target-notes:: |
| 94 |
|
| 95 |
.. _`bugtracker`: |
| 96 |
https://github.com/jazzband/django-downloadview/issues |
| 97 |
.. _`rebase`: http://git-scm.com/book/en/Git-Branching-Rebasing |
| 98 |
.. _`merge-based rebase`: https://tech.people-doc.com/psycho-rebasing.html |
| 99 |
.. _`pip`: https://pypi.python.org/pypi/pip/ |
| 100 |
.. _`tox`: https://tox.readthedocs.io/ |
| 101 |
.. _`Sphinx`: https://pypi.python.org/pypi/Sphinx/ |
| 102 |
.. _`zest.releaser`: https://pypi.python.org/pypi/zest.releaser/ |