Support Python 3.7

This commit is contained in:
Hugo 2018-04-05 13:52:48 +03:00
parent b33f1a4477
commit fe0b78b98d
4 changed files with 9 additions and 6 deletions

View File

@ -13,12 +13,12 @@ matrix:
include:
- python: "pypy"
- python: "pypy3"
- python: '3.6'
- python: '3.7-dev'
- python: '2.7'
- python: "2.7_with_system_site_packages" # For PyQt4
- python: '3.6'
- python: '3.5'
- python: '3.4'
- python: '3.7-dev'
- env: DOCKER="alpine" DOCKER_TAG="pytest"
- env: DOCKER="arch" DOCKER_TAG="pytest" # contains PyQt5
- env: DOCKER="ubuntu-trusty-x86" DOCKER_TAG="pytest"

View File

@ -19,7 +19,9 @@ Notes
.. note:: Pillow >= 4.0.0 < 5.0.0 supports Python versions 2.7, 3.3, 3.4, 3.5, 3.6
.. note:: Pillow >= 5.0.0 supports Python versions 2.7, 3.4, 3.5, 3.6
.. note:: Pillow >= 5.0.0 < 5.2.0 supports Python versions 2.7, 3.4, 3.5, 3.6
.. note:: Pillow >= 5.2.0 supports Python versions 2.7, 3.4, 3.5, 3.6, 3.7
Basic Installation
------------------
@ -392,7 +394,7 @@ These platforms are built and tested for every change.
+----------------------------------+-------------------------------+-----------------------+
| Ubuntu Linux 16.04 LTS | 2.7 |x86-64 |
+----------------------------------+-------------------------------+-----------------------+
| Ubuntu Linux 14.04 LTS | 2.7, 3.4, 3.5, 3.6, |x86-64 |
| Ubuntu Linux 14.04 LTS | 2.7, 3.4, 3.5, 3.6, 3.7, |x86-64 |
| | pypy, pypy3 | |
| +-------------------------------+-----------------------+
| | 2.7 |x86 |

View File

@ -26,7 +26,7 @@ from setuptools import Extension, setup
import mp_compile
if sys.platform == "win32" and sys.version_info >= (3, 7):
if sys.platform == "win32" and sys.version_info >= (3, 8):
warnings.warn(
"Pillow does not yet support Python {}.{} and does not yet provide "
"prebuilt Windows binaries. We do not recommend building from "
@ -778,6 +778,7 @@ try:
"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",
],

View File

@ -4,7 +4,7 @@
# and then run "tox" from this directory.
[tox]
envlist = py27, py34, py35, py36
envlist = py27, py34, py35, py36, py37
[testenv]
commands =