summaryrefslogtreecommitdiff
path: root/docs/quick_tutorial
diff options
context:
space:
mode:
Diffstat (limited to 'docs/quick_tutorial')
-rw-r--r--docs/quick_tutorial/authentication/setup.py35
-rw-r--r--docs/quick_tutorial/authorization/setup.py35
-rw-r--r--docs/quick_tutorial/databases/setup.py40
-rw-r--r--docs/quick_tutorial/debugtoolbar/setup.py18
-rw-r--r--docs/quick_tutorial/forms/setup.py35
-rw-r--r--docs/quick_tutorial/functional_testing/setup.py35
-rw-r--r--docs/quick_tutorial/ini/setup.py18
-rw-r--r--docs/quick_tutorial/jinja2/setup.py35
-rw-r--r--docs/quick_tutorial/json/setup.py35
-rw-r--r--docs/quick_tutorial/logging/setup.py35
-rw-r--r--docs/quick_tutorial/more_view_classes/setup.py35
-rw-r--r--docs/quick_tutorial/package/setup.py9
-rw-r--r--docs/quick_tutorial/request_response/setup.py35
-rw-r--r--docs/quick_tutorial/retail_forms/setup.py16
-rw-r--r--docs/quick_tutorial/routing/setup.py35
-rw-r--r--docs/quick_tutorial/sessions/setup.py35
-rw-r--r--docs/quick_tutorial/static_assets/setup.py35
-rw-r--r--docs/quick_tutorial/templating/setup.py35
-rw-r--r--docs/quick_tutorial/unit_testing/setup.py33
-rw-r--r--docs/quick_tutorial/view_classes/setup.py35
-rw-r--r--docs/quick_tutorial/views/setup.py35
21 files changed, 414 insertions, 245 deletions
diff --git a/docs/quick_tutorial/authentication/setup.py b/docs/quick_tutorial/authentication/setup.py
index 05104b158..b38be63a3 100644
--- a/docs/quick_tutorial/authentication/setup.py
+++ b/docs/quick_tutorial/authentication/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 = [
'bcrypt',
'pyramid',
@@ -8,16 +10,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'
+ ],
+ },
+)
diff --git a/docs/quick_tutorial/authorization/setup.py b/docs/quick_tutorial/authorization/setup.py
index 05104b158..b38be63a3 100644
--- a/docs/quick_tutorial/authorization/setup.py
+++ b/docs/quick_tutorial/authorization/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 = [
'bcrypt',
'pyramid',
@@ -8,16 +10,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'
+ ],
+ },
+)
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'
+ ],
+ },
+)
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'
+ ],
+ },
+)
diff --git a/docs/quick_tutorial/forms/setup.py b/docs/quick_tutorial/forms/setup.py
index e911d5bb8..f3e80f25e 100644
--- a/docs/quick_tutorial/forms/setup.py
+++ b/docs/quick_tutorial/forms/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',
@@ -8,16 +10,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'
+ ],
+ },
+)
diff --git a/docs/quick_tutorial/functional_testing/setup.py b/docs/quick_tutorial/functional_testing/setup.py
index c0d3dee8f..68a522ad7 100644
--- a/docs/quick_tutorial/functional_testing/setup.py
+++ b/docs/quick_tutorial/functional_testing/setup.py
@@ -1,21 +1,30 @@
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,
- 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'
+ ],
+ },
+)
diff --git a/docs/quick_tutorial/ini/setup.py b/docs/quick_tutorial/ini/setup.py
index 7a2677ebd..1ecf9c4ff 100644
--- a/docs/quick_tutorial/ini/setup.py
+++ b/docs/quick_tutorial/ini/setup.py
@@ -1,14 +1,18 @@
from setuptools import setup
+# List of dependencies installed via `pip install -e .`.
+# by virtue of the Setuptools `install_requires` value below.
requires = [
'pyramid',
'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'
+ ],
+ },
+)
diff --git a/docs/quick_tutorial/jinja2/setup.py b/docs/quick_tutorial/jinja2/setup.py
index 86f177866..6edd2ab39 100644
--- a/docs/quick_tutorial/jinja2/setup.py
+++ b/docs/quick_tutorial/jinja2/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',
@@ -8,16 +10,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'
+ ],
+ },
+)
diff --git a/docs/quick_tutorial/json/setup.py b/docs/quick_tutorial/json/setup.py
index 3ad7f004e..a84fe79ee 100644
--- a/docs/quick_tutorial/json/setup.py
+++ b/docs/quick_tutorial/json/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'
+ ],
+ },
+)
diff --git a/docs/quick_tutorial/logging/setup.py b/docs/quick_tutorial/logging/setup.py
index 3ad7f004e..a84fe79ee 100644
--- a/docs/quick_tutorial/logging/setup.py
+++ b/docs/quick_tutorial/logging/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'
+ ],
+ },
+)
diff --git a/docs/quick_tutorial/more_view_classes/setup.py b/docs/quick_tutorial/more_view_classes/setup.py
index 3ad7f004e..a84fe79ee 100644
--- a/docs/quick_tutorial/more_view_classes/setup.py
+++ b/docs/quick_tutorial/more_view_classes/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'
+ ],
+ },
+)
diff --git a/docs/quick_tutorial/package/setup.py b/docs/quick_tutorial/package/setup.py
index a59527bf4..9667d24bd 100644
--- a/docs/quick_tutorial/package/setup.py
+++ b/docs/quick_tutorial/package/setup.py
@@ -1,10 +1,13 @@
from setuptools import setup
+# List of dependencies installed via `pip install -e .`.
+# by virtue of the Setuptools `install_requires` value below.
requires = [
'pyramid',
'waitress',
]
-setup(name='tutorial',
- install_requires=requires,
- )
+setup(
+ name='tutorial',
+ install_requires=requires,
+)
diff --git a/docs/quick_tutorial/request_response/setup.py b/docs/quick_tutorial/request_response/setup.py
index 3ad7f004e..a84fe79ee 100644
--- a/docs/quick_tutorial/request_response/setup.py
+++ b/docs/quick_tutorial/request_response/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'
+ ],
+ },
+)
diff --git a/docs/quick_tutorial/retail_forms/setup.py b/docs/quick_tutorial/retail_forms/setup.py
index 968889e74..46c10728a 100644
--- a/docs/quick_tutorial/retail_forms/setup.py
+++ b/docs/quick_tutorial/retail_forms/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',
@@ -7,10 +9,12 @@ requires = [
'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'
+ ],
+ },
)
diff --git a/docs/quick_tutorial/routing/setup.py b/docs/quick_tutorial/routing/setup.py
index 3ad7f004e..a84fe79ee 100644
--- a/docs/quick_tutorial/routing/setup.py
+++ b/docs/quick_tutorial/routing/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'
+ ],
+ },
+)
diff --git a/docs/quick_tutorial/sessions/setup.py b/docs/quick_tutorial/sessions/setup.py
index 3ad7f004e..a84fe79ee 100644
--- a/docs/quick_tutorial/sessions/setup.py
+++ b/docs/quick_tutorial/sessions/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'
+ ],
+ },
+)
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'
+ ],
+ },
+)
diff --git a/docs/quick_tutorial/templating/setup.py b/docs/quick_tutorial/templating/setup.py
index 3ad7f004e..a84fe79ee 100644
--- a/docs/quick_tutorial/templating/setup.py
+++ b/docs/quick_tutorial/templating/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'
+ ],
+ },
+)
diff --git a/docs/quick_tutorial/unit_testing/setup.py b/docs/quick_tutorial/unit_testing/setup.py
index 617c806aa..34c750843 100644
--- a/docs/quick_tutorial/unit_testing/setup.py
+++ b/docs/quick_tutorial/unit_testing/setup.py
@@ -1,20 +1,29 @@
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,
- extras_require={
- 'test': [
- 'pytest',
- ],
- },
- 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',
+]
+
+setup(
+ name='tutorial',
+ install_requires=requires,
+ extras_require={
+ 'testing': tests_require,
+ },
+ entry_points={
+ 'paste.app_factory': [
+ 'main = tutorial:main'
+ ],
+ },
+)
diff --git a/docs/quick_tutorial/view_classes/setup.py b/docs/quick_tutorial/view_classes/setup.py
index 3ad7f004e..a84fe79ee 100644
--- a/docs/quick_tutorial/view_classes/setup.py
+++ b/docs/quick_tutorial/view_classes/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'
+ ],
+ },
+)
diff --git a/docs/quick_tutorial/views/setup.py b/docs/quick_tutorial/views/setup.py
index c0d3dee8f..68a522ad7 100644
--- a/docs/quick_tutorial/views/setup.py
+++ b/docs/quick_tutorial/views/setup.py
@@ -1,21 +1,30 @@
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,
- 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'
+ ],
+ },
+)