You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Github workflow (`.github/workflows/python-publish.yml`) will push tagged commits to PyPI. Here are the steps:
3
+
Github [PyPi release](.github/workflows/pypi-release.yml) workflow will push tagged commits to PyPI. Here are the steps:
4
4
5
-
1. Run `manage.py`
5
+
1. Run `scripts/prepare_release.sh`
6
6
7
7
```bash
8
-
./manage.sh publish
9
-
Next version number? (previous: 'XXX')
8
+
./scripts/prepare_release.sh
10
9
```
11
10
12
-
2. Give the new version number based on previous version (Use semantic versioning)
11
+
2. Complete the changes in `doc/changes.rst`:
12
+
- Replace `Version ?.?.?` with the release version.
13
+
- Organize commits into sub-sections like "New features" or "Bug Fixes", see earlier releases for inspiration.
13
14
14
-
3.Create a new Github [release](https://github.com/PyGithub/PyGithub/releases) from the tag that has just been committed, with the same release note from `doc/changes.rst`. This step is the hook that will trigger the workflow. (also needed for some web spiders for changelog parsing)
15
+
3.Commit these changes and create a pull request.
15
16
16
-
4. Now the push will be on hold until you press Enter. Manually inspect the changelog (`doc/changes.rst`) to make changes if necessary. Once you are sure, go back and press Enter.
17
+
4. After merging those changes into `main` branch, create a new Github [release](https://github.com/PyGithub/PyGithub/releases):
18
+
- Choose the merge commit in `main`.
19
+
- Choose a new tag with release version prefixed with `v`, e.g. `v2.2.0`.
20
+
- Add the same release note from `doc/changes.rst`.
17
21
18
-
5. Once the `python-publish` workflow completes, a new version will appear on [PyPI](https://pypi.org/project/PyGithub/#history) shortly.
22
+
Creating the release also creates the tag chosen, which will trigger the PyPi release workflow.
23
+
24
+
5. Once the PyPi release workflow completes, a new version will appear on [PyPI](https://pypi.org/project/PyGithub/#history) shortly.
0 commit comments