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 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/static_assets/setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 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 a84fe79ee..0c980b613 100644 --- a/docs/quick_tutorial/static_assets/setup.py +++ b/docs/quick_tutorial/static_assets/setup.py @@ -5,14 +5,14 @@ from setuptools import setup requires = [ 'pyramid', 'pyramid_chameleon', - 'pyramid_debugtoolbar', 'waitress', ] # List of dependencies installed via `pip install -e ".[testing]"` # by virtue of the Setuptools `extras_require` value in the Python # dictionary below. -tests_require = [ +dev_requires = [ + 'pyramid_debugtoolbar', 'pytest', 'webtest', ] @@ -21,7 +21,7 @@ setup( name='tutorial', install_requires=requires, extras_require={ - 'testing': tests_require, + 'dev': dev_requires, }, entry_points={ 'paste.app_factory': [ -- 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/static_assets/setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 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 0c980b613..e9c068a23 100644 --- a/docs/quick_tutorial/static_assets/setup.py +++ b/docs/quick_tutorial/static_assets/setup.py @@ -1,6 +1,6 @@ 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', @@ -8,7 +8,7 @@ requires = [ 'waitress', ] -# List of dependencies installed via `pip install -e ".[testing]"` +# List of dependencies installed via `pip install -e ".[dev]"` # by virtue of the Setuptools `extras_require` value in the Python # dictionary below. dev_requires = [ -- cgit v1.2.3