@@ -18,18 +18,21 @@ Example `version number`
18
18
export PREVIOUS=<previous version number>
19
19
export ORG="scientific-python"
20
20
export REPO="lazy_loader"
21
+ export LOG="CHANGELOG.md"
21
22
22
23
- Autogenerate release notes
23
24
24
- changelist ${ORG}/${REPO} v${PREVIOUS} main --version ${VERSION}
25
+ changelist ${ORG}/${REPO} v${PREVIOUS} main --version ${VERSION} --config pyproject.toml --out ${VERSION}.md
25
26
26
27
- Put the output of the above command at the top of ` CHANGELOG.md `
27
28
28
- - Update ` version ` in ` pyproject.toml ` .
29
+ cat ${VERSION}.md | cat - ${LOG} > temp && mv temp ${LOG}
30
+
31
+ - Update ` version ` in ` lazy_loader/__init__.py ` .
29
32
30
33
- Commit changes:
31
34
32
- git add pyproject.toml CHANGELOG.md
35
+ git add lazy_loader/__init__.py ${LOG}
33
36
git commit -m "Designate ${VERSION} release"
34
37
35
38
- Tag the release in git:
@@ -46,10 +49,22 @@ Example `version number`
46
49
where ` origin ` is the name of the ` github.com:scientific-python/lazy_loader `
47
50
repository
48
51
49
- - Update ` version ` in ` pyproject.toml ` .
52
+ - Create release from tag
53
+
54
+ - go to https://github.com/scientific-python/lazy_loader/releases/new?tag=v${VERSION}
55
+ - add v${VERSION} for the `Release title`
56
+ - paste contents (or upload) of ${VERSION}.md in the `Describe this release section`
57
+ - if pre-release check the box labelled `Set as a pre-release`
58
+
59
+ - Update https://github.com/scientific-python/lazy_loader/milestones :
60
+
61
+ - close old milestone
62
+ - ensure new milestone exists (perhaps setting due date)
63
+
64
+ - Update ` version ` in ` lazy_loader/__init__.py ` .
50
65
51
66
- Commit changes:
52
67
53
- git add pyproject.toml
68
+ git add lazy_loader/__init__.py
54
69
git commit -m 'Bump version'
55
70
git push origin main
0 commit comments