Skip to content

Commit 61b2f91

Browse files
Use changelist (#22)
1 parent b08db6b commit 61b2f91

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

RELEASE.md

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Introduction
44

5-
Example `version`
5+
Example `version number`
66

77
- 1.8.dev0 # development version of 1.8 (release candidate 1)
88
- 1.8rc1 # 1.8 release candidate 1
@@ -12,21 +12,29 @@ Example `version`
1212

1313
## Process
1414

15-
- Update and review `CHANGELOG.md`:
15+
- Set release variables:
1616

17-
gem install github_changelog_generator
18-
github_changelog_generator -u scientific-python -p pydata --since-tag=<last tag>
17+
export VERSION=<version number>
18+
export PREVIOUS=<previous version number>
19+
export ORG="scientific-python"
20+
export REPO="devstats"
21+
22+
- Autogenerate release notes
23+
24+
changelist ${ORG}/${REPO} v${PREVIOUS} main --version ${VERSION}
25+
26+
- Put the output of the above command at the top of `CHANGELOG.md`
1927

2028
- Update `version` in `pyproject.toml`.
2129

2230
- Commit changes:
2331

2432
git add pyproject.toml CHANGELOG.md
25-
git commit -m 'Designate <version> release'
33+
git commit -m "Designate ${VERSION} release"
2634

27-
- Add the version number (e.g., `1.2.0`) as a tag in git:
35+
- Tag the release in git:
2836

29-
git tag -s [-u <key-id>] v<version> -m 'signed <version> tag'
37+
git tag -s v${VERSION} -m "signed ${VERSION} tag"
3038

3139
If you do not have a gpg key, use -u instead; it is important for
3240
Debian packaging that the tags are annotated
@@ -35,12 +43,12 @@ Example `version`
3543

3644
git push --tags origin main
3745

38-
where `origin` is the name of the `github.com:scientific-python/pydata
46+
where `origin` is the name of the `github.com:scientific-python/devstats`
3947
repository
4048

4149
- Review the github release page:
4250

43-
https://github.com/scientific-python/pydata/releases
51+
https://github.com/scientific-python/devstats/tags
4452

4553
- Publish on PyPi:
4654

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ dependencies = [
2828
devstats = "devstats.__main__:cli"
2929

3030
[project.optional-dependencies]
31-
lint = ["pre-commit >= 3.3.2"]
31+
lint = ["pre-commit == 3.3.2"]
32+
dev = ["changelist == 0.1"]
3233

3334
[project.urls]
3435
homepage = "https://github.com/scientific-python/devstats"

0 commit comments

Comments
 (0)