forked from arskom/spyne
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move all contribution info to readme. arskom#298
- Loading branch information
Showing
4 changed files
with
41 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,58 @@ | ||
|
||
Spyne development guidelines | ||
============================ | ||
|
||
If you wish to contribute to Spyne's development, create a personal fork | ||
on GitHub. When you are ready to push to the upstream repository, | ||
submit a pull request to bring your work to the attention of the core | ||
committers. They will respond to review your patch and act accordingly. | ||
|
||
Code format | ||
----------- | ||
|
||
The code should comply with PEP8. | ||
|
||
Please follow the `PEP 8 <http://www.python.org/dev/peps/pep-0008/>`_ | ||
style guidelines for both source code and docstrings. | ||
|
||
Branching | ||
--------- | ||
|
||
For fixing an issue or adding a feature create a new branch from ``master`` branch. | ||
For fixing an issue or adding a feature create a new branch from ``master`` | ||
branch. | ||
|
||
Github's pull-request feature is awesome, but there's a subtlety that's not | ||
totally obvious for newcomers: If you continue working on the branch that you | ||
used to submit a pull request, your commits will "pollute" the pull request | ||
until it gets merged. This is not a bug, but a feature -- it gives you the | ||
ability to address reviewers' concerns without creating pull requests over and | ||
over again. So, if you intend to work on other parts of spyne after submitting | ||
a pull request, please do move your work to its own branch and never submit a | ||
pull request from your master branch. This will give you the freedom to | ||
continue working on Spyne while waiting for your pull request to be reviewed. | ||
|
||
Pull request | ||
------------ | ||
Pull requests | ||
------------- | ||
|
||
When submitting a pull request: | ||
|
||
* add and run tests. | ||
* describe the changes in ``CHANGELOG.rst``. | ||
* create a pull request from your topic branch to ``master`` in upstream Spyne repo. | ||
* review the diff of the pull request on github. | ||
* Add and run tests. | ||
* If needed, shortly describe the changes in ``CHANGELOG.rst``. | ||
* Create a pull request from your topic branch to ``master`` in upstream Spyne | ||
repo, unless the work you're doing is part of a bigger ongoing effort under | ||
the Spyne project. | ||
|
||
Do note that we keep the master branch on the upstream repository clean. So we | ||
never merge pull requests with failing tests. So make sure all old and new tests | ||
pass before submitting pull requests. | ||
|
||
Regular contributors may be invited to join as a core Spyne committer on | ||
GitHub. Even if this gives the core committers the power to commit directly | ||
to the core repository, we highly value code reviews and expect every | ||
significant change to be committed via pull requests. | ||
|
||
Development principles | ||
---------------------- | ||
|
||
* when overriding a method in a class use ``super`` to call the parent implementation instead of | ||
directly specifying the parent class. This is needed to correctly call all implementations | ||
according to MRO when having "diamond inheritance". | ||
* When overriding a method in a class use the ``super()`` to call the parent | ||
implementation instead of explicitly specifying the parent class. This is | ||
needed to correctly call all implementations of the overridden method | ||
according to MRO in cases of multiple inheritance. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ Other Goodies | |
tests | ||
faq | ||
h_and_f | ||
../../CONTRIBUTING.rst | ||
|
||
################## | ||
Indices and tables | ||
|