File: releasing.md

package info (click to toggle)
python-canonicaljson 1.1.4-1~bpo9+1
  • links: PTS
  • area: main
  • in suites: stretch-backports
  • size: 1,736 kB
  • sloc: python: 20,709; sh: 19; makefile: 3
file content (44 lines) | stat: -rw-r--r-- 1,154 bytes parent folder | download | duplicates (3)
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
Releasing python-canonicaljson
==============================

* bump version in `canonicaljson.py`
* update changelog
* update debian changelog:
  * Add new entry: `dch -v <ver>`
  * Mark as released: `dch --distribution stable -r`
* Build and upload to pypi:
  * `rm -r dist`
  * `python setup.py sdist bdist_wheel`
  * `twine upload -s dist/*`
* `git tag -s v<ver>`
* `git push`
* `git push --tags`
* Follow instructions below to release debian packaging.

Prerequisites for debian packaging
----------------------------------

```
sudo apt-get install sbuild
sudo apt-get install ubuntu-dev-tools # for mk-sbuild
sudo sbuild-adduser $LOGNAME

newgrp sbuild
mk-sbuild stretch
```

If your kernel doesn't support `aufs`, you'll need to set `union-type=overlay`
in `/etc/schroot/chroot.d/sbuild-stretch-amd64`.

Debian release
--------------

```
# We need to build from a pristine copy of the repo (otherwise you end up with
# your whole working copy in the source tarball), so:
git clone git@github.com:matrix-org/python-canonicaljson.git -b v<ver> python-canonicaljson-clean

cd python-canonicaljson-clean
sbuild -s --arch-all -d stretch
debsign
```