Show More
@@ -1,83 +1,87 b'' | |||
|
1 | 1 | # -*- coding: utf-8 -*- |
|
2 | 2 | """Release data for the IPython project. |
|
3 | 3 | |
|
4 | 4 | $Id: Release.py 3002 2008-02-01 07:17:00Z fperez $""" |
|
5 | 5 | |
|
6 | 6 | #***************************************************************************** |
|
7 | 7 | # Copyright (C) 2001-2006 Fernando Perez <fperez@colorado.edu> |
|
8 | 8 | # |
|
9 | 9 | # Copyright (c) 2001 Janko Hauser <jhauser@zscout.de> and Nathaniel Gray |
|
10 | 10 | # <n8gray@caltech.edu> |
|
11 | 11 | # |
|
12 | 12 | # Distributed under the terms of the BSD License. The full license is in |
|
13 | 13 | # the file COPYING, distributed as part of this software. |
|
14 | 14 | #***************************************************************************** |
|
15 | 15 | |
|
16 | 16 | # Name of the package for release purposes. This is the name which labels |
|
17 | 17 | # the tarballs and RPMs made by distutils, so it's best to lowercase it. |
|
18 | 18 | name = 'ipython' |
|
19 | 19 | |
|
20 | 20 | # For versions with substrings (like 0.6.16.svn), use an extra . to separate |
|
21 | 21 | # the new substring. We have to avoid using either dashes or underscores, |
|
22 | 22 | # because bdist_rpm does not accept dashes (an RPM) convention, and |
|
23 | 23 | # bdist_deb does not accept underscores (a Debian convention). |
|
24 | 24 | |
|
25 |
revision = '5 |
|
|
25 | revision = '57' | |
|
26 | branch = 'ipython' | |
|
26 | 27 | |
|
27 | version = '0.8.3.bzr.r' + revision | |
|
28 | if branch == 'ipython': | |
|
29 | version = '0.8.3.bzr.r' + revision | |
|
30 | else: | |
|
31 | version = '0.8.3.bzr.r%s.%s' % (revision,branch) | |
|
28 | 32 | |
|
29 | 33 | description = "An enhanced interactive Python shell." |
|
30 | 34 | |
|
31 | 35 | long_description = \ |
|
32 | 36 | """ |
|
33 | 37 | IPython provides a replacement for the interactive Python interpreter with |
|
34 | 38 | extra functionality. |
|
35 | 39 | |
|
36 | 40 | Main features: |
|
37 | 41 | |
|
38 | 42 | * Comprehensive object introspection. |
|
39 | 43 | |
|
40 | 44 | * Input history, persistent across sessions. |
|
41 | 45 | |
|
42 | 46 | * Caching of output results during a session with automatically generated |
|
43 | 47 | references. |
|
44 | 48 | |
|
45 | 49 | * Readline based name completion. |
|
46 | 50 | |
|
47 | 51 | * Extensible system of 'magic' commands for controlling the environment and |
|
48 | 52 | performing many tasks related either to IPython or the operating system. |
|
49 | 53 | |
|
50 | 54 | * Configuration system with easy switching between different setups (simpler |
|
51 | 55 | than changing $PYTHONSTARTUP environment variables every time). |
|
52 | 56 | |
|
53 | 57 | * Session logging and reloading. |
|
54 | 58 | |
|
55 | 59 | * Extensible syntax processing for special purpose situations. |
|
56 | 60 | |
|
57 | 61 | * Access to the system shell with user-extensible alias system. |
|
58 | 62 | |
|
59 | 63 | * Easily embeddable in other Python programs. |
|
60 | 64 | |
|
61 | 65 | * Integrated access to the pdb debugger and the Python profiler. |
|
62 | 66 | |
|
63 | 67 | The latest development version is always available at the IPython subversion |
|
64 | 68 | repository_. |
|
65 | 69 | |
|
66 | 70 | .. _repository: http://ipython.scipy.org/svn/ipython/ipython/trunk#egg=ipython-dev |
|
67 | 71 | """ |
|
68 | 72 | |
|
69 | 73 | license = 'BSD' |
|
70 | 74 | |
|
71 | 75 | authors = {'Fernando' : ('Fernando Perez','fperez@colorado.edu'), |
|
72 | 76 | 'Janko' : ('Janko Hauser','jhauser@zscout.de'), |
|
73 | 77 | 'Nathan' : ('Nathaniel Gray','n8gray@caltech.edu'), |
|
74 | 78 | 'Ville' : ('Ville Vainio','vivainio@gmail.com') |
|
75 | 79 | } |
|
76 | 80 | |
|
77 | 81 | url = 'http://ipython.scipy.org' |
|
78 | 82 | |
|
79 | 83 | download_url = 'http://ipython.scipy.org/dist' |
|
80 | 84 | |
|
81 | 85 | platforms = ['Linux','Mac OSX','Windows XP/2000/NT','Windows 95/98/ME'] |
|
82 | 86 | |
|
83 | 87 | keywords = ['Interactive','Interpreter','Shell'] |
@@ -1,14 +1,23 b'' | |||
|
1 | 1 | #!/usr/bin/env python |
|
2 | 2 | """ Change the revision number in Release.py """ |
|
3 | 3 | |
|
4 | 4 | import os |
|
5 | import re | |
|
5 | import re,pprint | |
|
6 | 6 | |
|
7 | rev = os.popen('bzr revno').read().strip() | |
|
7 | def verinfo(): | |
|
8 | ||
|
9 | out = os.popen('bzr version-info') | |
|
10 | pairs = (l.split(':',1) for l in out) | |
|
11 | d = dict(((k,v.strip()) for (k,v) in pairs)) | |
|
12 | return d | |
|
8 | 13 | |
|
9 | print "current rev is",rev | |
|
10 | assert ':' not in rev | |
|
14 | ver = verinfo() | |
|
15 | ||
|
16 | pprint.pprint(ver) | |
|
11 | 17 | |
|
12 | 18 | rfile = open('../IPython/Release.py','rb').read() |
|
13 | newcont = re.sub(r'revision\s*=.*', "revision = '%s'" % rev, rfile) | |
|
19 | newcont = re.sub(r'revision\s*=.*', "revision = '%s'" % ver['revno'], rfile) | |
|
20 | ||
|
21 | newcont = re.sub(r'^branch\s*=[^=].*', "branch = '%s'" % ver['branch-nick'], newcont ) | |
|
22 | ||
|
14 | 23 | open('../IPython/Release.py','wb').write(newcont) |
General Comments 0
You need to be logged in to leave comments.
Login now