Show More
@@ -1,96 +1,99 b'' | |||
|
1 | 1 | #!/bin/sh |
|
2 | 2 | # IPython release script |
|
3 | 3 | |
|
4 | 4 | PYVER=`python -V 2>&1 | awk '{print $2}' | awk -F '.' '{print $1$2}' ` |
|
5 | 5 | version=`ipython -Version` |
|
6 | 6 | ipdir=~/ipython/ipython |
|
7 | 7 | |
|
8 | 8 | echo |
|
9 | 9 | echo "Releasing IPython version $version" |
|
10 | 10 | echo "==================================" |
|
11 | 11 | |
|
12 | 12 | echo "Marking ChangeLog with release information and making NEWS file..." |
|
13 | 13 | |
|
14 | 14 | # Stamp changelog and save a copy of the status at each version, in case later |
|
15 | 15 | # we want the NEWS file to start from a point before the very last release (if |
|
16 | 16 | # very small interim releases have no significant changes). |
|
17 | 17 | |
|
18 | 18 | cd $ipdir/doc |
|
19 | 19 | cp ChangeLog ChangeLog.old |
|
20 | 20 | cp ChangeLog ChangeLog.$version |
|
21 | 21 | daystamp=`date +%Y-%m-%d` |
|
22 | 22 | echo $daystamp " ***" Released version $version > ChangeLog |
|
23 | 23 | echo >> ChangeLog |
|
24 | 24 | cat ChangeLog.old >> ChangeLog |
|
25 | 25 | rm ChangeLog.old |
|
26 | 26 | |
|
27 | 27 | # Build NEWS file |
|
28 | 28 | echo "Changes between the last two releases (major or minor)" > NEWS |
|
29 | 29 | echo "Note that this is an auto-generated diff of the ChangeLogs" >> NEWS |
|
30 | 30 | echo >> NEWS |
|
31 | 31 | diff ChangeLog.previous ChangeLog | grep -v '^0a' | sed 's/^> //g' >> NEWS |
|
32 | 32 | cp ChangeLog ChangeLog.previous |
|
33 | 33 | |
|
34 | 34 | # Clean up build/dist directories |
|
35 | 35 | rm -rf $ipdir/build/* |
|
36 | 36 | rm -rf $ipdir/dist/* |
|
37 | 37 | |
|
38 | 38 | # Perform local backup |
|
39 | 39 | cd $ipdir/tools |
|
40 | 40 | ./bkp.sh |
|
41 | 41 | |
|
42 | 42 | # Build source and binary distros |
|
43 | 43 | cd $ipdir |
|
44 | 44 | ./setup.py sdist --formats=gztar |
|
45 | 45 | |
|
46 | 46 | # Build version-specific RPMs, where we must use the --python option to ensure |
|
47 | 47 | # that the resulting RPM is really built with the requested python version (so |
|
48 | 48 | # things go to lib/python2.X/...) |
|
49 | 49 | python2.4 ./setup.py bdist_rpm --binary-only --release=py24 --python=/usr/bin/python2.4 |
|
50 | 50 | python2.5 ./setup.py bdist_rpm --binary-only --release=py25 --python=/usr/bin/python2.5 |
|
51 | 51 | |
|
52 | 52 | # Build eggs |
|
53 | 53 | python2.4 ./eggsetup.py bdist_egg |
|
54 | 54 | python2.5 ./eggsetup.py bdist_egg |
|
55 | 55 | |
|
56 | 56 | # Call the windows build separately, so that the extra Windows scripts don't |
|
57 | 57 | # get pulled into Unix builds (setup.py has code which checks for |
|
58 | 58 | # bdist_wininst) |
|
59 | 59 | ./setup.py bdist_wininst --install-script=ipython_win_post_install.py |
|
60 | 60 | |
|
61 | # Change name so retarded Vista runs the installer correctly | |
|
62 | rename 's/win32/win32-setup/' $ipdir/dist/*.exe | |
|
63 | ||
|
61 | 64 | # Register with the Python Package Index (PyPI) |
|
62 | 65 | echo "Registering with PyPI..." |
|
63 | 66 | cd $ipdir |
|
64 | 67 | ./setup.py register |
|
65 | 68 | |
|
66 | 69 | # Upload all files |
|
67 | 70 | cd $ipdir/dist |
|
68 | 71 | echo "Uploading distribution files..." |
|
69 | 72 | scp * ipython@ipython.scipy.org:www/dist/ |
|
70 | 73 | |
|
71 | 74 | echo "Uploading backup files..." |
|
72 | 75 | cd ~/ipython/backup |
|
73 | 76 | scp `ls -1tr | tail -1` ipython@ipython.scipy.org:www/backup/ |
|
74 | 77 | |
|
75 | 78 | echo "Updating webpage..." |
|
76 | 79 | cd $ipdir/doc |
|
77 | 80 | www=~/ipython/homepage |
|
78 | 81 | cp ChangeLog NEWS $www |
|
79 | 82 | rm -rf $www/doc/* |
|
80 | 83 | cp -r manual.pdf manual/ $www/doc |
|
81 | 84 | cd $www |
|
82 | 85 | ./update |
|
83 | 86 | |
|
84 | 87 | # Alert package maintainers |
|
85 | 88 | echo "Alerting package maintainers..." |
|
86 | 89 | maintainers='fperez@colorado.edu ariciputi@users.sourceforge.net jack@xiph.org tretkowski@inittab.de dryice@hotpop.com willmaier@ml1.net' |
|
87 | 90 | #maintainers='fperez@colorado.edu' |
|
88 | 91 | |
|
89 | 92 | for email in $maintainers |
|
90 | 93 | do |
|
91 | 94 | echo "Emailing $email..." |
|
92 | 95 | mail -s "[Package maintainer notice] A new IPython is out. Version: $version" \ |
|
93 | 96 | $email < NEWS |
|
94 | 97 | done |
|
95 | 98 | |
|
96 | 99 | echo "Done!" |
@@ -1,25 +1,28 b'' | |||
|
1 | 1 | #!/bin/sh |
|
2 | 2 | |
|
3 | 3 | # release test |
|
4 | 4 | |
|
5 | cd ~/ipython/ipython | |
|
6 | ||
|
5 | 7 | # clean up build/dist directories |
|
6 |
rm -rf |
|
|
7 | rm -rf ~/ipython/ipython/dist/* | |
|
8 | rm -rf build/* | |
|
9 | rm -rf dist/* | |
|
8 | 10 | |
|
9 | 11 | # build source distros |
|
10 | cd ~/ipython/ipython | |
|
11 | ||
|
12 | 12 | ./setup.py sdist --formats=gztar |
|
13 | 13 | |
|
14 | 14 | # Build rpms |
|
15 | 15 | python2.4 ./setup.py bdist_rpm --binary-only --release=py24 --python=/usr/bin/python2.4 |
|
16 | 16 | python2.5 ./setup.py bdist_rpm --binary-only --release=py25 --python=/usr/bin/python2.5 |
|
17 | 17 | |
|
18 | 18 | # Build eggs |
|
19 | 19 | python2.4 ./eggsetup.py bdist_egg |
|
20 | 20 | python2.5 ./eggsetup.py bdist_egg |
|
21 | 21 | |
|
22 | 22 | # Call the windows build separately, so that the extra Windows scripts don't |
|
23 | 23 | # get pulled into Unix builds (setup.py has code which checks for |
|
24 | 24 | # bdist_wininst) |
|
25 | 25 | ./setup.py bdist_wininst --install-script=ipython_win_post_install.py |
|
26 | ||
|
27 | # Change name so retarded Vista runs the installer correctly | |
|
28 | rename 's/win32/win32-setup/' dist/*.exe |
General Comments 0
You need to be logged in to leave comments.
Login now