Merge pull request #4845 from hugovk/add-8.0.0-release-notes

Add release notes for 8.0.0 and a template
This commit is contained in:
Andrew Murray 2020-08-15 13:41:44 +10:00 committed by GitHub
commit 945a0e27f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 138 additions and 18 deletions

View File

@ -77,7 +77,7 @@ language = None
# List of patterns, relative to source directory, that match files and # List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files. # directories to ignore when looking for source files.
exclude_patterns = ["_build"] exclude_patterns = ["_build", "releasenotes/template.rst"]
# The reST default role (used for this markup: `text`) to use for all # The reST default role (used for this markup: `text`) to use for all
# documents. # documents.

View File

@ -18,16 +18,16 @@ Image.show command parameter
.. deprecated:: 7.2.0 .. deprecated:: 7.2.0
The ``command`` parameter was deprecated and will be removed in a future release. The ``command`` parameter was deprecated and will be removed in a future release.
Use a subclass of ``ImageShow.Viewer`` instead. Use a subclass of :py:class:`.ImageShow.Viewer` instead.
Image._showxv Image._showxv
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
.. deprecated:: 7.2.0 .. deprecated:: 7.2.0
``Image._showxv`` has been deprecated. Use :py:meth:`~PIL.Image.Image.show` ``Image._showxv`` has been deprecated. Use :py:meth:`.Image.Image.show`
instead. If custom behaviour is required, use :py:meth:`~PIL.ImageShow.register` to add instead. If custom behaviour is required, use :py:func:`.ImageShow.register` to add
a custom :py:class:`~PIL.ImageShow.Viewer` class. a custom :py:class:`.ImageShow.Viewer` class.
ImageFile.raise_ioerror ImageFile.raise_ioerror
~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~
@ -61,7 +61,7 @@ im.offset
.. deprecated:: 1.1.2 .. deprecated:: 1.1.2
.. versionremoved:: 8.0.0 .. versionremoved:: 8.0.0
``im.offset()`` has been removed, call ``ImageChops.offset()`` instead. ``im.offset()`` has been removed, call :py:func:`.ImageChops.offset()` instead.
It was documented as deprecated in PIL 1.1.2, It was documented as deprecated in PIL 1.1.2,
raised a ``DeprecationWarning`` since 1.1.5, raised a ``DeprecationWarning`` since 1.1.5,
@ -88,20 +88,21 @@ ImageCms.CmsProfile attributes
.. deprecated:: 3.2.0 .. deprecated:: 3.2.0
.. versionremoved:: 8.0.0 .. versionremoved:: 8.0.0
Some attributes in ``ImageCms.CmsProfile`` have been removed. From 6.0.0, they issued a Some attributes in :py:class:`PIL.ImageCms.CmsProfile` have been removed. From 6.0.0,
``DeprecationWarning``: they issued a ``DeprecationWarning``:
======================== ===================================================
======================== ===============================
Removed Use instead Removed Use instead
======================== =============================== ======================== ===================================================
``color_space`` Padded ``xcolor_space`` ``color_space`` Padded :py:attr:`~.CmsProfile.xcolor_space`
``pcs`` Padded ``connection_space`` ``pcs`` Padded :py:attr:`~.CmsProfile.connection_space`
``product_copyright`` Unicode ``copyright`` ``product_copyright`` Unicode :py:attr:`~.CmsProfile.copyright`
``product_desc`` Unicode ``profile_description`` ``product_desc`` Unicode :py:attr:`~.CmsProfile.profile_description`
``product_description`` Unicode ``profile_description`` ``product_description`` Unicode :py:attr:`~.CmsProfile.profile_description`
``product_manufacturer`` Unicode ``manufacturer`` ``product_manufacturer`` Unicode :py:attr:`~.CmsProfile.manufacturer`
``product_model`` Unicode ``model`` ``product_model`` Unicode :py:attr:`~.CmsProfile.model`
======================== =============================== ======================== ===================================================
Python 2.7 Python 2.7
~~~~~~~~~~ ~~~~~~~~~~

View File

@ -0,0 +1,73 @@
8.0.0
-----
Backwards Incompatible Changes
==============================
Python 3.5
^^^^^^^^^^
Pillow has dropped support for Python 3.5, which reached end-of-life on 2020-09-13.
im.offset
^^^^^^^^^
``im.offset()`` has been removed, call :py:func:`.ImageChops.offset()` instead.
Image.fromstring, im.fromstring and im.tostring
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
* ``Image.fromstring()`` has been removed, call :py:func:`.Image.frombytes()` instead.
* ``im.fromstring()`` has been removed, call :py:meth:`~PIL.Image.Image.frombytes()` instead.
* ``im.tostring()`` has been removed, call :py:meth:`~PIL.Image.Image.tobytes()` instead.
ImageCms.CmsProfile attributes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Some attributes in :py:class:`PIL.ImageCms.CmsProfile` have been removed:
======================== ===================================================
Removed Use instead
======================== ===================================================
``color_space`` Padded :py:attr:`~.CmsProfile.xcolor_space`
``pcs`` Padded :py:attr:`~.CmsProfile.connection_space`
``product_copyright`` Unicode :py:attr:`~.CmsProfile.copyright`
``product_desc`` Unicode :py:attr:`~.CmsProfile.profile_description`
``product_description`` Unicode :py:attr:`~.CmsProfile.profile_description`
``product_manufacturer`` Unicode :py:attr:`~.CmsProfile.manufacturer`
``product_model`` Unicode :py:attr:`~.CmsProfile.model`
======================== ===================================================
API Changes
===========
Add MIME type to PsdImagePlugin
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
"image/vnd.adobe.photoshop" is now registered as the
:py:class:`.PsdImagePlugin.PsdImageFile` MIME type.
API Additions
=============
ImageOps.autocontrast cutoffs
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Previously, the ``cutoff`` parameter of :py:func:`.ImageOps.autocontrast` could only
be a single number, used as the percent to cut off from the histogram on the low and
high ends.
Now, it can also be a tuple ``(low, high)``.
Security
========
TODO
Other Changes
=============
TODO
^^^^
TODO

View File

@ -13,6 +13,7 @@ expected to be backported to earlier versions.
.. toctree:: .. toctree::
:maxdepth: 2 :maxdepth: 2
8.0.0
7.2.0 7.2.0
7.1.2 7.1.2
7.1.1 7.1.1

View File

@ -0,0 +1,45 @@
x.y.z
-----
Backwards Incompatible Changes
==============================
TODO
^^^^
Deprecations
============
TODO
^^^^
TODO
API Changes
===========
TODO
^^^^
TODO
API Additions
=============
TODO
^^^^
TODO
Security
========
TODO
Other Changes
=============
TODO
^^^^
TODO