2014-02-10 00:27:14 +00:00
############
Contributing
############
2012-12-04 10:47:37 +00:00
2020-09-17 13:48:41 +00:00
.. image :: https://jazzband.co/static/img/jazzband.svg
:target: https://jazzband.co/
:alt: Jazzband
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> `_ .
2014-02-10 00:27:14 +00:00
This document provides guidelines for people who want to contribute to
2024-08-05 08:51:17 +00:00
`` django-downloadview `` .
2012-12-04 10:47:37 +00:00
***** ***** *** *
Create tickets
***** ***** *** *
Please use the `bugtracker`_ **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.
2014-03-03 13:38:33 +00:00
***** ***** ***** ***
Use topic branches
***** ***** ***** ***
2012-12-04 10:47:37 +00:00
2014-03-03 13:38:33 +00:00
* Work in branches.
2012-12-04 10:47:37 +00:00
* 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
2014-03-03 13:38:33 +00:00
master, please `rebase`_ or `merge-based rebase`_ , i.e. do not merge master.
2012-12-04 10:47:37 +00:00
2014-03-03 13:38:33 +00:00
***** ***** *
Fork, clone
***** ***** *
2012-12-04 10:47:37 +00:00
2024-08-05 08:51:17 +00:00
Clone `` django-downloadview `` repository (adapt to use your own fork):
2012-12-04 10:47:37 +00:00
2014-03-03 13:38:33 +00:00
.. code :: sh
2012-12-04 10:47:37 +00:00
2020-09-17 13:48:41 +00:00
git clone git@github.com:jazzband/django-downloadview.git
2012-12-04 10:47:37 +00:00
cd django-downloadview/
2014-03-03 13:38:33 +00:00
***** ***** ***
Usual actions
***** ***** ***
2024-08-05 08:51:17 +00:00
The `` Makefile `` is the reference card for usual actions in development
2014-03-03 13:38:33 +00:00
environment:
* Install development toolkit with `pip`_ : `` make develop `` .
* Run tests with `tox`_ : `` make test `` .
2012-12-04 10:47:37 +00:00
2014-03-03 13:38:33 +00:00
* Build documentation: `` make documentation `` . It builds `Sphinx`_
2024-08-05 08:51:17 +00:00
documentation in `` var/docs/html/index.html `` .
2012-12-04 10:47:37 +00:00
2014-03-03 13:38:33 +00:00
* Release project with `zest.releaser`_ : `` make release `` .
2012-12-04 10:47:37 +00:00
2014-03-03 13:38:33 +00:00
* Cleanup local repository: `` make clean `` , `` make distclean `` and
`` make maintainer-clean `` .
2012-12-04 10:47:37 +00:00
2014-03-03 13:38:33 +00:00
See also `` make help `` .
2012-12-04 10:47:37 +00:00
2012-12-10 10:05:28 +00:00
***** ***** ***** ***** *
Demo project included
***** ***** ***** ***** *
2024-08-05 08:51:17 +00:00
The `` demo `` included in project's repository is part of the tests and
2014-03-03 13:38:33 +00:00
documentation. Maintain it along with code and documentation.
2012-12-10 10:05:28 +00:00
2014-02-10 00:27:14 +00:00
.. rubric :: Notes & references
2012-12-04 10:47:37 +00:00
.. target-notes ::
2024-08-05 08:51:17 +00:00
.. _`bugtracker`:
2020-09-17 13:48:41 +00:00
https://github.com/jazzband/django-downloadview/issues
2012-12-04 10:47:37 +00:00
.. _`rebase`: http://git-scm.com/book/en/Git-Branching-Rebasing
2020-01-07 13:22:08 +00:00
.. _`merge-based rebase`: https://tech.people-doc.com/psycho-rebasing.html
2014-03-03 13:38:33 +00:00
.. _`pip`: https://pypi.python.org/pypi/pip/
2020-01-07 13:22:08 +00:00
.. _`tox`: https://tox.readthedocs.io/
2014-03-03 13:38:33 +00:00
.. _`Sphinx`: https://pypi.python.org/pypi/Sphinx/
.. _`zest.releaser`: https://pypi.python.org/pypi/zest.releaser/