Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jan 2020 09:41:09 +0000
From:      bugzilla-noreply@freebsd.org
To:        python@FreeBSD.org
Subject:   [Bug 243665] graphics/py-pillow: Update to 7.0.0
Message-ID:  <bug-243665-21822-Vy8DxSbGdr@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-243665-21822@https.bugs.freebsd.org/bugzilla/>
References:  <bug-243665-21822@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243665

Kai Knoblich <kai@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Open

--- Comment #1 from Kai Knoblich <kai@FreeBSD.org> ---
Results of "make test" for each Python flavor:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

With py37, py38:

> =3D=3D=3D=3D 1298 passed, 129 skipped in 32.14 seconds =3D=3D=3D=3D
> =3D=3D=3D=3D 1298 passed, 129 skipped in 31.40 seconds =3D=3D=3D=3D

With py35:

> =3D=3D=3D=3D 1296 passed, 131 skipped in 40.62 seconds =3D=3D=3D=3D

With py36:

> =3D=3D=3D=3D 1297 passed, 130 skipped in 33.41 seconds =3D=3D=3D=3D

Version requirements in setup.py, etc.:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Except two ports no consumer has pinned requirements for graphics/py-pillow.
The two exceptions are:

- net-mgmt/netbox: OK, patched out in Makefile
- www/py-wagtail: OK, defined in Makefile and setup.py as "<7.0".


More thorough QA results regarding the backwards incompatible changes that =
were
introduced in the 7.0.0 release (see also the release notes in the URL field
for further detail):


Removal of the PILLOW_VERSION constant:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- graphics/impressive: OK, still uses Python 2.7 only and already has
compatible code to cope with different Pillow versions.
- graphics/py-blockdiag: OK, still uses Python 2.7 only. No compatible code=
 for
newer Pillow versions.
- graphics/py-mcomix: OK, still uses Python 2.7 only. No compatible code for
newer Pillow versions.
- graphics/sk1: OK, still uses Python 2.7 only. No compatible code for newer
Pillow versions.
- print/hplib: OK, already patched out in r503333 as preparation for the 6.0
release of graphics/py-pillow.
- x11/xpra: OK, still uses Python 2.7 only and already has compatible code =
to
cope with different Pillow versions.

Conclusion: OK, as all those consumers (except print/hplib maybe, as it alr=
eady
runs with Python 3) will get graphics/py-pillow6 as a dependency and should
work as usual.

Removal of the *ImagePlugin.__version__ constants:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- OK, no port makes use of these constants.


Removal of PyQt4 and PySide code:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- OK, not relevant as Qt4 and PySide are already gone from the Ports tree.


Removal of setting the image size for TIFF images by "im.size(x, y):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- graphics/py-imageio: OK, uses "im.size =3D ( ... )" only in documentation
context in "imageio/plugins/pillow_info.py".
- graphics/py-imageio24: OK, uses "im.size =3D ( ... )" only in documentati=
on
context in "imageio/plugins/pillow_info.py".
- net-p2p/deluge-cli: OK, uses Python 2.7 only and "im.size =3D ( ... )" is=
 used
for ICO files. In this context using "im.size =3D ( ... )" is allowed as it
selects a subimage.


Changed return value of "Image.draft()":
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- graphics/py-mcomix: OK, uses Python 2.7 only.
- graphics/py-sane: OK, uses Python 2.7 only.

Conclusion: OK, as all those consumers will get graphics/py-pillow6 as a
dependency and should work as usual.


Default resampling filter:
~~~~~~~~~~~~~~~~~~~~~~~~~~
The default resampling filter was changed from "IMAGE.NEAREST" to
"IMAGE.BICUBIC" for the "fit()", "pad()", "resize()" and "scale()" function=
s.
Those functions are used by several consumers for image
processing/manipulation.

Conclusion: Should be OK, but we should keep in mind that the changes of the
above mentioned functions will have definitely a small impact on the Pillow
consumers. A bit more CPU cycles than usual are then required for image
processing but yields in better image results/quality.=20

If there are problems once Pillow has been updated to 7.0.0 we can still as=
sign
the problematic consumers (if any) to Pillow 6.2.2 and bump PORTREVISION.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-243665-21822-Vy8DxSbGdr>