From 61b0fb8f67cdc870ae116b9efbdc6fab76119cc1 2022-12-01 13:07:14 From: Nicholas Bollweg Date: 2022-12-01 13:07:14 Subject: [PATCH] move all entry_point definitions to setup.py --- diff --git a/setup.cfg b/setup.cfg index 226506f..769bfda 100644 --- a/setup.cfg +++ b/setup.cfg @@ -105,12 +105,6 @@ IPython.core.tests = *.png, *.jpg, daft_extension/*.py IPython.lib.tests = *.wav IPython.testing.plugin = *.txt -[options.entry_points] -pygments.lexers = - ipythonconsole = IPython.lib.lexers:IPythonConsoleLexer - ipython = IPython.lib.lexers:IPythonLexer - ipython3 = IPython.lib.lexers:IPython3Lexer - [velin] ignore_patterns = IPython/core/tests diff --git a/setup.py b/setup.py index 4939ca5..454c297 100644 --- a/setup.py +++ b/setup.py @@ -139,7 +139,15 @@ setup_args['cmdclass'] = { 'install_scripts_sym': install_scripts_for_symlink, 'unsymlink': unsymlink, } -setup_args["entry_points"] = {"console_scripts": find_entry_points()} + +setup_args["entry_points"] = { + "console_scripts": find_entry_points(), + "pygments.lexers": [ + "ipythonconsole = IPython.lib.lexers:IPythonConsoleLexer", + "ipython = IPython.lib.lexers:IPythonLexer", + "ipython3 = IPython.lib.lexers:IPython3Lexer", + ] +} #--------------------------------------------------------------------------- # Do the actual setup now