Merge pull request #2572 from Lukasa/contribution
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Add basic contributing guide
authored by Kenneth Reitz · committed by Kenneth Reitz · parents ca66267, 9dba203 · Browse files · 2 files·+162 added−0 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+162 added−0 removed
- other:+162 added−0 removed
Provenance
- Commit
09023f5- Tree
3777fad- Author
Kenneth Reitz <me@kennethreitz.org>- Committer
Kenneth Reitz <me@kennethreitz.org>- Parent 1
ca66267- Parent 2
9dba203
2 files changed+162 added−0 removed
added:docs/dev/contributing.rst+161 added
1+.. _contributing:2+3+Contributor's Guide4+===================5+6+If you're reading this you're probably interested in contributing to7+``requests``. First, I'd like to say: thankyou! Open source projects8+live-and-die based on the support they receive from others, and the fact that9+you're even *considering* supporting ``requests`` is incredibly generous of10+you.11+12+This document lays out guidelines and advice for contributing to ``requests``.13+If you're thinking of contributing, start by reading this thoroughly and14+getting a feel for how contributing to the project works. If you've still got15+questions after reading this, you should go ahead and contact either16+`Ian Cordasco`_ or `Cory Benfield`_, the active maintainers.17+18+The guide is split into sections based on the type of contribution you're19+thinking of making, with a section that covers general guidelines for all20+contributors.21+22+.. _Ian Cordasco: http://www.coglib.com/~icordasc/23+.. _Cory Benfield: https://lukasa.co.uk/about24+25+26+All Contributions27+-----------------28+29+Be Cordial Or Be On Your Way30+~~~~~~~~~~~~~~~~~~~~~~~~~~~~31+32+``requests`` has one very important guideline governing all forms of33+contribution, including things like reporting bugs or requesting features. The34+guideline is `be cordial or be on your way`_. **All contributions are35+welcome**, but they come with an implicit social contract: everyone must be36+treated with respect.37+38+This can be a difficult area to judge, so the maintainers will enforce the39+following policy. If any contributor acts rudely or aggressively towards any40+other contributor, **regardless of whether they perceive themselves to be41+acting in retaliation for an earlier breach of this guideline**, they will be42+subject to the following procedure:43+44+1. They must apologise. This apology must be genuine in nature: "I'm sorry you45+ were offended" is not sufficient. The judgement of 'genuine' is at the46+ discretion of the maintainers.47+2. If the apology is not offered, any outstanding and future contributions from48+ the violating contributor will be rejected immediately.49+50+Everyone involved in the ``requests`` project, the maintainers included, are51+bound by this policy. Failing to abide by it leads to the offender being kicked52+off the project.53+54+.. _be cordial or be on your way: http://kennethreitz.org/be-cordial-or-be-on-your-way/55+56+.. _early-feedback:57+58+Get Early Feedback59+~~~~~~~~~~~~~~~~~~60+61+If you are contributing, do not feel the need to sit on your contribution until62+it is perfectly polished and complete. It helps everyone involved for you to63+seek feedback as early as you possibly can. Submitting an early, unfinished64+version of your contribution for feedback in no way prejudices your chances of65+getting that contribution accepted, and can save you from putting a lot of work66+into a contribution that is not suitable for the project.67+68+Contribution Suitability69+~~~~~~~~~~~~~~~~~~~~~~~~70+71+The project maintainer has the last word on whether or not a contribution is72+suitable for ``requests``. All contributions will be considered, but from time73+to time contributions will be rejected because they do not suit the project.74+75+If your contribution is rejected, don't despair! So long as you followed these76+guidelines, you'll have a much better chance of getting your next contribution77+accepted.78+79+80+Code Contributions81+------------------82+83+Steps84+~~~~~85+86+When contributing code, you'll want to follow this checklist:87+88+1. Fork the repository on GitHub.89+2. Run the tests to confirm they all pass on your system. If they don't, you'll90+ need to investigate why they fail. If you're unable to diagnose this91+ yourself, raise it as a bug report by following the guidelines in this92+ document: :ref:`bug-reports`.93+3. Write tests that demonstrate your bug or feature. Ensure that they fail.94+4. Make your change.95+5. Run the entire test suite again, confirming that all tests pass *including96+ the ones you just added*.97+6. Send a GitHub Pull Request to the main repository's ``master`` branch.98+ GitHub Pull Requests are the expected method of code collaboration on this99+ project. If you object to the GitHub workflow, you may mail a patch to any100+ of the maintainers listed above.101+102+The following sub-sections go into more detail on some of the points above.103+104+Code Review105+~~~~~~~~~~~106+107+Contributions will not be merged until they've been code reviewed. You should108+implement any code review feedback unless you strongly object to it. In the109+event that you object to the code review feedback, you should make your case110+clearly and calmly. If, after doing so, the feedback is judged to still apply,111+you must either apply the feedback or withdraw your contribution.112+113+New Contributors114+~~~~~~~~~~~~~~~~115+116+If you are new or relatively new to Open Source, welcome! ``requests`` aims to117+be a gentle introduction to the world of Open Source. If you're concerned about118+how best to contribute, please consider mailing a maintainer (listed above) and119+asking for help.120+121+Please also check the :ref:`early-feedback` section.122+123+Documentation Contributions124+---------------------------125+126+Documentation improvements are always welcome! The documentation files live in127+the ``docs/`` directory of the codebase. They're written in128+`reStructuredText`_, and use `Sphinx`_ to generate the full suite of129+documentation.130+131+When contributing documentation, please attempt to follow the style of the132+documentation files. This means a soft-limit of 79 characters wide in your text133+files and a semi-formal prose style.134+135+.. _reStructuredText: http://docutils.sourceforge.net/rst.html136+.. _Sphinx: http://sphinx-doc.org/index.html137+138+139+.. _bug-reports:140+141+Bug Reports142+-----------143+144+Bug reports are hugely important! Before you raise one, though, please check145+through the `GitHub issues`_, **both open and closed**, to confirm that the bug146+hasn't been reported before. Duplicate bug reports are a huge drain on the time147+of other contributors, and should be avoided as much as possible.148+149+.. _GitHub issues: https://github.com/kennethreitz/requests/issues150+151+152+Feature Requests153+----------------154+155+Requests is in a perpeptual feature freeze. The maintainers believe that156+requests contains every major feature currently required by the vast majority157+of users.158+159+If you believe there is a feature missing, feel free to raise a feature160+request, but please do be aware that the overwhelming likelihood is that your161+feature request will not be accepted.modified:docs/index.rst+1 added
139 unmodified lines140 141 .. toctree::142 :maxdepth: 1143 144+ dev/contributing145 dev/philosophy146 dev/todo147 dev/authors