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/debugtoolbar/setup.py | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'docs/quick_tutorial/debugtoolbar') diff --git a/docs/quick_tutorial/debugtoolbar/setup.py b/docs/quick_tutorial/debugtoolbar/setup.py index a947e20d8..5fee31f01 100644 --- a/docs/quick_tutorial/debugtoolbar/setup.py +++ b/docs/quick_tutorial/debugtoolbar/setup.py @@ -1,15 +1,19 @@ from setuptools import setup +# List of dependencies installed via `pip install -e .`. +# by virtue of the Setuptools `install_requires` value below. requires = [ 'pyramid', 'pyramid_debugtoolbar', 'waitress', ] -setup(name='tutorial', - install_requires=requires, - entry_points="""\ - [paste.app_factory] - main = tutorial:main - """, - ) +setup( + name='tutorial', + install_requires=requires, + entry_points={ + 'paste.app_factory': [ + 'main = tutorial:main' + ], + }, +) -- cgit v1.2.3 From 29f69b107313b3897280d10608f28a6fa5360e37 Mon Sep 17 00:00:00 2001 From: Steve Piercy Date: Mon, 8 Oct 2018 23:45:30 -0700 Subject: Revise `setup.py`s --- docs/quick_tutorial/debugtoolbar/setup.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'docs/quick_tutorial/debugtoolbar') diff --git a/docs/quick_tutorial/debugtoolbar/setup.py b/docs/quick_tutorial/debugtoolbar/setup.py index 5fee31f01..6120d7a2f 100644 --- a/docs/quick_tutorial/debugtoolbar/setup.py +++ b/docs/quick_tutorial/debugtoolbar/setup.py @@ -4,13 +4,19 @@ from setuptools import setup # by virtue of the Setuptools `install_requires` value below. requires = [ 'pyramid', - 'pyramid_debugtoolbar', 'waitress', ] +dev_requires = [ + 'pyramid_debugtoolbar', +] + setup( name='tutorial', install_requires=requires, + extras_require={ + 'dev': dev_requires, + }, entry_points={ 'paste.app_factory': [ 'main = tutorial:main' -- cgit v1.2.3 From 43da8c96b77342b9d2203da9f32dc6b8db04e2a8 Mon Sep 17 00:00:00 2001 From: Steve Piercy Date: Mon, 8 Oct 2018 23:55:40 -0700 Subject: Fix comments in `setup.py`s --- docs/quick_tutorial/debugtoolbar/setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'docs/quick_tutorial/debugtoolbar') diff --git a/docs/quick_tutorial/debugtoolbar/setup.py b/docs/quick_tutorial/debugtoolbar/setup.py index 6120d7a2f..53bc0f5c7 100644 --- a/docs/quick_tutorial/debugtoolbar/setup.py +++ b/docs/quick_tutorial/debugtoolbar/setup.py @@ -1,12 +1,15 @@ from setuptools import setup -# List of dependencies installed via `pip install -e .`. +# List of dependencies installed via `pip install -e .` # by virtue of the Setuptools `install_requires` value below. requires = [ 'pyramid', 'waitress', ] +# List of dependencies installed via `pip install -e ".[dev]"` +# by virtue of the Setuptools `extras_require` value in the Python +# dictionary below. dev_requires = [ 'pyramid_debugtoolbar', ] -- cgit v1.2.3