$30 off During Our Annual Pro Sale. View Details »

Contribute to CPython

Contribute to CPython

The presentation from SPbPython community / PiterPy meetup about a process of contribution to CPython, CPython GitHub repository's bots.

Delimitry

April 10, 2018
Tweet

More Decks by Delimitry

Other Decks in Programming

Transcript

  1. Contribute to CPython
    Dmitry Alimov
    2018

    View Slide

  2. Quick Guide
    1. Create an issue (on b.p.o.) that describes your change*
    2. Create a new branch in Git
    3. Work on changes (e.g. fix a bug or add a new feature)
    4. Run tests and make patchcheck
    5. Commit and push changes to your GitHub fork
    6. Create Pull Request on GitHub to merge a branch from your fork
    7. Review and address comments on your Pull Request
    8. When your changes are merged, you can delete the PR branch
    9. Celebrate contributing to CPython! :)
    * If an issue is trivial (e.g. typo fixes), or if an issue already exists, you can skip this step.

    View Slide

  3. CLA unsigned

    View Slide

  4. Python Contributor Agreement Form

    View Slide

  5. b.p.o. (bugs.python.org)

    View Slide

  6. CLA signed

    View Slide

  7. Create new issue on b.p.o. (bugs.python.org)

    View Slide

  8. Create pull request

    View Slide


  9. https://bugs.python.org/issue32743

    b.p.o. issue link added by bot:
    Pull request

    View Slide

  10. CPython repository bots

    View Slide

  11. View Slide

  12. The Knights Who Say "Ni"
    https://github.com/python/the-knights-who-say-ni
    A bot to check if the author of a pull request to a Python
    project has signed the PSF CLA.

    View Slide

  13. The Knights Who Say "Ni"
    https://www.youtube.com/watch?v=zIV4poUZAQo

    View Slide

  14. Bedevere
    https://github.com/python/bedevere
    This bot is meant to help identify issues with a CPython
    pull request

    View Slide

  15. Bedevere
    https://www.youtube.com/watch?v=Nf_Y4MbUCLY&feature=youtu.be&t=4m7s

    View Slide

  16. Miss Islington
    https://github.com/python/miss-islington
    Bot for backporting CPython Pull Requests

    View Slide

  17. Miss Islington

    View Slide

  18. Last steps
    Close the issue on b.p.o.
    Delete the PR branch
    After merge
    Celebrate contributing to CPython! :)

    View Slide

  19. Questions
    https://t.me/spbpython
    https://t.me/piterpy_meetup
    19

    View Slide

  20. Links
    http://delimitry.blogspot.com/2018/01/contribute-to-cpython.html
    https://devguide.python.org/
    https://github.com/
    https://github.com/python/cpython/
    https://www.python.org/psf/contrib/contrib-form/
    https://bugs.python.org/
    http://eclecticdad.com/wp-content/uploads/2014/01/Monty_Python_Holy_Grail.jpg
    20

    View Slide