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/databases/setup.py | 40 +++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 15 deletions(-) (limited to 'docs/quick_tutorial/databases') diff --git a/docs/quick_tutorial/databases/setup.py b/docs/quick_tutorial/databases/setup.py index 29dede2af..197617282 100644 --- a/docs/quick_tutorial/databases/setup.py +++ b/docs/quick_tutorial/databases/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 = [ 'deform', 'pyramid', @@ -11,18 +13,26 @@ requires = [ 'zope.sqlalchemy', ] -setup(name='tutorial', - install_requires=requires, - extras_require={ - 'test': [ - 'pytest', - 'webtest', - ], - }, - entry_points="""\ - [paste.app_factory] - main = tutorial:main - [console_scripts] - initialize_tutorial_db = tutorial.initialize_db: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' + ], + 'console_scripts': [ + 'initialize_tutorial_db = tutorial.initialize_db: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/databases/setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/quick_tutorial/databases') diff --git a/docs/quick_tutorial/databases/setup.py b/docs/quick_tutorial/databases/setup.py index 197617282..5d6935c57 100644 --- a/docs/quick_tutorial/databases/setup.py +++ b/docs/quick_tutorial/databases/setup.py @@ -6,7 +6,6 @@ requires = [ 'deform', 'pyramid', 'pyramid_chameleon', - 'pyramid_debugtoolbar', 'pyramid_tm', 'sqlalchemy', 'waitress', @@ -16,7 +15,8 @@ requires = [ # 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', ] @@ -25,7 +25,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/databases/setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/quick_tutorial/databases') diff --git a/docs/quick_tutorial/databases/setup.py b/docs/quick_tutorial/databases/setup.py index 5d6935c57..c4e4ae2f2 100644 --- a/docs/quick_tutorial/databases/setup.py +++ b/docs/quick_tutorial/databases/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 = [ 'deform', @@ -12,7 +12,7 @@ requires = [ 'zope.sqlalchemy', ] -# 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