File: release-checklist.md

package info (click to toggle)
notcurses 3.0.16%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 18,776 kB
  • sloc: ansic: 50,385; cpp: 17,806; python: 1,123; sh: 230; makefile: 44
file content (90 lines) | stat: -rw-r--r-- 2,957 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Release procedure

## Precheck

* Review the testing checklist (doc/testing-checklist.md)
* clang-tidy check with something like:
  * `cmake "-DCMAKE_CXX_CLANG_TIDY=/usr/bin/clang-tidy\;-checks=-*,clang-analyzer-*,modernize-*,performance-*" ..`
  or
  * `scan-build cmake .. && scan-build make`
* Verify that rust + python compile

## Release

* In toplevel, run `tools/release.sh $OLDVERSION $VERSION "quip"`:
  * Cleans repo with `git clean -f -d -x`
  * Opens an editor to finalize NEWS.md
  * Bumps version numbers everywhere they need bumping
  * Commits changes, tags result with v$VERSION, pushes tag
  * Downloads new tarball and signs it
  * Uploads signature to github
  * Uploads new Rust crates with `cargo publish`
  * Uploads new Python pip with
    * `python3 setup.py sdist`
    * `twine upload dist/*`
  * Generates and uploads new HTML documentation via `make html`
    * `scp *.html ../doc/man/index.html qemfd.net:/var/www/notcurses/`
    * `scp -r html qemfd.net:/var/www/notcurses/`
  * Publishes new release at https://github.com/dankamongmen/notcurses/releases
    * Title is "v$VERSION—some quip"

## Packaging

### Debian

* In gbp repository, run `tools/debrelease.sh $VERSION path-to-notcurses-checkout`:
  * Updates Debian changelog with `dch -v $VERSION+dfsg-1`
  * Finalizes Debian changelog with `dch -r`
  * Repacks DFSG-safe tarball with `uscan`:
    * `uscan --repack --compression xz --force`
    * `gpg --sign --armor --detach-sign ../notcurses_$VERSION+dfsg.orig.tar.xz`
  * Uploads repack + signature to github
  * imports new version: `gbp import-orig ../notcurses_$VERSION+dfsg.orig.tar.xz`
  * `git push --tags`
  * builds source package: `dpkg-buildpackage --build=source`
  * builds binaries: `cd .. && export TERM=xterm-256color && sudo pbuilder build *dsc`
    * performs this in xterm with TERM=xterm-256color
    * beware: freak TERMs won't be present in pbuilder

### Fedora

* In pagure/notcurses rawhide:
  * Update notcurses.spec, bump version, add changelog entry
  * clear out any old ersatz detritus
  * spectool -g notcurses.spec
  * fedpkg upload *.xz *.asc
  * fedpkg new-sources *.xz *.asc
  * fedpkg commit
  * git push
  * fedpkg build
  * for each active branch:
    * fedpkg switch-branch f32
    * git merge rawhide

### Arch

* Upload new AUR information
  * Update `pkgver` and `sha256sums` entries
  * `makepkg --printsrcinfo > .SRCINFO`
  * Test that package builds with `makepkg`
  * `git commit -a`

### Alpine

* Update version in `APKBUILD`
  * Run `abuild checksum` to get new checksums
  * `abuild -r` to test `APKBUILD`
  * create merge request

### FreeBSD

* Update svn checkout of Ports tree: `cd /usr/ports && svn up`
* Upgrade ports: `portupgrade -uap`
* `cd /usr/ports/devel/notcurses`
* Update `DISTVERSION` in `Makefile
* `sudo make makesum`
* `make stage`
* `make stage-qa`
* `portlint`
* `svn diff > ../`make -VPKGNAME`.diff
* File bug on devel/notcurses, attach diff