diff options
Diffstat (limited to 'docs/quick_tutorial/databases/setup.py')
| -rw-r--r-- | docs/quick_tutorial/databases/setup.py | 40 |
1 files changed, 25 insertions, 15 deletions
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' + ], + }, +) |
