Steve Piercy
2018-08-22 943fc924ef5864d04ec4b8eb6c94761763976ae6
Merge pull request #3333 from stevepiercy/python-version-bump

Add support for Python 3.7 and 3.8 with allowed failure of 3.8
13 files modified
47 ■■■■■ changed files
.travis.yml 8 ●●●● patch | view | raw | blame | history
CHANGES.rst 3 ●●●●● patch | view | raw | blame | history
HACKING.txt 4 ●●●● patch | view | raw | blame | history
RELEASING.txt 4 ●●●● patch | view | raw | blame | history
appveyor.yml 2 ●●●●● patch | view | raw | blame | history
docs/narr/install.rst 2 ●●● patch | view | raw | blame | history
docs/quick_tour.rst 2 ●●● patch | view | raw | blame | history
docs/quick_tutorial/requirements.rst 6 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki/installation.rst 2 ●●● patch | view | raw | blame | history
docs/tutorials/wiki2/installation.rst 2 ●●● patch | view | raw | blame | history
scaffoldtests.sh 2 ●●● patch | view | raw | blame | history
setup.py 1 ●●●● patch | view | raw | blame | history
tox.ini 9 ●●●● patch | view | raw | blame | history
.travis.yml
@@ -22,10 +22,14 @@
          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
CHANGES.rst
@@ -54,6 +54,9 @@
  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
---------
HACKING.txt
@@ -114,7 +114,7 @@
  (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.
@@ -211,7 +211,7 @@
  Alternatively:
    $ tox -e{py27,py34,py35,pypy}-scaffolds
    $ tox -e{py27,py34,py35,pyt36,py37,pypy}-scaffolds
Test Coverage
RELEASING.txt
@@ -33,8 +33,8 @@
- 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
appveyor.yml
@@ -1,5 +1,7 @@
environment:
  matrix:
    - PYTHON: "C:\\Python37"
      TOXENV: "py37"
    - PYTHON: "C:\\Python36"
      TOXENV: "py36"
    - PYTHON: "C:\\Python35"
docs/narr/install.rst
@@ -22,7 +22,7 @@
.. 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
docs/quick_tour.rst
@@ -26,7 +26,7 @@
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::
docs/quick_tutorial/requirements.rst
@@ -19,11 +19,11 @@
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.
docs/tutorials/wiki/installation.rst
@@ -111,7 +111,7 @@
    c:\Python27\Scripts\virtualenv %VENV%
Python 3.6:
Python 3.7:
.. code-block:: doscon
docs/tutorials/wiki2/installation.rst
@@ -123,7 +123,7 @@
    c:\Python27\Scripts\virtualenv %VENV%
Python 3.6:
Python 3.7:
.. code-block:: doscon
scaffoldtests.sh
@@ -1,2 +1,2 @@
#!/bin/bash
tox -e{py27,py34,py35,pypy}-scaffolds,
tox -e{py27,py34,py35,py36,py37,pypy}-scaffolds,
setup.py
@@ -68,6 +68,7 @@
          "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.ini
@@ -1,7 +1,7 @@
[tox]
envlist =
    lint,
    py27,py34,py35,py36,pypy,pypy3,
    py27,py34,py35,py36,py37,py38,pypy,pypy3,
    docs,{py2,py3}-cover,coverage,
[testenv]
@@ -13,6 +13,7 @@
    py35: python3.5
    py36: python3.6
    py37: python3.7
    py38: python3.8
    pypy: pypy
    pypy3: pypy3
    py2: python2.7
@@ -48,6 +49,12 @@
    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 =