From 33775656cb4137d918fe38a7d38a4206cceba934 2019-11-30 19:34:09 From: Matthias Bussonnier Date: 2019-11-30 19:34:09 Subject: [PATCH] print the version on crash --- diff --git a/IPython/core/crashhandler.py b/IPython/core/crashhandler.py index 2117edb..1e0b429 100644 --- a/IPython/core/crashhandler.py +++ b/IPython/core/crashhandler.py @@ -29,6 +29,8 @@ from IPython.core.release import author_email from IPython.utils.sysinfo import sys_info from IPython.utils.py3compat import input +from IPython.core.release import __version__ as version + #----------------------------------------------------------------------------- # Code #----------------------------------------------------------------------------- @@ -68,7 +70,7 @@ To ensure accurate tracking of this issue, please file a report about it at: """ _lite_message_template = """ -If you suspect this is an IPython bug, please report it at: +If you suspect this is an IPython {version} bug, please report it at: https://github.com/ipython/ipython/issues or send an email to the mailing list at {email} @@ -222,5 +224,5 @@ def crash_handler_lite(etype, evalue, tb): else: # we are not in a shell, show generic config config = "c." - print(_lite_message_template.format(email=author_email, config=config), file=sys.stderr) + print(_lite_message_template.format(email=author_email, config=config, version=version), file=sys.stderr) diff --git a/tools/release_helper.sh b/tools/release_helper.sh index d7040cc..7251ec1 100644 --- a/tools/release_helper.sh +++ b/tools/release_helper.sh @@ -105,4 +105,8 @@ echo $GREEN"Press enter to continue"$NOR read git checkout $VERSION +# ./tools/release +# ls ./dist +# shasum -a 256 dist/* +