Files
@ 061ce7c3071a
Branch filter:
Location: kallithea/docs/contributing.rst - annotation
061ce7c3071a
5.9 KiB
text/prs.fallenstein.rst
hooks: add some docstrings
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | bb35ad076e2f bb35ad076e2f 17c9393e9645 e73a69cb98dc bb35ad076e2f bb35ad076e2f 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 bb35ad076e2f 03bbd33bc084 03bbd33bc084 03bbd33bc084 053983a464e4 03bbd33bc084 4e6dfdb3fa01 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 f4857279cb29 f4857279cb29 b53cef6faf22 03bbd33bc084 03bbd33bc084 053983a464e4 03bbd33bc084 950110f3f99f 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 950110f3f99f 03bbd33bc084 03bbd33bc084 03bbd33bc084 950110f3f99f 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 329dd2b2025d 329dd2b2025d b53cef6faf22 329dd2b2025d 329dd2b2025d 329dd2b2025d 329dd2b2025d 329dd2b2025d b53cef6faf22 b53cef6faf22 329dd2b2025d b53cef6faf22 b53cef6faf22 329dd2b2025d f879e7ea1c4b f879e7ea1c4b f879e7ea1c4b f879e7ea1c4b f879e7ea1c4b f879e7ea1c4b f879e7ea1c4b 329dd2b2025d 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 b8d716694dc8 b8d716694dc8 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 2079e864ce51 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 9472a0150bf0 f4857279cb29 f4857279cb29 9472a0150bf0 03bbd33bc084 03bbd33bc084 03bbd33bc084 b08aab61c41d b08aab61c41d b08aab61c41d 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 03bbd33bc084 9472a0150bf0 03bbd33bc084 03bbd33bc084 b08aab61c41d | .. _contributing:
=========================
Contributing to Kallithea
=========================
Kallithea is developed and maintained by its users. Please join us and scratch
your own itch.
Infrastructure
--------------
The main repository is hosted at Our Own Kallithea (aka OOK) on
https://kallithea-scm.org/repos/kallithea/ (which is our self-hosted instance
of Kallithea).
For now, we use Bitbucket_ for `Pull Requests`_ and `Issue Tracker`_ services. The
issue tracker is for tracking bugs, not for support, discussion, or ideas -
please use the `mailing list`_ to reach the community.
We use Weblate_ to translate the user interface messages into languages other
than English. Join our project on `Hosted Weblate`_ to help us.
To register, you can use your Bitbucket or GitHub account. See :ref:`translations`
for more details.
Getting started
---------------
To get started with development::
hg clone https://kallithea-scm.org/repos/kallithea
cd kallithea
virtualenv ../kallithea-venv
source ../kallithea-venv/bin/activate
python setup.py develop
paster make-config Kallithea my.ini
paster setup-db my.ini --user=user --email=user@example.com --password=password --repos=/tmp
paster serve my.ini --reload &
firefox http://127.0.0.1:5000/
You can also start out by forking https://bitbucket.org/conservancy/kallithea
on Bitbucket_ and create a local clone of your own fork.
Running tests
-------------
After finishing your changes make sure all tests pass cleanly. You can run
the testsuite running ``nosetests`` from the project root, or if you use tox
run ``tox`` for python2.6-2.7 with multiple database test.
When using `nosetests`, the `test.ini` file is used with an SQLite database. Edit
this file to change your testing enviroment.
It is possible to avoid recreating the full test database on each invocation of
the tests, thus eliminating the initial delay. To achieve this, run the tests as::
paster serve test.ini --pid-file=test.pid --daemon
KALLITHEA_WHOOSH_TEST_DISABLE=1 KALLITHEA_NO_TMP_PATH=1 nosetests
kill -9 $(cat test.pid)
You can run individual tests by specifying their path as argument to nosetests.
nosetests also has many more options, see `nosetests -h`. Some useful options
are::
-x, --stop Stop running tests after the first error or failure
-s, --nocapture Don't capture stdout (any stdout output will be
printed immediately) [NOSE_NOCAPTURE]
--failed Run the tests that failed in the last test run.
Coding/contribution guidelines
------------------------------
Kallithea is GPLv3 and we assume all contributions are made by the
committer/contributor and under GPLv3 unless explicitly stated. We do care a
lot about preservation of copyright and license information for existing code
that is brought into the project.
We don't have a formal coding/formatting standard. We are currently using a mix
of Mercurial (http://mercurial.selenic.com/wiki/CodingStyle), pep8, and
consistency with existing code. Run whitespacecleanup.sh to avoid stupid
whitespace noise in your patches.
We support both Python 2.6.x and 2.7.x and nothing else. For now we don't care
about Python 3 compatibility.
We try to support the most common modern web browsers. IE9 is still supported
to the extent it is feasible, IE8 is not.
We primarily support Linux and OS X on the server side but Windows should also work.
Html templates should use 2 spaces for indentation ... but be pragmatic. We
should use templates cleverly and avoid duplication. We should use reasonable
semantic markup with classes and ids that can be used for styling and testing.
We should only use inline styles in places where it really is semantic (such as
display:none).
JavaScript must use ';' between/after statements. Indentation 4 spaces. Inline
multiline functions should be indented two levels - one for the () and one for
{}. jQuery value arrays should have a leading $.
Commit messages should have a leading short line summarizing the changes. For
bug fixes, put "(Issue #123)" at the end of this line.
Contributions will be accepted in most formats - such as pull requests on
bitbucket, something hosted on your own Kallithea instance, or patches sent by
email to the kallithea-general mailing list.
Make sure to test your changes both manually and with the automatic tests
before posting.
We care about quality and review and keeping a clean repository history. We
might give feedback that requests polishing contributions until they are
"perfect". We might also rebase and collapse and make minor adjustments to your
changes when we apply them.
We try to make sure we have consensus on the direction the project is taking.
Everything non-sensitive should be discussed in public - preferably on the
mailing list. We aim at having all non-trivial changes reviewed by at least
one other core developer before pushing. Obvious non-controversial changes will
be handled more casually.
For now we just have one official branch ("default") and will keep it so stable
that it can be (and is) used in production. Experimental changes should live
elsewhere (for example in a pull request) until they are ready.
.. _translations:
.. include:: ./../kallithea/i18n/how_to
"Roadmap"
---------
We do not have a road map but are waiting for your contributions. Refer to the
wiki_ for some ideas of places we might want to go - contributions in these
areas are very welcome.
Thank you for your contribution!
--------------------------------
.. _Weblate: http://weblate.org/
.. _Issue Tracker: https://bitbucket.org/conservancy/kallithea/issues?status=new&status=open
.. _Pull Requests: https://bitbucket.org/conservancy/kallithea/pull-requests
.. _bitbucket: http://bitbucket.org/
.. _mailing list: http://lists.sfconservancy.org/mailman/listinfo/kallithea-general
.. _Hosted Weblate: https://hosted.weblate.org/projects/kallithea/kallithea/
.. _wiki: https://bitbucket.org/conservancy/kallithea/wiki/Home
|