From 307313574f9726d1c03639114d1c976535c9b968 Mon Sep 17 00:00:00 2001 From: Steve Piercy Date: Mon, 8 Oct 2018 02:12:00 -0700 Subject: Update all the `setup.py`s --- docs/quick_tutorial/static_assets/setup.py | 35 +++++++++++++++++++----------- 1 file changed, 22 insertions(+), 13 deletions(-) (limited to 'docs/quick_tutorial/static_assets/setup.py') diff --git a/docs/quick_tutorial/static_assets/setup.py b/docs/quick_tutorial/static_assets/setup.py index 3ad7f004e..a84fe79ee 100644 --- a/docs/quick_tutorial/static_assets/setup.py +++ b/docs/quick_tutorial/static_assets/setup.py @@ -1,5 +1,7 @@ from setuptools import setup +# List of dependencies installed via `pip install -e .`. +# by virtue of the Setuptools `install_requires` value below. requires = [ 'pyramid', 'pyramid_chameleon', @@ -7,16 +9,23 @@ requires = [ 'waitress', ] -setup(name='tutorial', - install_requires=requires, - extras_require={ - 'test': [ - 'pytest', - 'webtest', - ], - }, - entry_points="""\ - [paste.app_factory] - main = tutorial:main - """, - ) +# List of dependencies installed via `pip install -e ".[testing]"` +# by virtue of the Setuptools `extras_require` value in the Python +# dictionary below. +tests_require = [ + 'pytest', + 'webtest', +] + +setup( + name='tutorial', + install_requires=requires, + extras_require={ + 'testing': tests_require, + }, + entry_points={ + 'paste.app_factory': [ + 'main = tutorial:main' + ], + }, +) -- cgit v1.2.3