Show More
@@ -1,89 +1,89 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 |
revision = '11 |
|
25 | revision = '114' | |
26 | branch = 'ipython' |
|
26 | branch = 'ipython' | |
27 |
|
27 | |||
28 | if branch == 'ipython': |
|
28 | if branch == 'ipython': | |
29 | version = '0.8.3.bzr.r' + revision |
|
29 | version = '0.8.3.bzr.r' + revision | |
30 | else: |
|
30 | else: | |
31 | version = '0.8.3.bzr.r%s.%s' % (revision,branch) |
|
31 | version = '0.8.3.bzr.r%s.%s' % (revision,branch) | |
32 |
|
32 | |||
33 | version = '0.8.3.rc1' |
|
33 | version = '0.8.3.rc1' | |
34 |
|
34 | |||
35 | description = "An enhanced interactive Python shell." |
|
35 | description = "An enhanced interactive Python shell." | |
36 |
|
36 | |||
37 | long_description = \ |
|
37 | long_description = \ | |
38 | """ |
|
38 | """ | |
39 | IPython provides a replacement for the interactive Python interpreter with |
|
39 | IPython provides a replacement for the interactive Python interpreter with | |
40 | extra functionality. |
|
40 | extra functionality. | |
41 |
|
41 | |||
42 | Main features: |
|
42 | Main features: | |
43 |
|
43 | |||
44 | * Comprehensive object introspection. |
|
44 | * Comprehensive object introspection. | |
45 |
|
45 | |||
46 | * Input history, persistent across sessions. |
|
46 | * Input history, persistent across sessions. | |
47 |
|
47 | |||
48 | * Caching of output results during a session with automatically generated |
|
48 | * Caching of output results during a session with automatically generated | |
49 | references. |
|
49 | references. | |
50 |
|
50 | |||
51 | * Readline based name completion. |
|
51 | * Readline based name completion. | |
52 |
|
52 | |||
53 | * Extensible system of 'magic' commands for controlling the environment and |
|
53 | * Extensible system of 'magic' commands for controlling the environment and | |
54 | performing many tasks related either to IPython or the operating system. |
|
54 | performing many tasks related either to IPython or the operating system. | |
55 |
|
55 | |||
56 | * Configuration system with easy switching between different setups (simpler |
|
56 | * Configuration system with easy switching between different setups (simpler | |
57 | than changing $PYTHONSTARTUP environment variables every time). |
|
57 | than changing $PYTHONSTARTUP environment variables every time). | |
58 |
|
58 | |||
59 | * Session logging and reloading. |
|
59 | * Session logging and reloading. | |
60 |
|
60 | |||
61 | * Extensible syntax processing for special purpose situations. |
|
61 | * Extensible syntax processing for special purpose situations. | |
62 |
|
62 | |||
63 | * Access to the system shell with user-extensible alias system. |
|
63 | * Access to the system shell with user-extensible alias system. | |
64 |
|
64 | |||
65 | * Easily embeddable in other Python programs. |
|
65 | * Easily embeddable in other Python programs. | |
66 |
|
66 | |||
67 | * Integrated access to the pdb debugger and the Python profiler. |
|
67 | * Integrated access to the pdb debugger and the Python profiler. | |
68 |
|
68 | |||
69 | The latest development version is always available at the IPython subversion |
|
69 | The latest development version is always available at the IPython subversion | |
70 | repository_. |
|
70 | repository_. | |
71 |
|
71 | |||
72 | .. _repository: http://ipython.scipy.org/svn/ipython/ipython/trunk#egg=ipython-dev |
|
72 | .. _repository: http://ipython.scipy.org/svn/ipython/ipython/trunk#egg=ipython-dev | |
73 | """ |
|
73 | """ | |
74 |
|
74 | |||
75 | license = 'BSD' |
|
75 | license = 'BSD' | |
76 |
|
76 | |||
77 | authors = {'Fernando' : ('Fernando Perez','fperez@colorado.edu'), |
|
77 | authors = {'Fernando' : ('Fernando Perez','fperez@colorado.edu'), | |
78 | 'Janko' : ('Janko Hauser','jhauser@zscout.de'), |
|
78 | 'Janko' : ('Janko Hauser','jhauser@zscout.de'), | |
79 | 'Nathan' : ('Nathaniel Gray','n8gray@caltech.edu'), |
|
79 | 'Nathan' : ('Nathaniel Gray','n8gray@caltech.edu'), | |
80 | 'Ville' : ('Ville Vainio','vivainio@gmail.com') |
|
80 | 'Ville' : ('Ville Vainio','vivainio@gmail.com') | |
81 | } |
|
81 | } | |
82 |
|
82 | |||
83 | url = 'http://ipython.scipy.org' |
|
83 | url = 'http://ipython.scipy.org' | |
84 |
|
84 | |||
85 | download_url = 'http://ipython.scipy.org/dist' |
|
85 | download_url = 'http://ipython.scipy.org/dist' | |
86 |
|
86 | |||
87 | platforms = ['Linux','Mac OSX','Windows XP/2000/NT','Windows 95/98/ME'] |
|
87 | platforms = ['Linux','Mac OSX','Windows XP/2000/NT','Windows 95/98/ME'] | |
88 |
|
88 | |||
89 | keywords = ['Interactive','Interpreter','Shell'] |
|
89 | keywords = ['Interactive','Interpreter','Shell'] |
@@ -1,32 +1,33 b'' | |||||
1 | import os,sys,shutil |
|
1 | import os,sys,shutil | |
2 |
|
2 | |||
|
3 | ||||
3 | basever = '0.8.3' |
|
4 | basever = '0.8.3' | |
4 |
|
5 | |||
5 | def oscmd(c): |
|
6 | def oscmd(c): | |
6 | print ">",c |
|
7 | print ">",c | |
7 | s = os.system(c) |
|
8 | s = os.system(c) | |
8 | if s: |
|
9 | if s: | |
9 | print "Error",s |
|
10 | print "Error",s | |
10 | sys.exit(s) |
|
11 | sys.exit(s) | |
11 |
|
12 | |||
12 | def verinfo(): |
|
13 | def verinfo(): | |
13 |
|
14 | |||
14 | out = os.popen('bzr version-info') |
|
15 | out = os.popen('bzr version-info') | |
15 | pairs = (l.split(':',1) for l in out) |
|
16 | pairs = (l.split(':',1) for l in out) | |
16 | d = dict(((k,v.strip()) for (k,v) in pairs)) |
|
17 | d = dict(((k,v.strip()) for (k,v) in pairs)) | |
17 | return d |
|
18 | return d | |
18 |
|
19 | |||
19 | basename = 'ipython' |
|
20 | basename = 'ipython' | |
20 |
|
21 | |||
21 | #tarname = '%s.r%s.tgz' % (basename, ver) |
|
22 | #tarname = '%s.r%s.tgz' % (basename, ver) | |
22 | oscmd('update_revnum.py') |
|
23 | oscmd('python update_revnum.py') | |
23 |
|
24 | |||
24 | ver = verinfo() |
|
25 | ver = verinfo() | |
25 |
|
26 | |||
26 | if ver['branch-nick'] == 'ipython': |
|
27 | if ver['branch-nick'] == 'ipython': | |
27 | tarname = 'ipython-%s.bzr.r%s.tgz' % (basever, ver['revno']) |
|
28 | tarname = 'ipython-%s.bzr.r%s.tgz' % (basever, ver['revno']) | |
28 | else: |
|
29 | else: | |
29 | tarname = 'ipython-%s.bzr.r%s.%s.tgz' % (basever, ver['revno'], ver['branch-nick']) |
|
30 | tarname = 'ipython-%s.bzr.r%s.%s.tgz' % (basever, ver['revno'], ver['branch-nick']) | |
30 |
|
31 | |||
31 | oscmd('bzr export ' + tarname) |
|
32 | oscmd('bzr export ' + tarname) | |
32 |
|
33 |
@@ -1,39 +1,50 b'' | |||||
1 | """ Create ipykit and exe installer |
|
1 | """ Create ipykit and exe installer | |
2 |
|
2 | |||
3 | requires py2exe |
|
3 | requires py2exe | |
4 |
|
4 | |||
5 | """ |
|
5 | """ | |
6 | #!/bin/sh |
|
6 | #!/bin/sh | |
7 | # IPython release script |
|
7 | # IPython release script | |
8 |
|
8 | |||
9 |
|
9 | |||
10 | import os |
|
10 | import os | |
11 | import distutils.dir_util |
|
11 | import distutils.dir_util | |
12 | import sys |
|
12 | import sys | |
13 |
|
13 | |||
14 | execfile('../IPython/Release.py') |
|
14 | execfile('../IPython/Release.py') | |
15 |
|
15 | |||
16 | def c(cmd): |
|
16 | def c(cmd): | |
17 | print ">",cmd |
|
17 | print ">",cmd | |
18 | os.system(cmd) |
|
18 | os.system(cmd) | |
19 |
|
19 | |||
20 | ipykit_name = "ipykit-%s" % version |
|
20 | ipykit_name = "ipykit-%s" % version | |
21 |
|
21 | |||
22 |
|
22 | |||
23 | os.chdir('..') |
|
23 | os.chdir('..') | |
24 | if os.path.isdir('dist'): |
|
24 | if os.path.isdir('dist'): | |
25 | distutils.dir_util.remove_tree('dist') |
|
25 | distutils.dir_util.remove_tree('dist') | |
26 | if os.path.isdir(ipykit_name): |
|
26 | if os.path.isdir(ipykit_name): | |
27 | distutils.dir_util.remove_tree(ipykit_name) |
|
27 | distutils.dir_util.remove_tree(ipykit_name) | |
28 |
|
28 | |||
29 | c("python exesetup.py py2exe") |
|
29 | if sys.platform == 'win32': | |
|
30 | c("python exesetup.py py2exe") | |||
30 |
|
31 | |||
31 | os.rename('dist',ipykit_name) |
|
32 | os.rename('dist',ipykit_name) | |
32 |
|
33 | |||
33 | c("zip -r %s.zip %s" % (ipykit_name, ipykit_name)) |
|
34 | c("zip -r %s.zip %s" % (ipykit_name, ipykit_name)) | |
|
35 | ||||
|
36 | # Build source and binary distros | |||
|
37 | c('./setup.py sdist --formats=gztar') | |||
|
38 | ||||
|
39 | c("python2.4 ./setup.py bdist_rpm --binary-only --release=py24 --python=/usr/bin/python2.4") | |||
|
40 | c("python2.5 ./setup.py bdist_rpm --binary-only --release=py25 --python=/usr/bin/python2.5") | |||
|
41 | ||||
|
42 | # Build eggs | |||
|
43 | c('python2.4 ./eggsetup.py bdist_egg') | |||
|
44 | c('python2.5 ./eggsetup.py bdist_egg') | |||
34 |
|
45 | |||
35 | c("python setup.py bdist_wininst --install-script=ipython_win_post_install.py") |
|
46 | c("python setup.py bdist_wininst --install-script=ipython_win_post_install.py") | |
36 |
|
47 | |||
37 |
os.chdir( |
|
48 | os.chdir('tools') | |
38 | #c("svn export http://ipython.scipy.org/svn/ipython/ipython/trunk ipython") |
|
49 | c('python make_tarball.py') | |
39 | #c("zip -r ipython_svn.zip ipython") |
|
50 |
General Comments 0
You need to be logged in to leave comments.
Login now