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