Merge pull request #2840 from stevepiercy/master
add 3.6 support to documentation
| | |
| | | Features |
| | | -------- |
| | | |
| | | - Python 3.6 compatibility. |
| | | https://github.com/Pylons/pyramid/issues/2835 |
| | | |
| | | - pcreate learned about --package-name to allow you to create a new project in |
| | | an existing folder with a different package name than the project name. See |
| | | https://github.com/Pylons/pyramid/pull/2783 |
| | |
| | | - The feature must be documented in both the API and narrative documentation |
| | | (in ``docs/``). |
| | | |
| | | - The feature must work fully on the following CPython versions: 2.7, 3.4, |
| | | and 3.5 on both UNIX and Windows. |
| | | - The feature must work fully on the following CPython versions: 2.7, 3.4, 3.5, |
| | | and 3.6 on both UNIX and Windows. |
| | | |
| | | - The feature must work on the latest version of PyPy. |
| | | |
| | |
| | | |
| | | - Run tests on Windows if feasible. |
| | | |
| | | - Make sure all scaffold tests pass (CPython 2.7, 3.4, and 3.5, and PyPy on |
| | | UNIX; this doesn't work on Windows): |
| | | - Make sure all scaffold tests pass (CPython 2.7, 3.4, 3.5, and 3.6, and PyPy |
| | | on UNIX; this doesn't work on Windows): |
| | | |
| | | $ ./scaffoldtests.sh |
| | | |
| | |
| | | .. sidebar:: Python Versions |
| | | |
| | | As of this writing, :app:`Pyramid` is tested against Python 2.7, |
| | | Python 3.4, Python 3.5, PyPy. |
| | | Python 3.4, Python 3.5, Python 3.6, and PyPy. |
| | | |
| | | :app:`Pyramid` is known to run on all popular UNIX-like systems such as Linux, |
| | | Mac OS X, and FreeBSD, as well as on Windows platforms. It is also known to |
| | |
| | | tests, as measured by the ``coverage`` tool available on PyPI. It also has |
| | | greater than 95% decision/condition coverage as measured by the |
| | | ``instrumental`` tool available on PyPI. It is automatically tested by Travis, |
| | | and Jenkins on Python 2.7, Python 3.4, Python 3.5, and PyPy |
| | | and Jenkins on Python 2.7, Python 3.4, Python 3.5, Python 3.6, and PyPy |
| | | after each commit to its GitHub repository. Official Pyramid add-ons are held |
| | | to a similar testing standard. We still find bugs in Pyramid and its official |
| | | add-ons, but we've noticed we find a lot more of them while working on other |
| | |
| | | scripts, and packages installed in our virtual environment, we'll set an |
| | | environment variable, too. |
| | | |
| | | As an example, for Python 3.5+ on Linux: |
| | | As an example, for Python 3.6+ on Linux: |
| | | |
| | | .. parsed-literal:: |
| | | |
| | |
| | | collected 1 items |
| | | |
| | | hello_world/tests.py . |
| | | ------------- coverage: platform darwin, python 3.5.0-final-0 ------------- |
| | | ------------- coverage: platform darwin, python 3.6.0-final-0 ------------- |
| | | Name Stmts Miss Cover Missing |
| | | -------------------------------------------------------- |
| | | hello_world/__init__.py 11 8 27% 11-23 |
| | |
| | | |
| | | This *Quick Tutorial* is based on: |
| | | |
| | | * **Python 3.5**. Pyramid fully supports Python 3.4+ and Python 2.7+. This |
| | | tutorial uses **Python 3.5** but runs fine under Python 2.7. |
| | | * **Python 3.6**. Pyramid fully supports Python 3.4+ and Python 2.7+. This |
| | | tutorial uses **Python 3.6** but runs fine under Python 2.7. |
| | | |
| | | * **venv**. We believe in virtual environments. For this tutorial, we use |
| | | Python 3.5's built-in solution :term:`venv`. For Python 2.7, you can install |
| | | Python 3.6's built-in solution :term:`venv`. For Python 2.7, you can install |
| | | :term:`virtualenv`. |
| | | |
| | | * **pip**. We use :term:`pip` for package management. |
| | |
| | | |
| | | c:\> c:\Python27\Scripts\virtualenv %VENV% |
| | | |
| | | Python 3.5: |
| | | Python 3.6: |
| | | |
| | | .. code-block:: doscon |
| | | |
| | |
| | | .. code-block:: bash |
| | | |
| | | ======================== test session starts ======================== |
| | | platform Python 3.5.1, pytest-2.9.1, py-1.4.31, pluggy-0.3.1 |
| | | platform Python 3.6.0, pytest-2.9.1, py-1.4.31, pluggy-0.3.1 |
| | | rootdir: /Users/stevepiercy/projects/pyramidtut/tutorial, inifile: |
| | | plugins: cov-2.2.1 |
| | | collected 1 items |
| | | |
| | | tutorial/tests.py . |
| | | ------------------ coverage: platform Python 3.5.1 ------------------ |
| | | ------------------ coverage: platform Python 3.6.0 ------------------ |
| | | Name Stmts Miss Cover Missing |
| | | ---------------------------------------------------- |
| | | tutorial/__init__.py 12 7 42% 7-8, 14-18 |
| | |
| | | |
| | | c:\> c:\Python27\Scripts\virtualenv %VENV% |
| | | |
| | | Python 3.5: |
| | | Python 3.6: |
| | | |
| | | .. code-block:: doscon |
| | | |
| | |
| | | .. code-block:: bash |
| | | |
| | | ======================== test session starts ======================== |
| | | platform Python 3.5.1, pytest-2.9.1, py-1.4.31, pluggy-0.3.1 |
| | | platform Python 3.6.0, pytest-2.9.1, py-1.4.31, pluggy-0.3.1 |
| | | rootdir: /Users/stevepiercy/projects/pyramidtut/tutorial, inifile: |
| | | plugins: cov-2.2.1 |
| | | collected 2 items |
| | | |
| | | tutorial/tests.py .. |
| | | ------------------ coverage: platform Python 3.5.1 ------------------ |
| | | ------------------ coverage: platform Python 3.6.0 ------------------ |
| | | Name Stmts Miss Cover Missing |
| | | ---------------------------------------------------------------- |
| | | tutorial/__init__.py 8 6 25% 7-12 |
| | |
| | | "Programming Language :: Python :: 3", |
| | | "Programming Language :: Python :: 3.4", |
| | | "Programming Language :: Python :: 3.5", |
| | | "Programming Language :: Python :: 3.6", |
| | | "Programming Language :: Python :: Implementation :: CPython", |
| | | "Programming Language :: Python :: Implementation :: PyPy", |
| | | "Framework :: Pyramid", |