##// END OF EJS Templates
Small cleanups for release
Fernando Perez -
Show More
@@ -1,99 +1,97 b''
1 # -*- coding: utf-8 -*-
1 # -*- coding: utf-8 -*-
2 """Release data for the IPython project.
2 """Release data for the IPython project."""
3
4 $Id: Release.py 3002 2008-02-01 07:17:00Z fperez $"""
5
3
6 #*****************************************************************************
4 #*****************************************************************************
7 # Copyright (C) 2001-2006 Fernando Perez <fperez@colorado.edu>
5 # Copyright (C) 2001-2006 Fernando Perez <fperez@colorado.edu>
8 #
6 #
9 # Copyright (c) 2001 Janko Hauser <jhauser@zscout.de> and Nathaniel Gray
7 # Copyright (c) 2001 Janko Hauser <jhauser@zscout.de> and Nathaniel Gray
10 # <n8gray@caltech.edu>
8 # <n8gray@caltech.edu>
11 #
9 #
12 # Distributed under the terms of the BSD License. The full license is in
10 # Distributed under the terms of the BSD License. The full license is in
13 # the file COPYING, distributed as part of this software.
11 # the file COPYING, distributed as part of this software.
14 #*****************************************************************************
12 #*****************************************************************************
15
13
16 # Name of the package for release purposes. This is the name which labels
14 # Name of the package for release purposes. This is the name which labels
17 # the tarballs and RPMs made by distutils, so it's best to lowercase it.
15 # the tarballs and RPMs made by distutils, so it's best to lowercase it.
18 name = 'ipython'
16 name = 'ipython'
19
17
20 # For versions with substrings (like 0.6.16.svn), use an extra . to separate
18 # For versions with substrings (like 0.6.16.svn), use an extra . to separate
21 # the new substring. We have to avoid using either dashes or underscores,
19 # the new substring. We have to avoid using either dashes or underscores,
22 # because bdist_rpm does not accept dashes (an RPM) convention, and
20 # because bdist_rpm does not accept dashes (an RPM) convention, and
23 # bdist_deb does not accept underscores (a Debian convention).
21 # bdist_deb does not accept underscores (a Debian convention).
24
22
25 development = False # change this to False to do a release
23 development = False # change this to False to do a release
26 version_base = '0.9'
24 version_base = '0.9'
27 branch = 'ipython'
25 branch = 'ipython'
28 revision = '1124'
26 revision = '1143'
29
27
30 if development:
28 if development:
31 if branch == 'ipython':
29 if branch == 'ipython':
32 version = '%s.bzr.r%s' % (version_base, revision)
30 version = '%s.bzr.r%s' % (version_base, revision)
33 else:
31 else:
34 version = '%s.bzr.r%s.%s' % (version_base, revision, branch)
32 version = '%s.bzr.r%s.%s' % (version_base, revision, branch)
35 else:
33 else:
36 version = version_base
34 version = version_base
37
35
38
36
39 description = "Tools for interactive development in Python."
37 description = "Tools for interactive development in Python."
40
38
41 long_description = \
39 long_description = \
42 """
40 """
43 IPython provides a replacement for the interactive Python interpreter with
41 IPython provides a replacement for the interactive Python interpreter with
44 extra functionality.
42 extra functionality.
45
43
46 Main features:
44 Main features:
47
45
48 * Comprehensive object introspection.
46 * Comprehensive object introspection.
49
47
50 * Input history, persistent across sessions.
48 * Input history, persistent across sessions.
51
49
52 * Caching of output results during a session with automatically generated
50 * Caching of output results during a session with automatically generated
53 references.
51 references.
54
52
55 * Readline based name completion.
53 * Readline based name completion.
56
54
57 * Extensible system of 'magic' commands for controlling the environment and
55 * Extensible system of 'magic' commands for controlling the environment and
58 performing many tasks related either to IPython or the operating system.
56 performing many tasks related either to IPython or the operating system.
59
57
60 * Configuration system with easy switching between different setups (simpler
58 * Configuration system with easy switching between different setups (simpler
61 than changing $PYTHONSTARTUP environment variables every time).
59 than changing $PYTHONSTARTUP environment variables every time).
62
60
63 * Session logging and reloading.
61 * Session logging and reloading.
64
62
65 * Extensible syntax processing for special purpose situations.
63 * Extensible syntax processing for special purpose situations.
66
64
67 * Access to the system shell with user-extensible alias system.
65 * Access to the system shell with user-extensible alias system.
68
66
69 * Easily embeddable in other Python programs.
67 * Easily embeddable in other Python programs.
70
68
71 * Integrated access to the pdb debugger and the Python profiler.
69 * Integrated access to the pdb debugger and the Python profiler.
72
70
73 The latest development version is always available at the IPython subversion
71 The latest development version is always available at the IPython subversion
74 repository_.
72 repository_.
75
73
76 .. _repository: http://ipython.scipy.org/svn/ipython/ipython/trunk#egg=ipython-dev
74 .. _repository: http://ipython.scipy.org/svn/ipython/ipython/trunk#egg=ipython-dev
77 """
75 """
78
76
79 license = 'BSD'
77 license = 'BSD'
80
78
81 authors = {'Fernando' : ('Fernando Perez','fperez@colorado.edu'),
79 authors = {'Fernando' : ('Fernando Perez','fperez@colorado.edu'),
82 'Janko' : ('Janko Hauser','jhauser@zscout.de'),
80 'Janko' : ('Janko Hauser','jhauser@zscout.de'),
83 'Nathan' : ('Nathaniel Gray','n8gray@caltech.edu'),
81 'Nathan' : ('Nathaniel Gray','n8gray@caltech.edu'),
84 'Ville' : ('Ville Vainio','vivainio@gmail.com'),
82 'Ville' : ('Ville Vainio','vivainio@gmail.com'),
85 'Brian' : ('Brian E Granger', 'ellisonbg@gmail.com'),
83 'Brian' : ('Brian E Granger', 'ellisonbg@gmail.com'),
86 'Min' : ('Min Ragan-Kelley', 'benjaminrk@gmail.com')
84 'Min' : ('Min Ragan-Kelley', 'benjaminrk@gmail.com')
87 }
85 }
88
86
89 author = 'The IPython Development Team'
87 author = 'The IPython Development Team'
90
88
91 author_email = 'ipython-dev@scipy.org'
89 author_email = 'ipython-dev@scipy.org'
92
90
93 url = 'http://ipython.scipy.org'
91 url = 'http://ipython.scipy.org'
94
92
95 download_url = 'http://ipython.scipy.org/dist'
93 download_url = 'http://ipython.scipy.org/dist'
96
94
97 platforms = ['Linux','Mac OSX','Windows XP/2000/NT','Windows 95/98/ME']
95 platforms = ['Linux','Mac OSX','Windows XP/2000/NT','Windows 95/98/ME']
98
96
99 keywords = ['Interactive','Interpreter','Shell','Parallel','Distributed']
97 keywords = ['Interactive','Interpreter','Shell','Parallel','Distributed']
@@ -1,60 +1,58 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 ipbackupdir=~/ipython/backup
7 ipbackupdir=~/ipython/backup
8
8
9 echo
9 echo
10 echo "Releasing IPython version $version"
10 echo "Releasing IPython version $version"
11 echo "=================================="
11 echo "=================================="
12
12
13 echo "Marking ChangeLog with release information and making NEWS file..."
14
15 # Clean up build/dist directories
16 rm -rf $ipdir/build/*
17 rm -rf $ipdir/dist/*
18
19 # Perform local backup
13 # Perform local backup
20 cd $ipdir/tools
14 cd $ipdir/tools
21 ./make_tarball.py
15 ./make_tarball.py
22 mv ipython-*.tgz $ipbackupdir
16 mv ipython-*.tgz $ipbackupdir
23
17
18 # Clean up build/dist directories
19 rm -rf $ipdir/build/*
20 rm -rf $ipdir/dist/*
21
24 # Build source and binary distros
22 # Build source and binary distros
25 cd $ipdir
23 cd $ipdir
26 ./setup.py sdist --formats=gztar
24 ./setup.py sdist --formats=gztar
27
25
28 # Build version-specific RPMs, where we must use the --python option to ensure
26 # Build version-specific RPMs, where we must use the --python option to ensure
29 # that the resulting RPM is really built with the requested python version (so
27 # that the resulting RPM is really built with the requested python version (so
30 # things go to lib/python2.X/...)
28 # things go to lib/python2.X/...)
31 python2.4 ./setup.py bdist_rpm --binary-only --release=py24 --python=/usr/bin/python2.4
29 #python2.4 ./setup.py bdist_rpm --binary-only --release=py24 --python=/usr/bin/python2.4
32 python2.5 ./setup.py bdist_rpm --binary-only --release=py25 --python=/usr/bin/python2.5
30 #python2.5 ./setup.py bdist_rpm --binary-only --release=py25 --python=/usr/bin/python2.5
33
31
34 # Build eggs
32 # Build eggs
35 python2.4 ./setup_bdist_egg.py
33 python2.4 ./setup_bdist_egg.py
36 python2.5 ./setup_bdist_egg.py
34 python2.5 ./setup_bdist_egg.py
37
35
38 # Call the windows build separately, so that the extra Windows scripts don't
36 # Call the windows build separately, so that the extra Windows scripts don't
39 # get pulled into Unix builds (setup.py has code which checks for
37 # get pulled into Unix builds (setup.py has code which checks for
40 # bdist_wininst)
38 # bdist_wininst)
41 ./setup.py bdist_wininst --install-script=ipython_win_post_install.py
39 ./setup.py bdist_wininst --install-script=ipython_win_post_install.py
42
40
43 # Change name so retarded Vista runs the installer correctly
41 # Change name so retarded Vista runs the installer correctly
44 rename 's/win32/win32-setup/' $ipdir/dist/*.exe
42 rename 's/win32/win32-setup/' $ipdir/dist/*.exe
45
43
46 # Register with the Python Package Index (PyPI)
44 # Register with the Python Package Index (PyPI)
47 echo "Registering with PyPI..."
45 echo "Registering with PyPI..."
48 cd $ipdir
46 cd $ipdir
49 ./setup.py register
47 ./setup.py register
50
48
51 # Upload all files
49 # Upload all files
52 cd $ipdir/dist
50 cd $ipdir/dist
53 echo "Uploading distribution files..."
51 echo "Uploading distribution files..."
54 scp * ipython@ipython.scipy.org:www/dist/
52 scp * ipython@ipython.scipy.org:www/dist/
55
53
56 echo "Uploading backup files..."
54 echo "Uploading backup files..."
57 cd $ipbackupdir
55 cd $ipbackupdir
58 scp `ls -1tr *tgz | tail -1` ipython@ipython.scipy.org:www/backup/
56 scp `ls -1tr *tgz | tail -1` ipython@ipython.scipy.org:www/backup/
59
57
60 echo "Done!"
58 echo "Done!"
General Comments 0
You need to be logged in to leave comments. Login now