##// END OF EJS Templates
Release 0.7.2.
fperez -
Show More

The requested changes are too big and content was truncated. Show full diff

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