Skip to content

Commit

Permalink
Document requirements.txt -> extras_require in release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Feb 24, 2022
1 parent 7566f8c commit c55d5d2
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions docs/releasenotes/9.1.0.rst
Expand Up @@ -18,8 +18,31 @@ Rather than returning a ``SystemError``, passing the incorrect types of coordina
a path will now raise a more specific ``ValueError``, with the message "incorrect
coordinate type".

Replace requirements.txt with extras
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Rather than installing all dependencies for docs and tests via ``requirements.txt``,
``extras_require`` is used instead. This installs only those needed and at the same
time as installing Pillow.

For example:

.. code-block:: bash
# Install with dependencies for tests:
python3 -m pip install .[tests]
# Or for building docs:
python3 -m pip install .[docs]
# Or for all:
python3 -m pip install .[docs,tests]
Therefore ``requirements.txt`` has been removed along with the ``make install-req``
command for installing its contents.

Deprecations
^^^^^^^^^^^^
============

Constants
~~~~~~~~~
Expand Down Expand Up @@ -87,7 +110,7 @@ Deprecated Use instead
===================================================== ============================================================

ImageShow.Viewer.show_file file argument
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The ``file`` argument in :py:meth:`~PIL.ImageShow.Viewer.show_file()` has been
deprecated and will be removed in Pillow 10.0.0 (2023-07-01). It has been replaced by
Expand Down

0 comments on commit c55d5d2

Please sign in to comment.