From c512199dd19f3413c7f5951cec43b1f9dd69e40f 2021-12-08 23:40:46 From: James Morris Date: 2021-12-08 23:40:46 Subject: [PATCH] Put pygments.lexers entry point in setup.cfg --- diff --git a/setup.cfg b/setup.cfg index 5dd19c5..5223f82 100644 --- a/setup.cfg +++ b/setup.cfg @@ -23,6 +23,12 @@ install_requires = appnope; sys_platform == "darwin" colorama; sys_platform == "win32" +[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 0431442..8d119ab 100755 --- a/setup.py +++ b/setup.py @@ -190,14 +190,7 @@ extras_require['all'] = list(sorted(everything)) setuptools_extra_args["python_requires"] = ">=3.8" setuptools_extra_args["zip_safe"] = False -setuptools_extra_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", - ], -} +setuptools_extra_args["entry_points"] = {"console_scripts": find_entry_points()} setup_args["extras_require"] = extras_require