| 1 |
Steps before a release is done |
| 2 |
------------------------------ |
| 3 |
|
| 4 |
Check all is crispy |
| 5 |
|
| 6 |
rm -rf build dist |
| 7 |
./setup.py clean build |
| 8 |
./setup.py clean sdist |
| 9 |
|
| 10 |
|
| 11 |
Edit the ``fades/_version.py`` file properly, then tag and commit/push |
| 12 |
|
| 13 |
git tag release-VERSION |
| 14 |
git commit -am "Release VERSION" |
| 15 |
git push --tag |
| 16 |
|
| 17 |
|
| 18 |
How to release it to PyPI |
| 19 |
------------------------- |
| 20 |
|
| 21 |
Dead simple: |
| 22 |
|
| 23 |
rm -rf build dist |
| 24 |
./setup.py clean sdist |
| 25 |
fades -d twine -x twine upload dist/fades-* |
| 26 |
|
| 27 |
|
| 28 |
How to create a .deb |
| 29 |
-------------------- |
| 30 |
|
| 31 |
Create the tarball: |
| 32 |
|
| 33 |
rm -rf build dist |
| 34 |
./setup.py clean sdist |
| 35 |
|
| 36 |
|
| 37 |
Copy this tarball to a clean dir, renaming as "orig" |
| 38 |
|
| 39 |
mkdir /tmp/fades_pack |
| 40 |
cp dist/fades-X.Y.tar.gz /tmp/fades_pack/fades_X.Y.orig.tar.gz |
| 41 |
cd /tmp/fades_pack |
| 42 |
|
| 43 |
|
| 44 |
Most of next instructions come from http://wiki.debian.org/Python/GitPackaging |
| 45 |
|
| 46 |
tar -xf fades_X.Y.orig.tar.gz |
| 47 |
cd fades-X.Y |
| 48 |
git init |
| 49 |
git add . |
| 50 |
git commit -m "import fades_X.Y.orig.tar.gz" |
| 51 |
git checkout -b upstream |
| 52 |
pristine-tar commit ../fades_X.Y.orig.tar.gz upstream |
| 53 |
git-dpm init ../fades_X.Y.orig.tar.gz |
| 54 |
|
| 55 |
|
| 56 |
Copy the project's debian dir and change changelog (be sure that this |
| 57 |
"debian" dir is properly updated in the project... notably, be sure |
| 58 |
copyright year is current one and also that no new dependencies were |
| 59 |
introduced since last release). |
| 60 |
|
| 61 |
cp -pr $DEVEL/fades/pkg/debian . |
| 62 |
dch # doing the following: |
| 63 |
- version should be (X.Y-1) unstable |
| 64 |
- just leave one "* Initial release." |
| 65 |
|
| 66 |
|
| 67 |
Continue with preparations: |
| 68 |
|
| 69 |
git add debian/* |
| 70 |
git commit -m "Added debian dir." |
| 71 |
git-dpm prepare |
| 72 |
git-dpm status |
| 73 |
|
| 74 |
|
| 75 |
Build the .deb |
| 76 |
|
| 77 |
debuild -us -uc -I -i |
| 78 |
|
| 79 |
|
| 80 |
To test the .deb you just created: |
| 81 |
|
| 82 |
sudo dpkg -i *.deb |
| 83 |
|
| 84 |
|
| 85 |
If you want to uninstall it do: |
| 86 |
|
| 87 |
sudo dpkg -r fades |
| 88 |
|
| 89 |
|
| 90 |
How to release it to Debian |
| 91 |
--------------------------- |
| 92 |
|
| 93 |
Need just to report a bug very similar to this one: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=814913 |
| 94 |
|
| 95 |
For that, just run the following and answer the questions: |
| 96 |
|
| 97 |
reportbug -B debian |
| 98 |
|
| 99 |
(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) |
| 100 |
|
| 101 |
|
| 102 |
How to release it to Arch |
| 103 |
------------------------- |
| 104 |
|
| 105 |
|
| 106 |
Changes should be applied in the AUR repo ``ssh://[email protected]/fades.git`` |
| 107 |
|
| 108 |
Edit ``pkg/archlinux/PKGBUILD`` and set *pkgver* and *sha256sums*, then run |
| 109 |
``makepkg --printsrcinfo > .SRCINFO`` to update the .SRCINFO file. |
| 110 |
|
| 111 |
Finally commit and push the changes. The package will be automatically updated in AUR. |
| 112 |
|
| 113 |
``https://aur.archlinux.org/packages/fades`` |
| 114 |
|
| 115 |
|
| 116 |
How to release it to the Snap store |
| 117 |
----------------------------------- |
| 118 |
|
| 119 |
Edit the snapcraft yaml and change the "version" number |
| 120 |
|
| 121 |
vi pkg/snap/snapcraft.yaml |
| 122 |
|
| 123 |
Build the snap (no need to specify the YAML, there is a hidden symlink to it): |
| 124 |
|
| 125 |
snapcraft |
| 126 |
|
| 127 |
Push it to the store and release: |
| 128 |
|
| 129 |
snapcraft push fades_6.0_amd64.snap |
| 130 |
snapcraft release fades <revno just pushed> edge beta |
| 131 |
|
| 132 |
Test it: |
| 133 |
|
| 134 |
sudo snap install fades --channel=beta --classic |
| 135 |
/snap/fades/current/bin/fades -V |
| 136 |
|
| 137 |
If all is fine, release it to candidate: |
| 138 |
|
| 139 |
snapcraft release fades <revno just pushed> candidate |
| 140 |
|
| 141 |
Announce internally: telegram, fades mail list. |
| 142 |
|
| 143 |
Wait 3 days or so, and release to stable: |
| 144 |
|
| 145 |
snapcraft release fades <revno just pushed> stable |
| 146 |
|
| 147 |
Announce in the snapcraft forum, something similar to: |
| 148 |
|
| 149 |
https://forum.snapcraft.io/t/call-for-testing-fades-7/5070 |
| 150 |
|
| 151 |
|
| 152 |
Read the Docs |
| 153 |
------------- |
| 154 |
|
| 155 |
- go and login there, go to "fades" project |
| 156 |
- in "Versions" tab, activate the new version (corresponding to the release in github) |
| 157 |
- in "Administrator" tab, go to option "Advanced configuration" at the left, choose latest release as "default version" |
| 158 |
- verify all latest is seen in |
| 159 |
|
| 160 |
http://fades.rtfd.org/ |
| 161 |
|
| 162 |
|
| 163 |
How to sign the files |
| 164 |
--------------------- |
| 165 |
|
| 166 |
If you are putting files to download (notably, installators: .deb, |
| 167 |
tarballs, etc) it's a good idea to sign them and offer checksums, in |
| 168 |
case of somebody wanting to validate the files. |
| 169 |
|
| 170 |
To sign it: |
| 171 |
|
| 172 |
gpg --armor --sign --detach-sig FILENAME |
| 173 |
|
| 174 |
To create the checksum: |
| 175 |
|
| 176 |
sha1sum FILENAME > FILENAME.sha1 |
| 177 |
|
| 178 |
|
| 179 |
Final steps |
| 180 |
----------- |
| 181 |
|
| 182 |
- Remember to update the .deb and .tar.gz in www.taniquetil.com.ar/fades |
| 183 |
|
| 184 |
- Create a change log and send press releases: |
| 185 |
- a tweet, |
| 186 |
- PyAr mail list, IRC and Telegram group |
| 187 |
- fades' Telegram group and mail list |
| 188 |
- python-announces |