Skip to content

Commit ccb0f8e

Browse files
authored
Merge pull request #1838 from inclement/update_contributing_doc
Documented the development and release models
2 parents 1d375fb + 25ebd59 commit ccb0f8e

File tree

2 files changed

+78
-8
lines changed

2 files changed

+78
-8
lines changed

README.md

+11-6
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ python-for-android
33

44
[![Build Status](https://travis-ci.org/kivy/python-for-android.svg?branch=master)](https://travis-ci.org/kivy/python-for-android)
55
[![Coverage Status](https://coveralls.io/repos/github/kivy/python-for-android/badge.svg?branch=master&kill_cache=1)](https://coveralls.io/github/kivy/python-for-android?branch=master)
6-
[![Backers on Open Collective](https://opencollective.com/kivy/backers/badge.svg)](#backers)
7-
[![Sponsors on Open Collective](https://opencollective.com/kivy/sponsors/badge.svg)](#sponsors)
6+
[![Backers on Open Collective](https://opencollective.com/kivy/backers/badge.svg)](#backers)
7+
[![Sponsors on Open Collective](https://opencollective.com/kivy/sponsors/badge.svg)](#sponsors)
88

99
python-for-android is a packager for Python apps on Android. You can
1010
create your own Python distribution including the modules and
@@ -69,9 +69,15 @@ We also have [#support Discord channel](https://chat.kivy.org/).
6969

7070
## Contributing
7171

72-
We love pull requests and discussing novel ideas. Check out our
73-
[contribution guide](http://kivy.org/docs/contribute.html) and feel
74-
free to improve python-for-android.
72+
We love pull requests and discussing novel ideas. Check out the Kivy
73+
project [contribution guide](http://kivy.org/docs/contribute.html) and
74+
feel free to improve python-for-android.
75+
76+
See [our
77+
documentation](https://python-for-android.readthedocs.io/en/latest/contribute/)
78+
for more information about the python-for-android development and
79+
release model, but don't worry about the details. You just need to
80+
make a pull request, we'll take care of the rest.
7581

7682
The following mailing list and IRC channel are used exclusively for
7783
discussions about developing the Kivy framework and its sister projects:
@@ -139,4 +145,3 @@ Support this project by becoming a sponsor. Your logo will show up here with a l
139145
<a href="https://opencollective.com/kivy/sponsor/7/website" target="_blank"><img src="https://opencollective.com/kivy/sponsor/7/avatar.svg"></a>
140146
<a href="https://opencollective.com/kivy/sponsor/8/website" target="_blank"><img src="https://opencollective.com/kivy/sponsor/8/avatar.svg"></a>
141147
<a href="https://opencollective.com/kivy/sponsor/9/website" target="_blank"><img src="https://opencollective.com/kivy/sponsor/9/avatar.svg"></a>
142-

doc/source/contribute.rst

+67-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,73 @@
1-
Contributing
2-
============
1+
Development and Contributing
2+
============================
33

44
The development of python-for-android is managed by the Kivy team `via
55
Github <https://github.com/kivy/python-for-android>`_.
66

77
Issues and pull requests are welcome via the integrated `issue tracker
88
<https://github.com/kivy/python-for-android/issues>`_.
9+
10+
Read on for more information about how we manage development and
11+
releases, but don't worry about the details! Pull requests are welcome
12+
and we'll deal with the rest.
13+
14+
Development model
15+
-----------------
16+
17+
python-for-android is developed using the following model::
18+
19+
- The ``master`` branch always represents the latest stable release.
20+
- The ``develop`` branch is the most up to date with new contributions.
21+
- Releases happen periodically, and consist of merging the current ``develop`` branch into ``master``.
22+
23+
For reference, this is based on a `Git flow
24+
<https://nvie.com/posts/a-successful-git-branching-model/>`__ model,
25+
although we don't follow this religiously.
26+
27+
Versioning
28+
----------
29+
30+
python-for-android releases currently use `calendar versioning
31+
<https://calver.org/>`__. Release numbers are of the form
32+
YYYY.MM.DD. We aim to create a new release every four weeks, but more
33+
frequent releases are also possible.
34+
35+
We use calendar versioning because in practice, changes in
36+
python-for-android are often driven by updates or adjustments in the
37+
Android build tools. It's usually best for users to be working from
38+
the latest release. We try to maintain backwards compatibility even
39+
while internals are changing.
40+
41+
42+
Creating a new release
43+
----------------------
44+
45+
New releases follow these steps:
46+
47+
- Create a new branch ``release/YYYY.MM.DD`` based on the ``develop`` branch.
48+
- ``git checkout -b release/YYYY.MM.DD develop``
49+
- Create a Github pull request to merge ``release/YYYY.MM.DD`` into ``master``.
50+
- Complete all steps in the `release checklist <release_checklist_>`_,
51+
and document this in the pull request (copy the checklist into the PR text)
52+
53+
At this point, wait for reviewer approval and conclude any discussion that arises. To complete the release:
54+
55+
- Merge the release branch to the ``master`` branch.
56+
- Also merge the release branch to the ``develop`` branch.
57+
- Tag the release commit in ``master``. Include a short summary of the changes.
58+
- Create the release distributions: ``python3 setup.py sdist``
59+
- Upload the release to pypi: ``python3 -m twine upload``.
60+
- Upload the release ``.tar.gz`` to the Github tag.
61+
62+
.. _release_checklist:
63+
64+
Release checklist
65+
~~~~~~~~~~~~~~~~~
66+
67+
- [ ] Check that the [build is passing](https://travis-ci.org/kivy/python-for-android)
68+
- [ ] Run the tests locally via `tox`: this performs some long-running tests that are skipped on Travis.
69+
- [ ] Build and run the [on_device_unit_tests](https://github.com/kivy/python-for-android/tree/master/testapps/on_device_unit_tests) app using buildozer. Check that they all pass.
70+
- [ ] Build and run the following [testapps](https://github.com/kivy/python-for-android/tree/master/testapps) for arch `armeabi-v7a` and `arm64-v8a`:
71+
- [ ] `python3 setup_testapp_python3_sqlite_openssl.py apk`
72+
- [ ] `python3 setup_testapp_python2.py apk`
73+
- [ ] Check that the version number is correct

0 commit comments

Comments
 (0)