| 1 |
# Project management |
| 2 |
|
| 3 |
> "No one can whistle a symphony; it takes a whole orchestra to play it" |
| 4 |
> |
| 5 |
> — Halford E. Luccock |
| 6 |
|
| 7 |
This document outlines our project management processes for REST framework. |
| 8 |
|
| 9 |
The aim is to ensure that the project has a high |
| 10 |
["bus factor"][bus-factor], and can continue to remain well supported for the foreseeable future. Suggestions for improvements to our process are welcome. |
| 11 |
|
| 12 |
--- |
| 13 |
|
| 14 |
## Maintenance team |
| 15 |
|
| 16 |
[Participating actively in the REST framework project](contributing.md) **does not require being part of the maintenance team**. Almost every important part of issue triage and project improvement can be actively worked on regardless of your collaborator status on the repository. |
| 17 |
|
| 18 |
#### Composition |
| 19 |
|
| 20 |
The composition of the maintenance team is handled by [@tomchristie](https://github.com/encode/). Team members will be added as collaborators to the repository. |
| 21 |
|
| 22 |
#### Responsibilities |
| 23 |
|
| 24 |
Team members have the following responsibilities. |
| 25 |
|
| 26 |
* Close invalid or resolved tickets. |
| 27 |
* Add triage labels and milestones to tickets. |
| 28 |
* Merge finalized pull requests. |
| 29 |
* Build and deploy the documentation, using `mkdocs gh-deploy`. |
| 30 |
* Build and update the included translation packs. |
| 31 |
|
| 32 |
Further notes for maintainers: |
| 33 |
|
| 34 |
* Code changes should come in the form of a pull request - do not push directly to main. |
| 35 |
* Maintainers should typically not merge their own pull requests. |
| 36 |
* Each issue/pull request should have exactly one label once triaged. |
| 37 |
* Search for un-triaged issues with [is:open no:label][un-triaged]. |
| 38 |
|
| 39 |
--- |
| 40 |
|
| 41 |
## Release process |
| 42 |
|
| 43 |
* The release manager is selected. |
| 44 |
* The release manager will then have the maintainer role added to PyPI package. |
| 45 |
* The previous manager will then have the maintainer role removed from the PyPI package. |
| 46 |
|
| 47 |
Our PyPI releases is automated in GitHub actions on tag pushes. The following template can be used as a release checklist: |
| 48 |
|
| 49 |
- Create pull request for [release notes](https://github.com/encode/django-rest-framework/blob/mains/docs/topics/release-notes.md): |
| 50 |
- Start drafting a [new release in GitHub](https://github.com/encode/django-rest-framework/releases/new) |
| 51 |
- Select the tag that you want to give to the release and the previous tag |
| 52 |
- Click the "Generate release notes" button |
| 53 |
- Don't confirm anything! Copy the generated content to a file `input.md` |
| 54 |
- Run `uv tool run linkify-gh-markdown input.md` to make the links absolute |
| 55 |
- Put the generated content in the `release-notes.md` file |
| 56 |
- Update supported versions: |
| 57 |
- `pyproject.toml` ensure the `requires-python` key is up to date |
| 58 |
- `pyproject.toml` Python & Django version trove classifiers |
| 59 |
- `README` Python & Django versions |
| 60 |
- `docs` Python & Django versions |
| 61 |
- Ensure the pull request increments the version to `*.*.*` in [`rest_framework/__init__.py`](https://github.com/encode/django-rest-framework/blob/main/rest_framework/__init__.py). |
| 62 |
- Ensure the deprecation warnings in [`rest_framework/deprecation.py`](https://github.com/encode/django-rest-framework/blob/main/rest_framework/deprecation.py) have been rotated for the release, following the [deprecation policy](release-notes.md#deprecation-policy). |
| 63 |
- Ensure documentation validates |
| 64 |
- Build and serve docs `mkdocs serve` |
| 65 |
- Validate links `pylinkvalidate.py -P http://127.0.0.1:8000` |
| 66 |
- Confirm with other maintainers that the release is finalized and ready to go. |
| 67 |
- Ensure that release date is included in pull request. |
| 68 |
- Merge the release pull request. |
| 69 |
- Tag the release, either with `git tag -a *.*.* -m 'version *.*.*'; git push --tags` or in GitHub. |
| 70 |
- Wait for the release workflow to run. It will build the distribution, upload it to Test PyPI, PyPI and create the GitHub release. |
| 71 |
- Make a release announcement on the [discussion group](https://groups.google.com/forum/?fromgroups#!forum/django-rest-framework). |
| 72 |
- Make a release announcement on social media (Mastodon, etc...) and on the [Django forum](https://forum.djangoproject.com/). |
| 73 |
- Close the milestone on GitHub. |
| 74 |
|
| 75 |
--- |
| 76 |
|
| 77 |
## Project ownership |
| 78 |
|
| 79 |
The PyPI package is owned by `@tomchristie`. As a backup `@j4mie` also has ownership of the package. |
| 80 |
|
| 81 |
If `@tomchristie` ceases to participate in the project then `@j4mie` has responsibility for handing over ownership duties. |
| 82 |
|
| 83 |
#### Outstanding management & ownership issues |
| 84 |
|
| 85 |
The following issues still need to be addressed: |
| 86 |
|
| 87 |
* Ensure `@j4mie` has back-up access to the `django-rest-framework.org` domain setup and admin. |
| 88 |
* Document ownership of the [mailing list][mailing-list] and IRC channel. |
| 89 |
* Document ownership and management of the security mailing list. |
| 90 |
|
| 91 |
[bus-factor]: https://en.wikipedia.org/wiki/Bus_factor |
| 92 |
[un-triaged]: https://github.com/encode/django-rest-framework/issues?q=is%3Aopen+no%3Alabel |
| 93 |
[mailing-list]: https://groups.google.com/forum/#!forum/django-rest-framework |