Laurens Van Houtven | 5a42298 | 2014-03-15 21:42:31 +0100 | [diff] [blame] | 1 | Contributing |
| 2 | ============ |
Laurens Van Houtven | 290aba1 | 2014-03-14 15:20:18 +0100 | [diff] [blame] | 3 | |
Laurens Van Houtven | 36a2665 | 2014-03-15 21:52:25 +0100 | [diff] [blame] | 4 | First of all, thank you for your interest in contributing to pyOpenSSL! |
Hynek Schlawack | 8fb864a | 2015-06-07 19:09:49 +0200 | [diff] [blame] | 5 | This project has no company backing its development therefore we're dependent on help by the community. |
| 6 | |
Laurens Van Houtven | 290aba1 | 2014-03-14 15:20:18 +0100 | [diff] [blame] | 7 | |
Laurens Van Houtven | 5a42298 | 2014-03-15 21:42:31 +0100 | [diff] [blame] | 8 | Filing bug reports |
| 9 | ------------------ |
Laurens Van Houtven | 290aba1 | 2014-03-14 15:20:18 +0100 | [diff] [blame] | 10 | |
Laurens Van Houtven | 36a2665 | 2014-03-15 21:52:25 +0100 | [diff] [blame] | 11 | Bug reports are very welcome. |
Hynek Schlawack | 35147f0 | 2015-09-06 09:00:15 +0200 | [diff] [blame] | 12 | Please file them on the `GitHub issue tracker`_. |
Laurens Van Houtven | 36a2665 | 2014-03-15 21:52:25 +0100 | [diff] [blame] | 13 | Good bug reports come with extensive descriptions of the error and how to reproduce it. |
Jean-Paul Calderone | 0679a69 | 2014-03-16 10:17:09 -0400 | [diff] [blame] | 14 | Reporters are strongly encouraged to include an `short, self contained, correct example <http://www.sscce.org/>`_. |
Laurens Van Houtven | 290aba1 | 2014-03-14 15:20:18 +0100 | [diff] [blame] | 15 | |
Hynek Schlawack | 8fb864a | 2015-06-07 19:09:49 +0200 | [diff] [blame] | 16 | |
| 17 | Security |
| 18 | -------- |
| 19 | |
| 20 | If you feel that you found a security-relevant bug that you would prefer to discuss in private, please send us a GPG_-encrypted e-mail. |
| 21 | |
| 22 | The maintainer can be reached at hs@ox.cx and his GPG key ID is ``0xAE2536227F69F181`` (Fingerprint: ``C2A0 4F86 ACE2 8ADC F817 DBB7 AE25 3622 7F69 F181``). |
| 23 | Feel free to cross-check this information with Keybase_. |
| 24 | |
| 25 | |
Laurens Van Houtven | 5a42298 | 2014-03-15 21:42:31 +0100 | [diff] [blame] | 26 | Patches |
| 27 | ------- |
Laurens Van Houtven | 290aba1 | 2014-03-14 15:20:18 +0100 | [diff] [blame] | 28 | |
Hynek Schlawack | 8fb864a | 2015-06-07 19:09:49 +0200 | [diff] [blame] | 29 | All patches to pyOpenSSL should be submitted in the form of pull requests to the main pyOpenSSL repository, `pyca/pyopenssl`_. |
Laurens Van Houtven | 36a2665 | 2014-03-15 21:52:25 +0100 | [diff] [blame] | 30 | These pull requests should satisfy the following properties: |
Laurens Van Houtven | 290aba1 | 2014-03-14 15:20:18 +0100 | [diff] [blame] | 31 | |
Hynek Schlawack | 35147f0 | 2015-09-06 09:00:15 +0200 | [diff] [blame] | 32 | - The pull request should focus on one particular improvement to pyOpenSSL. |
| 33 | Create different pull requests for unrelated features or bugfixes. |
Laurens Van Houtven | 36a2665 | 2014-03-15 21:52:25 +0100 | [diff] [blame] | 34 | - Code should follow `PEP 8`_, especially in the "do what code around you does" sense. |
Laurens Van Houtven | 36a2665 | 2014-03-15 21:52:25 +0100 | [diff] [blame] | 35 | Follow OpenSSL naming for callables whenever possible is preferred. |
Hynek Schlawack | 35147f0 | 2015-09-06 09:00:15 +0200 | [diff] [blame] | 36 | - New tests should use `py.test-style assertions`_ instead of the old `self.assertXYZ`-style. |
Jean-Paul Calderone | 0679a69 | 2014-03-16 10:17:09 -0400 | [diff] [blame] | 37 | - Pull requests that introduce code must test all new behavior they introduce as well as for previously untested or poorly tested behavior that they touch. |
Laurens Van Houtven | 290aba1 | 2014-03-14 15:20:18 +0100 | [diff] [blame] | 38 | - Pull requests are not allowed to break existing tests. |
Hynek Schlawack | 35147f0 | 2015-09-06 09:00:15 +0200 | [diff] [blame] | 39 | We usually don't comment on pull requests that are breaking the CI because we consider them work in progress. |
| 40 | Please note that not having 100% code coverage for the code you wrote/touched also causes our CI to fail. |
Laurens Van Houtven | 36a2665 | 2014-03-15 21:52:25 +0100 | [diff] [blame] | 41 | - Pull requests that introduce features or fix bugs should note those changes in the ``ChangeLog`` text file in the root of the repository. |
| 42 | They should also document the changes, both in docstrings and in the documentation in the ``doc/`` directory. |
Laurens Van Houtven | 290aba1 | 2014-03-14 15:20:18 +0100 | [diff] [blame] | 43 | |
Laurens Van Houtven | 36a2665 | 2014-03-15 21:52:25 +0100 | [diff] [blame] | 44 | Finally, pull requests must be reviewed before merging. |
| 45 | This process mirrors the `cryptography code review process`_. |
| 46 | Everyone can perform reviews; this is a very valuable way to contribute, and is highly encouraged. |
Laurens Van Houtven | 290aba1 | 2014-03-14 15:20:18 +0100 | [diff] [blame] | 47 | |
Hynek Schlawack | 8f4eeb5 | 2015-09-06 15:12:40 +0200 | [diff] [blame] | 48 | Pull requests are merged by `members of PyCA`_. |
Hynek Schlawack | 8fb864a | 2015-06-07 19:09:49 +0200 | [diff] [blame] | 49 | They should, of course, keep all the requirements detailed in this document as well as the ``pyca/cryptography`` merge requirements in mind. |
Laurens Van Houtven | 290aba1 | 2014-03-14 15:20:18 +0100 | [diff] [blame] | 50 | |
Hynek Schlawack | 8fb864a | 2015-06-07 19:09:49 +0200 | [diff] [blame] | 51 | The final responsibility for the reviewing of merged code lies with the person merging it. |
| 52 | Since pyOpenSSL is a sensitive project from a security perspective, reviewers are strongly encouraged to take this review and merge process very seriously. |
Laurens Van Houtven | 290aba1 | 2014-03-14 15:20:18 +0100 | [diff] [blame] | 53 | |
Hynek Schlawack | 8fb864a | 2015-06-07 19:09:49 +0200 | [diff] [blame] | 54 | |
| 55 | Finding Help |
| 56 | ------------ |
| 57 | |
| 58 | If you need any help with the contribution process, you'll find us hanging out at ``#cryptography-dev`` on Freenode_ IRC. |
| 59 | You can also ask questions on our `mailing list`_. |
| 60 | |
| 61 | Wherever we interact, we strive to follow the `Python Community Code of Conduct`_. |
| 62 | |
| 63 | |
Hynek Schlawack | 35147f0 | 2015-09-06 09:00:15 +0200 | [diff] [blame] | 64 | .. _GitHub issue tracker: https://github.com/pyca/pyopenssl/issues |
Hynek Schlawack | 8fb864a | 2015-06-07 19:09:49 +0200 | [diff] [blame] | 65 | .. _GPG: http://en.wikipedia.org/wiki/GNU_Privacy_Guard |
| 66 | .. _Keybase: https://keybase.io/hynek |
| 67 | .. _pyca/pyopenssl: https://github.com/pyca/pyopenssl |
| 68 | .. _PEP 8: https://www.python.org/dev/peps/pep-0008/ |
Hynek Schlawack | 35147f0 | 2015-09-06 09:00:15 +0200 | [diff] [blame] | 69 | .. _py.test-style assertions: https://pytest.org/latest/assert.html |
Laurens Van Houtven | 5a42298 | 2014-03-15 21:42:31 +0100 | [diff] [blame] | 70 | .. _cryptography code review process: https://cryptography.io/en/latest/development/reviewing-patches/ |
Hynek Schlawack | 8fb864a | 2015-06-07 19:09:49 +0200 | [diff] [blame] | 71 | .. _freenode: https://freenode.net |
Hynek Schlawack | 35147f0 | 2015-09-06 09:00:15 +0200 | [diff] [blame] | 72 | .. _mailing list: https://mail.python.org/mailman/listinfo/cryptography-dev |
| 73 | .. _Python Community Code of Conduct: https://www.python.org/psf/codeofconduct/ |
Hynek Schlawack | 8f4eeb5 | 2015-09-06 15:12:40 +0200 | [diff] [blame] | 74 | .. _members of PyCA: https://github.com/orgs/pyca/people |