From aabe451dae69bf2abb5f5f0b0638c8d96d052836 Mon Sep 17 00:00:00 2001 From: Michael Merickel Date: Sat, 5 Jan 2019 13:46:09 -0600 Subject: use the dict form of entry_points in setup.py --- setup.py | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 3176442e1..afddbda35 100644 --- a/setup.py +++ b/setup.py @@ -100,19 +100,22 @@ setup( extras_require={'testing': testing_extras, 'docs': docs_extras}, tests_require=tests_require, test_suite="tests", - entry_points="""\ - [pyramid.pshell_runner] - python=pyramid.scripts.pshell:python_shell_runner - [console_scripts] - pserve = pyramid.scripts.pserve:main - pshell = pyramid.scripts.pshell:main - proutes = pyramid.scripts.proutes:main - pviews = pyramid.scripts.pviews:main - ptweens = pyramid.scripts.ptweens:main - prequest = pyramid.scripts.prequest:main - pdistreport = pyramid.scripts.pdistreport:main - [paste.server_runner] - wsgiref = pyramid.scripts.pserve:wsgiref_server_runner - cherrypy = pyramid.scripts.pserve:cherrypy_server_runner - """, + entry_points={ + 'paste.server_runner': [ + 'wsgiref = pyramid.scripts.pserve:wsgiref_server_runner', + 'cherrypy = pyramid.scripts.pserve:cherrypy_server_runner', + ], + 'pyramid.pshell_runner': [ + 'python = pyramid.scripts.pshell:python_shell_runner' + ], + 'console_scripts': [ + 'pserve = pyramid.scripts.pserve:main', + 'pshell = pyramid.scripts.pshell:main', + 'proutes = pyramid.scripts.proutes:main', + 'pviews = pyramid.scripts.pviews:main', + 'ptweens = pyramid.scripts.ptweens:main', + 'prequest = pyramid.scripts.prequest:main', + 'pdistreport = pyramid.scripts.pdistreport:main', + ], + }, ) -- cgit v1.2.3