forked from PyAr/fades
-
Notifications
You must be signed in to change notification settings - Fork 0
/
HOWTO_RELEASE.txt
109 lines (64 loc) · 2.21 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
Steps before a release is done
------------------------------
Check all is crispy
./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:
./setup.py sdist upload
How to create a .deb
--------------------
Create the tarball:
./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/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 Arch
-------------------------
Edit ``pkg/archlinux/PKGBUILD`` and set *pkgver* and *md5sums*, then run
*makepkg -S* inside the same directory that PKGBUILD. It will generate a
file named 'fades-X.X-X.src.tar.gz'.
Finally submit this file at the AUR page.
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