Permalink
Browse files

use the dict form of entry_points in setup.py

  • Loading branch information...
mmerickel committed Jan 5, 2019
1 parent c02f228 commit aabe451dae69bf2abb5f5f0b0638c8d96d052836
Showing with 18 additions and 15 deletions.
  1. +18 −15 setup.py
@@ -100,19 +100,22 @@ def readfile(name):
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',
],
},
)

0 comments on commit aabe451

Please sign in to comment.