From fe0b78b98d3bb744077421edc6aa335f8352601a Mon Sep 17 00:00:00 2001 From: Hugo Date: Thu, 5 Apr 2018 13:52:48 +0300 Subject: [PATCH 1/3] Support Python 3.7 --- .travis.yml | 4 ++-- docs/installation.rst | 6 ++++-- setup.py | 3 ++- tox.ini | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index cc06084a5..9e306d6a6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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" diff --git a/docs/installation.rst b/docs/installation.rst index 0371e517b..86be0218c 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -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 | diff --git a/setup.py b/setup.py index b51de41d0..4d88237f0 100755 --- a/setup.py +++ b/setup.py @@ -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", ], diff --git a/tox.ini b/tox.ini index fdfc5ea56..1226619db 100644 --- a/tox.ini +++ b/tox.ini @@ -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 = From c88659245a18c520a3ca2268ea9060d306803257 Mon Sep 17 00:00:00 2001 From: Hugo Date: Thu, 5 Apr 2018 13:52:58 +0300 Subject: [PATCH 2/3] Add release notes --- docs/releasenotes/5.2.0.rst | 21 +++++++++++++++++++++ docs/releasenotes/index.rst | 1 + 2 files changed, 22 insertions(+) create mode 100644 docs/releasenotes/5.2.0.rst diff --git a/docs/releasenotes/5.2.0.rst b/docs/releasenotes/5.2.0.rst new file mode 100644 index 000000000..bf917ad46 --- /dev/null +++ b/docs/releasenotes/5.2.0.rst @@ -0,0 +1,21 @@ +5.0.0 +----- + +API Additions +============= + +Image.rotate +^^^^^^^^^^^^ + +A new named parameter, ``fillcolor``, has been added to ``Image.rotate``. This +color specifies the background color to use in the area outside the rotated +image. This parameter takes the same color specifications as used in +``Image.new``. + +Other Changes +============= + +Support added for Python 3.7 +^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Pillow 5.2 supports Python 3.7. diff --git a/docs/releasenotes/index.rst b/docs/releasenotes/index.rst index ab7b09785..16e5c1d85 100644 --- a/docs/releasenotes/index.rst +++ b/docs/releasenotes/index.rst @@ -6,6 +6,7 @@ Release Notes .. toctree:: :maxdepth: 2 + 5.2.0 5.1.0 5.0.0 4.3.0 From 8753c10b7a8d2461224b33e336b4df9dc222b689 Mon Sep 17 00:00:00 2001 From: Hugo Date: Fri, 6 Apr 2018 23:57:25 +0300 Subject: [PATCH 3/3] Update version --- docs/releasenotes/5.2.0.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/releasenotes/5.2.0.rst b/docs/releasenotes/5.2.0.rst index bf917ad46..073daaf03 100644 --- a/docs/releasenotes/5.2.0.rst +++ b/docs/releasenotes/5.2.0.rst @@ -1,4 +1,4 @@ -5.0.0 +5.2.0 ----- API Additions