Skip to content

Latest commit

 

History

History
109 lines (82 loc) · 3.66 KB

CONTRIBUTING.rst

File metadata and controls

109 lines (82 loc) · 3.66 KB

How to Get Your Change Into Ryu

Submitting a change

Send patches to [email protected]. Please don't use "Pull Request" on GitHub. We expect you to send patches in "git-format-patch" style.

# "N" means the number of commits to be included
$ git format-patch -s HEAD~N

# To add cover (e.g., [PATCH 0/X]), specify "--cover-letter" option
$ git format-patch -s --cover-letter HEAD~N

# You can send patches by "git send-email" command
$ git send-email --to="[email protected]" *.patch

Please check your changes with pep8 and run unittests to make sure that they don't break the existing features. The following command does both for you.

# Install dependencies of tests
$ pip install -r tools/test-requires

# Execute unit tests and pep8
$ ./run_tests.sh

Of course, you are encouraged to add unittests when you add new features (it's not a must though).

Python version and libraries

  • Python 2.7, 3.4, 3.5:

    Ryu supports multiple Python version. CI tests on Travis-CI is running on these versions.

  • standard library + widely used library:

    Basically widely used == OpenStack adopted. As usual there are exceptions. Or python binding library for other component.

Coding style guide

Reference

  • Python Essential Reference, 4th Edition [Amazon] * Paperback: 717 pages * Publisher: Addison-Wesley Professional; 4 edition (July 19, 2009) * Language: English * ISBN-10: 0672329786 * ISBN-13: 978-0672329784
  • The Python Standard Library by Example (Developer's Library) * Paperback: 1344 pages * Publisher: Addison-Wesley Professional; 1 edition (June 11, 2011) * Language: English * ISBN-10: 0321767349 * ISBN-13: 978-0321767349