-
Notifications
You must be signed in to change notification settings - Fork 44
/
HOWTO_RELEASE.txt
188 lines (109 loc) · 4.29 KB
/
HOWTO_RELEASE.txt
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
Steps before a release is done
------------------------------
Check all is crispy
rm -rf build dist
./setup.py clean build
./setup.py clean sdist
Edit the ``fades/_version.py`` file properly, then tag and commit/push
git tag release-VERSION
git commit -am "Release VERSION"
git push --tag
How to release it to PyPI
-------------------------
Dead simple:
rm -rf build dist
./setup.py clean sdist
fades -d twine -x twine upload dist/fades-*
How to create a .deb
--------------------
Create the tarball:
rm -rf build dist
./setup.py clean sdist
Copy this tarball to a clean dir, renaming as "orig"
mkdir /tmp/fades_pack
cp dist/fades-X.Y.tar.gz /tmp/fades_pack/fades_X.Y.orig.tar.gz
cd /tmp/fades_pack
Most of next instructions come from http://wiki.debian.org/Python/GitPackaging
tar -xf fades_X.Y.orig.tar.gz
cd fades-X.Y
git init
git add .
git commit -m "import fades_X.Y.orig.tar.gz"
git checkout -b upstream
pristine-tar commit ../fades_X.Y.orig.tar.gz upstream
git-dpm init ../fades_X.Y.orig.tar.gz
Copy the project's debian dir and change changelog (be sure that this
"debian" dir is properly updated in the project... notably, be sure
copyright year is current one and also that no new dependencies were
introduced since last release).
cp -pr $DEVEL/fades/pkg/debian .
dch # doing the following:
- version should be (X.Y-1) unstable
- just leave one "* Initial release."
Continue with preparations:
git add debian/*
git commit -m "Added debian dir."
git-dpm prepare
git-dpm status
Build the .deb
debuild -us -uc -I -i
To test the .deb you just created:
sudo dpkg -i *.deb
If you want to uninstall it do:
sudo dpkg -r fades
How to release it to Debian
---------------------------
Need just to report a bug very similar to this one: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=814913
For that, just run the following and answer the questions:
reportbug -B debian
(I had to do that twice, not sure why: first time it asked some questions and then errored out, second time it picked up from there and finish the job)
How to release it to Arch
-------------------------
Changes should be applied in the AUR repo ``ssh://[email protected]/fades.git``
Edit ``pkg/archlinux/PKGBUILD`` and set *pkgver* and *sha256sums*, then run
``makepkg --printsrcinfo > .SRCINFO`` to update the .SRCINFO file.
Finally commit and push the changes. The package will be automatically updated in AUR.
``https://aur.archlinux.org/packages/fades``
How to release it to the Snap store
-----------------------------------
Edit the snapcraft yaml and change the "version" number
vi pkg/snap/snapcraft.yaml
Build the snap (no need to specify the YAML, there is a hidden symlink to it):
snapcraft
Push it to the store and release:
snapcraft push fades_6.0_amd64.snap
snapcraft release fades <revno just pushed> edge beta
Test it:
sudo snap install fades --channel=beta --classic
/snap/fades/current/bin/fades -V
If all is fine, release it to candidate:
snapcraft release fades <revno just pushed> candidate
Announce internally: telegram, fades mail list.
Wait 3 days or so, and release to stable:
snapcraft release fades <revno just pushed> stable
Announce in the snapcraft forum, something similar to:
https://forum.snapcraft.io/t/call-for-testing-fades-7/5070
Read the Docs
-------------
- go and login there, go to "fades" project
- in "Versions" tab, activate the new version (corresponding to the release in github)
- in "Administrator" tab, go to option "Advanced configuration" at the left, choose latest release as "default version"
- verify all latest is seen in
http://fades.rtfd.org/
How to sign the files
---------------------
If you are putting files to download (notably, installators: .deb,
tarballs, etc) it's a good idea to sign them and offer checksums, in
case of somebody wanting to validate the files.
To sign it:
gpg --armor --sign --detach-sig FILENAME
To create the checksum:
sha1sum FILENAME > FILENAME.sha1
Final steps
-----------
- Remember to update the .deb and .tar.gz in www.taniquetil.com.ar/fades
- Create a change log and send press releases:
- a tweet,
- PyAr mail list, IRC and Telegram group
- fades' Telegram group and mail list
- python-announces