|
| 1 | +============ |
| 2 | +Contributing |
| 3 | +============ |
| 4 | + |
| 5 | +Contributions are welcome, and they are greatly appreciated! Every |
| 6 | +little bit helps, and credit will always be given. |
| 7 | + |
| 8 | +You can contribute in many ways: |
| 9 | + |
| 10 | +Types of Contributions |
| 11 | +---------------------- |
| 12 | + |
| 13 | +Report Bugs |
| 14 | +~~~~~~~~~~~ |
| 15 | + |
| 16 | +Report bugs at https://github.com/guzmud/django-panpub/issues. |
| 17 | + |
| 18 | +If you are reporting a bug, please include: |
| 19 | + |
| 20 | +* Your operating system name and version. |
| 21 | +* Any details about your local setup that might be helpful in troubleshooting. |
| 22 | +* Detailed steps to reproduce the bug. |
| 23 | + |
| 24 | +Fix Bugs |
| 25 | +~~~~~~~~ |
| 26 | + |
| 27 | +Look through the GitHub issues for bugs. Anything tagged with "bug" |
| 28 | +is open to whoever wants to implement it. |
| 29 | + |
| 30 | +Implement Features |
| 31 | +~~~~~~~~~~~~~~~~~~ |
| 32 | + |
| 33 | +Look through the GitHub issues for features. Anything tagged with "feature" |
| 34 | +is open to whoever wants to implement it. |
| 35 | + |
| 36 | +Write Documentation |
| 37 | +~~~~~~~~~~~~~~~~~~~ |
| 38 | + |
| 39 | +Django Panpub could always use more documentation, whether as part of the |
| 40 | +official Django Panpub docs, in docstrings, or even on the web in blog posts, |
| 41 | +articles, and such. |
| 42 | + |
| 43 | +Submit Feedback |
| 44 | +~~~~~~~~~~~~~~~ |
| 45 | + |
| 46 | +The best way to send feedback is to file an issue at https://github.com/guzmud/django-panpub/issues. |
| 47 | + |
| 48 | +If you are proposing a feature: |
| 49 | + |
| 50 | +* Explain in detail how it would work. |
| 51 | +* Keep the scope as narrow as possible, to make it easier to implement. |
| 52 | +* Remember that this is a volunteer-driven project, and that contributions |
| 53 | + are welcome :) |
| 54 | + |
| 55 | +Get Started! |
| 56 | +------------ |
| 57 | + |
| 58 | +Ready to contribute? Here's how to set up `django-panpub` for local development. |
| 59 | + |
| 60 | +1. Fork the `django-panpub` repo on GitHub. |
| 61 | +2. Clone your fork locally:: |
| 62 | + |
| 63 | + $ git clone [email protected]:your_name_here/django-panpub.git |
| 64 | + |
| 65 | +3. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development:: |
| 66 | + |
| 67 | + $ mkvirtualenv django-panpub |
| 68 | + $ cd django-panpub/ |
| 69 | + $ python setup.py develop |
| 70 | + |
| 71 | +4. Create a branch for local development:: |
| 72 | + |
| 73 | + $ git checkout -b name-of-your-bugfix-or-feature |
| 74 | + |
| 75 | + Now you can make your changes locally. |
| 76 | + |
| 77 | +5. When you're done making changes, check that your changes pass flake8 and the |
| 78 | + tests, including testing other Python versions with tox:: |
| 79 | + |
| 80 | + $ flake8 django_panpub tests |
| 81 | + $ python setup.py test |
| 82 | + $ tox |
| 83 | + |
| 84 | + To get flake8 and tox, just pip install them into your virtualenv. |
| 85 | + |
| 86 | +6. Commit your changes and push your branch to GitHub:: |
| 87 | + |
| 88 | + $ git add . |
| 89 | + $ git commit -m "Your detailed description of your changes." |
| 90 | + $ git push origin name-of-your-bugfix-or-feature |
| 91 | + |
| 92 | +7. Submit a pull request through the GitHub website. |
| 93 | + |
| 94 | +Pull Request Guidelines |
| 95 | +----------------------- |
| 96 | + |
| 97 | +Before you submit a pull request, check that it meets these guidelines: |
| 98 | + |
| 99 | +1. The pull request should include tests. |
| 100 | +2. If the pull request adds functionality, the docs should be updated. Put |
| 101 | + your new functionality into a function with a docstring, and add the |
| 102 | + feature to the list in README.rst. |
| 103 | +3. The pull request should work for Python 2.6, 2.7, and 3.3, and for PyPy. Check |
| 104 | + https://travis-ci.org/guzmud/django-panpub/pull_requests |
| 105 | + and make sure that the tests pass for all supported Python versions. |
| 106 | + |
| 107 | +Tips |
| 108 | +---- |
| 109 | + |
| 110 | +To run a subset of tests:: |
| 111 | + |
| 112 | + $ python -m unittest tests.test_django_panpub |
0 commit comments