Skip to content

Commit 43b1559

Browse files
authored
Merge branch 'main' into fix-qtables-and-quality-scaling
2 parents 6f45852 + 58e4874 commit 43b1559

File tree

112 files changed

+385
-715
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+385
-715
lines changed

.github/workflows/wheels-dependencies.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ ARCHIVE_SDIR=pillow-depends-main
3838

3939
# Package versions for fresh source builds
4040
FREETYPE_VERSION=2.13.3
41-
HARFBUZZ_VERSION=11.0.1
41+
HARFBUZZ_VERSION=11.1.0
4242
LIBPNG_VERSION=1.6.47
4343
JPEGTURBO_VERSION=3.1.0
4444
OPENJPEG_VERSION=2.5.3
@@ -92,7 +92,7 @@ function build_harfbuzz {
9292

9393
local out_dir=$(fetch_unpack https://github.com/harfbuzz/harfbuzz/releases/download/$HARFBUZZ_VERSION/harfbuzz-$HARFBUZZ_VERSION.tar.xz harfbuzz-$HARFBUZZ_VERSION.tar.xz)
9494
(cd $out_dir \
95-
&& meson setup build --prefix=$BUILD_PREFIX --libdir=$BUILD_PREFIX/lib --buildtype=release -Dfreetype=enabled -Dglib=disabled -Dtests=disabled)
95+
&& meson setup build --prefix=$BUILD_PREFIX --libdir=$BUILD_PREFIX/lib --buildtype=minsize -Dfreetype=enabled -Dglib=disabled -Dtests=disabled)
9696
(cd $out_dir/build \
9797
&& meson install)
9898
touch harfbuzz-stamp

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ doc html:
2323
htmlview:
2424
$(MAKE) -C docs htmlview
2525

26+
.PHONY: htmllive
27+
htmllive:
28+
$(MAKE) -C docs htmllive
29+
2630
.PHONY: doccheck
2731
doccheck:
2832
$(MAKE) doc
@@ -43,6 +47,7 @@ help:
4347
@echo " docserve run an HTTP server on the docs directory"
4448
@echo " html make HTML docs"
4549
@echo " htmlview open the index page built by the html target in your browser"
50+
@echo " htmllive rebuild and reload HTML files in your browser"
4651
@echo " install make and install"
4752
@echo " install-coverage make and install with C coverage"
4853
@echo " lint run the lint checks"

Tests/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Pillow Tests
1+
Pillow tests
22
============
33

44
Test scripts are named ``test_xxx.py``. Helper classes and functions can be found in ``helper.py``.

Tests/test_imagegrab.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def test_grab_no_xcb(self) -> None:
4343
if (
4444
sys.platform not in ("win32", "darwin")
4545
and not shutil.which("gnome-screenshot")
46+
and not shutil.which("grim")
4647
and not shutil.which("spectacle")
4748
):
4849
with pytest.raises(OSError) as e:

docs/Guardfile

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/Makefile

Lines changed: 5 additions & 139 deletions
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,11 @@ help:
2020
@echo "Please use \`make <target>' where <target> is one of"
2121
@echo " html to make standalone HTML files"
2222
@echo " htmlview to open the index page built by the html target in your browser"
23+
@echo " htmllive to rebuild and reload HTML files in your browser"
2324
@echo " serve to start a local server for viewing docs"
24-
@echo " livehtml to start a local server for viewing docs and auto-reload on change"
2525
@echo " dirhtml to make HTML files named index.html in directories"
2626
@echo " singlehtml to make a single large HTML file"
27-
@echo " pickle to make pickle files"
28-
@echo " json to make JSON files"
29-
@echo " htmlhelp to make HTML files and a HTML help project"
30-
@echo " qthelp to make HTML files and a qthelp project"
31-
@echo " devhelp to make HTML files and a Devhelp project"
32-
@echo " epub to make an epub"
33-
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
34-
@echo " latexpdf to make LaTeX files and run them through pdflatex"
35-
@echo " text to make text files"
36-
@echo " man to make manual pages"
37-
@echo " texinfo to make Texinfo files"
38-
@echo " info to make Texinfo files and run them through makeinfo"
39-
@echo " gettext to make PO message catalogs"
40-
@echo " changes to make an overview of all changed/added/deprecated items"
4127
@echo " linkcheck to check all external links for integrity"
42-
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
4328

4429
.PHONY: clean
4530
clean:
@@ -69,119 +54,6 @@ singlehtml:
6954
@echo
7055
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
7156

72-
.PHONY: pickle
73-
pickle:
74-
$(MAKE) install-sphinx
75-
$(SPHINXBUILD) --builder pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
76-
@echo
77-
@echo "Build finished; now you can process the pickle files."
78-
79-
.PHONY: json
80-
json:
81-
$(MAKE) install-sphinx
82-
$(SPHINXBUILD) --builder json $(ALLSPHINXOPTS) $(BUILDDIR)/json
83-
@echo
84-
@echo "Build finished; now you can process the JSON files."
85-
86-
.PHONY: htmlhelp
87-
htmlhelp:
88-
$(MAKE) install-sphinx
89-
$(SPHINXBUILD) --builder htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
90-
@echo
91-
@echo "Build finished; now you can run HTML Help Workshop with the" \
92-
".hhp project file in $(BUILDDIR)/htmlhelp."
93-
94-
.PHONY: qthelp
95-
qthelp:
96-
$(MAKE) install-sphinx
97-
$(SPHINXBUILD) --builder qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
98-
@echo
99-
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
100-
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
101-
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/PillowPILfork.qhcp"
102-
@echo "To view the help file:"
103-
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/PillowPILfork.qhc"
104-
105-
.PHONY: devhelp
106-
devhelp:
107-
$(MAKE) install-sphinx
108-
$(SPHINXBUILD) --builder devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
109-
@echo
110-
@echo "Build finished."
111-
@echo "To view the help file:"
112-
@echo "# mkdir -p $$HOME/.local/share/devhelp/PillowPILfork"
113-
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/PillowPILfork"
114-
@echo "# devhelp"
115-
116-
.PHONY: epub
117-
epub:
118-
$(MAKE) install-sphinx
119-
$(SPHINXBUILD) --builder epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
120-
@echo
121-
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
122-
123-
.PHONY: latex
124-
latex:
125-
$(MAKE) install-sphinx
126-
$(SPHINXBUILD) --builder latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
127-
@echo
128-
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
129-
@echo "Run \`make' in that directory to run these through (pdf)latex" \
130-
"(use \`make latexpdf' here to do that automatically)."
131-
132-
.PHONY: latexpdf
133-
latexpdf:
134-
$(MAKE) install-sphinx
135-
$(SPHINXBUILD) --builder latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
136-
@echo "Running LaTeX files through pdflatex..."
137-
$(MAKE) -C $(BUILDDIR)/latex all-pdf
138-
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
139-
140-
.PHONY: text
141-
text:
142-
$(MAKE) install-sphinx
143-
$(SPHINXBUILD) --builder text $(ALLSPHINXOPTS) $(BUILDDIR)/text
144-
@echo
145-
@echo "Build finished. The text files are in $(BUILDDIR)/text."
146-
147-
.PHONY: man
148-
man:
149-
$(MAKE) install-sphinx
150-
$(SPHINXBUILD) --builder man $(ALLSPHINXOPTS) $(BUILDDIR)/man
151-
@echo
152-
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
153-
154-
.PHONY: texinfo
155-
texinfo:
156-
$(MAKE) install-sphinx
157-
$(SPHINXBUILD) --builder texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
158-
@echo
159-
@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
160-
@echo "Run \`make' in that directory to run these through makeinfo" \
161-
"(use \`make info' here to do that automatically)."
162-
163-
.PHONY: info
164-
info:
165-
$(MAKE) install-sphinx
166-
$(SPHINXBUILD) --builder texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
167-
@echo "Running Texinfo files through makeinfo..."
168-
make -C $(BUILDDIR)/texinfo info
169-
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
170-
171-
.PHONY: gettext
172-
gettext:
173-
$(MAKE) install-sphinx
174-
$(SPHINXBUILD) --builder gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
175-
@echo
176-
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
177-
178-
.PHONY: changes
179-
changes:
180-
$(MAKE) install-sphinx
181-
$(SPHINXBUILD) --builder changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
182-
@echo
183-
@echo "The overview file is in $(BUILDDIR)/changes."
184-
18557
.PHONY: linkcheck
18658
linkcheck:
18759
$(MAKE) install-sphinx
@@ -190,20 +62,14 @@ linkcheck:
19062
@echo "Link check complete; look for any errors in the above output " \
19163
"or in $(BUILDDIR)/linkcheck/output.txt."
19264

193-
.PHONY: doctest
194-
doctest:
195-
$(MAKE) install-sphinx
196-
$(SPHINXBUILD) --builder doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
197-
@echo "Testing of doctests in the sources finished, look at the " \
198-
"results in $(BUILDDIR)/doctest/output.txt."
199-
20065
.PHONY: htmlview
20166
htmlview: html
20267
$(PYTHON) -c "import os, webbrowser; webbrowser.open('file://' + os.path.realpath('$(BUILDDIR)/html/index.html'))"
20368

204-
.PHONY: livehtml
205-
livehtml: html
206-
livereload $(BUILDDIR)/html -p 33233
69+
.PHONY: htmllive
70+
htmllive: SPHINXBUILD = $(PYTHON) -m sphinx_autobuild
71+
htmllive: SPHINXOPTS = --open-browser --delay 0
72+
htmllive: html
20773

20874
.PHONY: serve
20975
serve:

docs/PIL.rst

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,66 @@
1-
PIL Package (autodoc of remaining modules)
1+
PIL package (autodoc of remaining modules)
22
==========================================
33

44
Reference for modules whose documentation has not yet been ported or written
55
can be found here.
66

7-
:mod:`PIL` Module
7+
:mod:`PIL` module
88
-----------------
99

1010
.. py:module:: PIL
1111
1212
.. autoexception:: UnidentifiedImageError
1313
:show-inheritance:
1414

15-
:mod:`~PIL.BdfFontFile` Module
15+
:mod:`~PIL.BdfFontFile` module
1616
------------------------------
1717

1818
.. automodule:: PIL.BdfFontFile
1919
:members:
2020
:undoc-members:
2121
:show-inheritance:
2222

23-
:mod:`~PIL.ContainerIO` Module
23+
:mod:`~PIL.ContainerIO` module
2424
------------------------------
2525

2626
.. automodule:: PIL.ContainerIO
2727
:members:
2828
:undoc-members:
2929
:show-inheritance:
3030

31-
:mod:`~PIL.FontFile` Module
31+
:mod:`~PIL.FontFile` module
3232
---------------------------
3333

3434
.. automodule:: PIL.FontFile
3535
:members:
3636
:undoc-members:
3737
:show-inheritance:
3838

39-
:mod:`~PIL.GdImageFile` Module
39+
:mod:`~PIL.GdImageFile` module
4040
------------------------------
4141

4242
.. automodule:: PIL.GdImageFile
4343
:members:
4444
:undoc-members:
4545
:show-inheritance:
4646

47-
:mod:`~PIL.GimpGradientFile` Module
47+
:mod:`~PIL.GimpGradientFile` module
4848
-----------------------------------
4949

5050
.. automodule:: PIL.GimpGradientFile
5151
:members:
5252
:undoc-members:
5353
:show-inheritance:
5454

55-
:mod:`~PIL.GimpPaletteFile` Module
55+
:mod:`~PIL.GimpPaletteFile` module
5656
----------------------------------
5757

5858
.. automodule:: PIL.GimpPaletteFile
5959
:members:
6060
:undoc-members:
6161
:show-inheritance:
6262

63-
:mod:`~PIL.ImageDraw2` Module
63+
:mod:`~PIL.ImageDraw2` module
6464
-----------------------------
6565

6666
.. automodule:: PIL.ImageDraw2
@@ -69,31 +69,31 @@ can be found here.
6969
:undoc-members:
7070
:show-inheritance:
7171

72-
:mod:`~PIL.ImageMode` Module
72+
:mod:`~PIL.ImageMode` module
7373
----------------------------
7474

7575
.. automodule:: PIL.ImageMode
7676
:members:
7777
:undoc-members:
7878
:show-inheritance:
7979

80-
:mod:`~PIL.PaletteFile` Module
80+
:mod:`~PIL.PaletteFile` module
8181
------------------------------
8282

8383
.. automodule:: PIL.PaletteFile
8484
:members:
8585
:undoc-members:
8686
:show-inheritance:
8787

88-
:mod:`~PIL.PcfFontFile` Module
88+
:mod:`~PIL.PcfFontFile` module
8989
------------------------------
9090

9191
.. automodule:: PIL.PcfFontFile
9292
:members:
9393
:undoc-members:
9494
:show-inheritance:
9595

96-
:class:`.PngImagePlugin.iTXt` Class
96+
:class:`.PngImagePlugin.iTXt` class
9797
-----------------------------------
9898

9999
.. autoclass:: PIL.PngImagePlugin.iTXt
@@ -107,7 +107,7 @@ can be found here.
107107
:param lang: language code
108108
:param tkey: UTF-8 version of the key name
109109

110-
:class:`.PngImagePlugin.PngInfo` Class
110+
:class:`.PngImagePlugin.PngInfo` class
111111
--------------------------------------
112112

113113
.. autoclass:: PIL.PngImagePlugin.PngInfo
@@ -116,15 +116,15 @@ can be found here.
116116
:show-inheritance:
117117

118118

119-
:mod:`~PIL.TarIO` Module
119+
:mod:`~PIL.TarIO` module
120120
------------------------
121121

122122
.. automodule:: PIL.TarIO
123123
:members:
124124
:undoc-members:
125125
:show-inheritance:
126126

127-
:mod:`~PIL.WalImageFile` Module
127+
:mod:`~PIL.WalImageFile` module
128128
-------------------------------
129129

130130
.. automodule:: PIL.WalImageFile

0 commit comments

Comments
 (0)