Skip to content

Commit b08a4b9

Browse files
Document release process (#22)
1 parent b309631 commit b08a4b9

File tree

3 files changed

+58
-38
lines changed

3 files changed

+58
-38
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

CONTRIBUTOR.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

RELEASE.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Release process for `lazy_loader`
2+
3+
## Introduction
4+
5+
Example `version`
6+
7+
- 1.8.dev0 \# development version of 1.8 (release candidate 1)
8+
- 1.8rc1 \# 1.8 release candidate 1
9+
- 1.8rc2.dev0 \# development version of 1.8 (release candidate 2)
10+
- 1.8 \# 1.8 release
11+
- 1.9.dev0 \# development version of 1.9 (release candidate 1)
12+
13+
## Process
14+
15+
- Update and review `CHANGELOG.md`:
16+
17+
gem install github_changelog_generator
18+
github_changelog_generator -u scientific-python -p lazy_loader --since-tag=<last tag>
19+
20+
- Update `version` in `pyproject.toml`.
21+
22+
- Commit changes:
23+
24+
git add pyproject.toml CHANGELOG.md
25+
git commit -m 'Designate <version> release'
26+
27+
- Add the version number (e.g., [v1.2.0]{.title-ref}) as a tag in git:
28+
29+
git tag -s [-u <key-id>] v<version> -m 'signed <version> tag'
30+
31+
If you do not have a gpg key, use -u instead; it is important for
32+
Debian packaging that the tags are annotated
33+
34+
- Push the new meta-data to github:
35+
36+
git push --tags origin main
37+
38+
where `origin` is the name of the `github.com:scientific-python/lazy_loader`
39+
repository
40+
41+
- Review the github release page:
42+
43+
https://github.com/scientific-python/lazy_loader/releases
44+
45+
- Publish on PyPi:
46+
47+
git clean -fxd
48+
pip install flit
49+
flit build
50+
flit publish
51+
52+
- Update `version` in `pyproject.toml`.
53+
54+
- Commit changes:
55+
56+
git add pyproject.toml
57+
git commit -m 'Bump version'
58+
git push origin main

0 commit comments

Comments
 (0)