Skip to content

Commit

Permalink
Merge pull request #7505 from hugovk/docs-pypi-role
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Oct 30, 2023
2 parents 8d08122 + ac6eb84 commit 9d61896
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ def setup(app):
"cwe": ("https://cwe.mitre.org/data/definitions/%s.html", "CWE-%s"),
"issue": (_repo + "issues/%s", "#%s"),
"pr": (_repo + "pull/%s", "#%s"),
"pypi": ("https://pypi.org/project/%s/", "%s"),
}

# sphinxext.opengraph
Expand Down
2 changes: 1 addition & 1 deletion docs/deprecations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,6 @@ PIL.OleFileIO
.. versionremoved:: 6.0.0

PIL.OleFileIO was removed as a vendored file in Pillow 4.0.0 (2017-01) in favour of
the upstream olefile Python package, and replaced with an ``ImportError`` in 5.0.0
the upstream :pypi:`olefile` Python package, and replaced with an ``ImportError`` in 5.0.0
(2018-01). The deprecated file has now been removed from Pillow. If needed, install from
PyPI (eg. ``python3 -m pip install olefile``).
4 changes: 2 additions & 2 deletions docs/handbook/image-file-formats.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1296,7 +1296,7 @@ Pillow reads Kodak FlashPix files. In the current version, only the highest
resolution image is read from the file, and the viewing transform is not taken
into account.

To enable FPX support, you must install olefile.
To enable FPX support, you must install :pypi:`olefile`.

.. note::

Expand Down Expand Up @@ -1374,7 +1374,7 @@ the first sprite in the file is loaded. You can use :py:meth:`~PIL.Image.Image.s

Note that there may be an embedded gamma of 2.2 in MIC files.

To enable MIC support, you must install olefile.
To enable MIC support, you must install :pypi:`olefile`.

MPO
^^^
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/ImageFont.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ this class store bitmap fonts, and are used with the

PIL uses its own font file format to store bitmap fonts, limited to 256 characters. You can use
`pilfont.py <https://github.com/python-pillow/pillow-scripts/blob/main/Scripts/pilfont.py>`_
from `pillow-scripts <https://pypi.org/project/pillow-scripts/>`_ to convert BDF and
from :pypi:`pillow-scripts` to convert BDF and
PCF font descriptors (X window font formats) to this format.

Starting with version 1.1.4, PIL can be configured to support TrueType and
Expand Down
4 changes: 2 additions & 2 deletions docs/releasenotes/4.0.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ Pillow 4.0 supports Python 3.6.
OleFileIO.py
============

OleFileIO.py has been removed as a vendored file and is now installed
from the upstream olefile pypi package. All internal dependencies are
``OleFileIO.py`` has been removed as a vendored file and is now installed
from the upstream :pypi:`olefile` PyPI package. All internal dependencies are
redirected to the olefile package. Direct accesses to
``PIL.OlefileIO`` raises a deprecation warning, then patches the
upstream olefile into ``sys.modules`` in its place.
Expand Down
4 changes: 2 additions & 2 deletions docs/releasenotes/5.0.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Scripts

The scripts formerly installed by Pillow have been split into a
separate package, pillow-scripts, living at
https://github.com/python-pillow/pillow-scripts .
https://github.com/python-pillow/pillow-scripts.


API Changes
Expand All @@ -37,7 +37,7 @@ API Changes
OleFileIO.py
^^^^^^^^^^^^

The olefile module is no longer a required dependency when installing Pillow.
The :pypi:`olefile` module is no longer a required dependency when installing Pillow.
Support for plugins requiring olefile will not be loaded if it is not
installed. This allows library consumers to avoid installing this dependency
if they choose. Some library consumers have little interest in the format
Expand Down
4 changes: 2 additions & 2 deletions docs/releasenotes/6.0.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Pillow for Python 3.4 is 5.4.1.
Removed deprecated PIL.OleFileIO
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

PIL.OleFileIO was removed as a vendored file and in Pillow 4.0.0 (2017-01) in favour of
the upstream olefile Python package, and replaced with an ``ImportError``. The
``PIL.OleFileIO`` was removed as a vendored file and in Pillow 4.0.0 (2017-01) in favour of
the upstream :pypi:`olefile` Python package, and replaced with an :py:exc:`ImportError`. The
deprecated file has now been removed from Pillow. If needed, install from PyPI (eg.
``python3 -m pip install olefile``).

Expand Down

0 comments on commit 9d61896

Please sign in to comment.