##// END OF EJS Templates
Merging -r 1191 from lp:ipython.
Merging -r 1191 from lp:ipython.

File last commit:

r2115:607da213
r2145:628c45e1 merge
Show More
release
35 lines | 765 B | text/plain | TextLexer
#!/bin/bash
# IPython release script
PYVER=`python -V 2>&1 | awk '{print $2}' | awk -F '.' '{print $1$2}' `
version=`ipython -Version`
ipdir=~/ipython/ipython
ipbackupdir=~/ipython/backup
echo
echo "Releasing IPython version $version"
echo "=================================="
# Perform local backup
cd $ipdir/tools
./make_tarball.py
mv ipython-*.tgz $ipbackupdir
# Build release files
./testrel $ipdir
# Register with the Python Package Index (PyPI)
echo "Registering with PyPI..."
cd $ipdir
./setup.py register
# Upload all files
cd $ipdir/dist
echo "Uploading distribution files..."
scp * ipython@ipython.scipy.org:www/dist/
echo "Uploading backup files..."
cd $ipbackupdir
scp `ls -1tr *tgz | tail -1` ipython@ipython.scipy.org:www/backup/
echo "Done!"