Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional dependencies for Pillow/Wand #130

Merged
merged 1 commit into from
Oct 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,20 @@ Installing underlying libraries
-------------------------------

In order for most features of Willow to work, you need to install either Pillow
or Wand.
or Wand. You can follow the installation instructions for each of them:

- `Pillow installation <https://pillow.readthedocs.io/en/stable/installation.html#basic-installation>`_
- `Wand installation <https://docs.wand-py.org/en/stable/guide/install.html>`_

or you can install them together with Willow when using ``pip``:

.. code-block:: shell

pip install Willow[Pillow]
# or
pip install Willow[Wand]


Note that Pillow doesn't support animated GIFs and Wand isn't as fast.
Installing both will give best results.

Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ dependencies = [
]

[project.optional-dependencies]
pillow = ["Pillow>=9.1.0,<11.0.0"]
wand = ["Wand>=0.6,<1.0"]
heif = [
"pillow-heif>=0.10.0,<1.0.0; python_version < '3.12'",
"pillow-heif>=0.13.0,<1.0.0; python_version >= '3.12'",
]

testing = [
"Pillow>=9.1.0,<11.0.0",
"Wand>=0.6,<1.0",
"mock>=3.0,<4.0",
"pillow-heif>=0.10.0,<1.0.0",
"willow[pillow,wand,heif]",
"black==22.3.0",
"ruff==0.0.275",
"coverage[toml]>=7.2.7,<8.0",
Expand Down