From 5beff84c469a54dceae3377b51b824751616bcec Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Mon, 30 Oct 2023 12:54:14 +0100 Subject: [PATCH 1/5] Remove Support for Python 2 Lexing. I don't think there is much reasons to lex Python 2 with such a recent QtConsole/IPython. closes #588 --- qtconsole/jupyter_widget.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qtconsole/jupyter_widget.py b/qtconsole/jupyter_widget.py index cc9de877..3ecf8ab2 100644 --- a/qtconsole/jupyter_widget.py +++ b/qtconsole/jupyter_widget.py @@ -14,7 +14,7 @@ from qtpy import QtCore, QtGui -from IPython.lib.lexers import IPythonLexer, IPython3Lexer +from IPython.lib.lexers import IPython3Lexer from pygments.lexers import get_lexer_by_name from pygments.util import ClassNotFound from qtconsole import __version__ @@ -303,8 +303,6 @@ def _handle_kernel_info_reply(self, rep): # added here by hand. if pygments_lexer == 'ipython3': lexer = IPython3Lexer() - elif pygments_lexer == 'ipython2': - lexer = IPythonLexer() else: lexer = get_lexer_by_name(self.language_name) self._highlighter._lexer = lexer From 2f6bb383edff0f9ee04236d95ea2f81a0885faae Mon Sep 17 00:00:00 2001 From: Carlos Cordoba Date: Wed, 28 Aug 2024 13:17:51 -0500 Subject: [PATCH 2/5] Update Changelog --- docs/source/changelog.rst | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/docs/source/changelog.rst b/docs/source/changelog.rst index ee5f175f..5510b3db 100644 --- a/docs/source/changelog.rst +++ b/docs/source/changelog.rst @@ -3,6 +3,29 @@ Changes in Jupyter Qt console ============================= +.. _5.6: + +5.6 +~~~ + +5.6.0 +----- + +`5.6.0 on GitHub `__ + +Additions ++++++++++ + +* Use selected syntax highlighting style for tracebacks and improve ANSI color + codes support. + +Changes ++++++++ + +* Remove syntax highlighting support for Python 2. +* Fix handling of carriage return. +* Fix showing bold face characters in output when using ANSI codes. + .. _5.5: 5.5 From 9639a88c897e70074d7ee3b7c0a91b5ac0180d30 Mon Sep 17 00:00:00 2001 From: Carlos Cordoba Date: Wed, 28 Aug 2024 13:20:16 -0500 Subject: [PATCH 3/5] Release 5.6.0 --- qtconsole/_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qtconsole/_version.py b/qtconsole/_version.py index 188a30f2..d6ac2d61 100644 --- a/qtconsole/_version.py +++ b/qtconsole/_version.py @@ -1,2 +1,2 @@ -version_info = (5, 6, 0, 'dev0') +version_info = (5, 6, 0) __version__ = '.'.join(map(str, version_info)) From b72002631b00445c8bb7d08b9316d04b9ba0f38b Mon Sep 17 00:00:00 2001 From: Carlos Cordoba Date: Wed, 28 Aug 2024 13:23:32 -0500 Subject: [PATCH 4/5] Back to work --- qtconsole/_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qtconsole/_version.py b/qtconsole/_version.py index d6ac2d61..0ef76def 100644 --- a/qtconsole/_version.py +++ b/qtconsole/_version.py @@ -1,2 +1,2 @@ -version_info = (5, 6, 0) +version_info = (5, 7, 0, 'dev0') __version__ = '.'.join(map(str, version_info)) From a8658bbb5f9acd5f2e0109ee47f0bc50545a972a Mon Sep 17 00:00:00 2001 From: Carlos Cordoba Date: Wed, 28 Aug 2024 13:27:13 -0500 Subject: [PATCH 5/5] Some small fixes to the release instructions --- RELEASE.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RELEASE.md b/RELEASE.md index 2812391e..0d0bb843 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -16,7 +16,7 @@ To release a new version of qtconsole you need to follow these steps: * activate pyenv-with-latest-setuptools && python setup.py bdist_wheel -* twine check dist/* +* twine check --strict dist/* * twine upload dist/* @@ -26,6 +26,6 @@ To release a new version of qtconsole you need to follow these steps: * git add and git commit with `Back to work` -* git push upstream master +* git push upstream main * git push upstream --tags