From e89b83b51e09c26f256cf5793f42e483bc038fe4 2005-09-01 20:24:59 From: fperez Date: 2005-09-01 20:24:59 Subject: [PATCH] Simple change to add svn revision info at the top level and crash handler. Useful for debugging. --- diff --git a/IPython/CrashHandler.py b/IPython/CrashHandler.py index 12acbd6..db535b5 100644 --- a/IPython/CrashHandler.py +++ b/IPython/CrashHandler.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """sys.excepthook for IPython itself, leaves a detailed report on disk. -$Id: CrashHandler.py 410 2004-11-04 07:58:17Z fperez $""" +$Id: CrashHandler.py 775 2005-09-01 20:24:59Z fperez $""" #***************************************************************************** # Copyright (C) 2001-2004 Fernando Perez. @@ -11,9 +11,9 @@ $Id: CrashHandler.py 410 2004-11-04 07:58:17Z fperez $""" #***************************************************************************** from IPython import Release -__author__ = '%s <%s>' % Release.authors['Fernando'] -__license__ = Release.license -__version__ = Release.version +__author__ = '%s <%s>' % Release.authors['Fernando'] +__license__ = Release.license +__version__ = Release.version #**************************************************************************** # Required modules @@ -92,7 +92,8 @@ http://www.scipy.net/roundup/ipython (IPython's online bug tracker). sec_sep = '\n\n'+'*'*75+'\n\n' report.write('*'*75+'\n\n'+'IPython post-mortem report\n\n') - report.write('IPython version: %s \n\n' % __version__) + report.write('IPython version: %s \n\n' % Release.version) + report.write('SVN revision : %s \n\n' % Release.revision) report.write('Platform info : os.name -> %s, sys.platform -> %s' % (os.name,sys.platform) ) report.write(sec_sep+'Current user configuration structure:\n\n') diff --git a/IPython/Release.py b/IPython/Release.py index 707de09..72d2ad5 100644 --- a/IPython/Release.py +++ b/IPython/Release.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """Release data for the IPython project. -$Id: Release.py 750 2005-08-24 17:36:16Z fperez $""" +$Id: Release.py 775 2005-09-01 20:24:59Z fperez $""" #***************************************************************************** # Copyright (C) 2001-2005 Fernando Perez @@ -24,6 +24,8 @@ name = 'ipython' version = '0.6.16.svn' +revision = '$Revision: 775 $' + description = "An enhanced interactive Python shell." long_description = \ diff --git a/IPython/__init__.py b/IPython/__init__.py index ff74c49..37754e7 100644 --- a/IPython/__init__.py +++ b/IPython/__init__.py @@ -27,7 +27,7 @@ IPython tries to: IPython requires Python 2.2 or newer. -$Id: __init__.py 530 2005-03-02 07:11:15Z fperez $""" +$Id: __init__.py 775 2005-09-01 20:24:59Z fperez $""" #***************************************************************************** # Copyright (C) 2001-2004 Fernando Perez. @@ -53,11 +53,12 @@ for name in __all__: # Release data from IPython import Release # do it explicitly so pydoc can see it - pydoc bug -__author__ = '%s <%s>\n%s <%s>\n%s <%s>' % \ - ( Release.authors['Fernando'] + Release.authors['Janko'] + \ - Release.authors['Nathan'] ) -__license__ = Release.license -__version__ = Release.version +__author__ = '%s <%s>\n%s <%s>\n%s <%s>' % \ + ( Release.authors['Fernando'] + Release.authors['Janko'] + \ + Release.authors['Nathan'] ) +__license__ = Release.license +__version__ = Release.version +__revision__ = Release.revision # Namespace cleanup del name,glob,loc