Merge pull request #3333 from stevepiercy/python-version-bump
Add support for Python 3.7 and 3.8 with allowed failure of 3.8
| | |
| | | env: TOXENV=docs |
| | | - python: 3.5 |
| | | env: TOXENV=lint |
| | | - python: nightly |
| | | - python: 3.7 |
| | | env: TOXENV=py37 |
| | | dist: xenial |
| | | sudo: true |
| | | - python: nightly |
| | | env: TOXENV=py38 |
| | | allow_failures: |
| | | - env: TOXENV=py37 |
| | | - env: TOXENV=py38 |
| | | |
| | | install: |
| | | - travis_retry pip install tox |
| | |
| | | available within the user-defined ``setup`` function. |
| | | See https://github.com/Pylons/pyramid/pull/3318 |
| | | |
| | | - Add support for Python 3.7. Add testing on Python 3.8 with allowed failures. |
| | | See https://github.com/Pylons/pyramid/pull/3333 |
| | | |
| | | Bug Fixes |
| | | --------- |
| | | |
| | |
| | | (in ``docs/``). |
| | | |
| | | - The feature must work fully on the following CPython versions: 2.7, 3.4, 3.5, |
| | | and 3.6 on both UNIX and Windows. |
| | | 3.6, and 3.7 on both UNIX and Windows. |
| | | |
| | | - The feature must work on the latest version of PyPy. |
| | | |
| | |
| | | |
| | | Alternatively: |
| | | |
| | | $ tox -e{py27,py34,py35,pypy}-scaffolds |
| | | $ tox -e{py27,py34,py35,pyt36,py37,pypy}-scaffolds |
| | | |
| | | |
| | | Test Coverage |
| | |
| | | |
| | | - Run tests on Windows if feasible. |
| | | |
| | | - 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): |
| | | - Make sure all scaffold tests pass (CPython 2.7, 3.4, 3.5, 3.6, and 3.7, and |
| | | PyPy on UNIX; this doesn't work on Windows): |
| | | |
| | | $ ./scaffoldtests.sh |
| | | |
| | |
| | | environment: |
| | | matrix: |
| | | - PYTHON: "C:\\Python37" |
| | | TOXENV: "py37" |
| | | - PYTHON: "C:\\Python36" |
| | | TOXENV: "py36" |
| | | - PYTHON: "C:\\Python35" |
| | |
| | | .. sidebar:: Python Versions |
| | | |
| | | As of this writing, :app:`Pyramid` is tested against Python 2.7, |
| | | Python 3.4, Python 3.5, Python 3.6, and PyPy. |
| | | Python 3.4, Python 3.5, Python 3.6, Python 3.7, and PyPy. |
| | | |
| | | :app:`Pyramid` is known to run on all popular Unix-like systems such as Linux, |
| | | macOS, and FreeBSD, as well as on Windows platforms. It is also known to |
| | |
| | | scripts, and packages installed in our virtual environment, we'll set an |
| | | environment variable, too. |
| | | |
| | | As an example, for Python 3.6+ on Linux: |
| | | As an example, for Python 3 on Linux: |
| | | |
| | | .. parsed-literal:: |
| | | |
| | |
| | | |
| | | This *Quick Tutorial* is based on: |
| | | |
| | | * **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. |
| | | * **Python 3.7**. Pyramid fully supports Python 3.4+ and Python 2.7+. This |
| | | tutorial uses **Python 3.7** but runs fine under Python 2.7. |
| | | |
| | | * **venv**. We believe in virtual environments. For this tutorial, we use |
| | | Python 3.6's built-in solution :term:`venv`. For Python 2.7, you can install |
| | | Python 3's built-in solution :term:`venv`. For Python 2.7, you can install |
| | | :term:`virtualenv`. |
| | | |
| | | * **pip**. We use :term:`pip` for package management. |
| | |
| | | |
| | | c:\Python27\Scripts\virtualenv %VENV% |
| | | |
| | | Python 3.6: |
| | | Python 3.7: |
| | | |
| | | .. code-block:: doscon |
| | | |
| | |
| | | |
| | | c:\Python27\Scripts\virtualenv %VENV% |
| | | |
| | | Python 3.6: |
| | | Python 3.7: |
| | | |
| | | .. code-block:: doscon |
| | | |
| | |
| | | #!/bin/bash |
| | | tox -e{py27,py34,py35,pypy}-scaffolds, |
| | | tox -e{py27,py34,py35,py36,py37,pypy}-scaffolds, |
| | |
| | | "Programming Language :: Python :: 3.4", |
| | | "Programming Language :: Python :: 3.5", |
| | | "Programming Language :: Python :: 3.6", |
| | | "Programming Language :: Python :: 3.7", |
| | | "Programming Language :: Python :: Implementation :: CPython", |
| | | "Programming Language :: Python :: Implementation :: PyPy", |
| | | "Framework :: Pyramid", |
| | |
| | | [tox] |
| | | envlist = |
| | | lint, |
| | | py27,py34,py35,py36,pypy,pypy3, |
| | | py27,py34,py35,py36,py37,py38,pypy,pypy3, |
| | | docs,{py2,py3}-cover,coverage, |
| | | |
| | | [testenv] |
| | |
| | | py35: python3.5 |
| | | py36: python3.6 |
| | | py37: python3.7 |
| | | py38: python3.8 |
| | | pypy: pypy |
| | | pypy3: pypy3 |
| | | py2: python2.7 |
| | |
| | | python pyramid/scaffolds/tests.py |
| | | deps = virtualenv |
| | | |
| | | [testenv:py37-scaffolds] |
| | | basepython = python3.7 |
| | | commands = |
| | | python pyramid/scaffolds/tests.py |
| | | deps = virtualenv |
| | | |
| | | [testenv:pypy-scaffolds] |
| | | basepython = pypy |
| | | commands = |