Skip to content

Commit c043f97

Browse files
committed
Merge branch 'main' into makedoc
2 parents e129ec8 + 53b6e5f commit c043f97

File tree

10 files changed

+23
-26
lines changed

10 files changed

+23
-26
lines changed

.github/workflows/test-docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
MATRIX_DOCKER: ${{ matrix.docker }}
8080

8181
- name: Upload coverage
82-
uses: codecov/codecov-action@v1
82+
uses: codecov/codecov-action@v3
8383
with:
8484
flags: GHA_Docker
8585
name: ${{ matrix.docker }}

.github/workflows/test-mingw.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ jobs:
7373
python3 -m pytest -vx --cov PIL --cov Tests --cov-report term --cov-report xml Tests
7474
7575
- name: Upload coverage
76-
run: |
77-
python3 -m pip install codecov
78-
bash <(curl -s https://codecov.io/bash) -F GHA_Windows
79-
env:
80-
CODECOV_NAME: ${{ matrix.name }}
76+
uses: codecov/codecov-action@v3
77+
with:
78+
file: ./coverage.xml
79+
flags: GHA_Windows
80+
name: ${{ matrix.name }}
8181

8282
success:
8383
permissions:

.github/workflows/test-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ jobs:
171171
shell: pwsh
172172

173173
- name: Upload coverage
174-
uses: codecov/codecov-action@v1
174+
uses: codecov/codecov-action@v3
175175
with:
176176
file: ./coverage.xml
177177
flags: GHA_Windows

.github/workflows/test.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ jobs:
3030
REVERSE: "--reverse"
3131
- python-version: "3.8"
3232
PYTHONOPTIMIZE: 2
33-
# Include new variables for Codecov
34-
- os: ubuntu-latest
35-
codecov-flag: GHA_Ubuntu
36-
- os: macos-latest
37-
codecov-flag: GHA_macOS
3833

3934
runs-on: ${{ matrix.os }}
4035
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
@@ -106,9 +101,11 @@ jobs:
106101
.ci/after_success.sh
107102
108103
- name: Upload coverage
109-
run: bash <(curl -s https://codecov.io/bash) -F ${{ matrix.codecov-flag }}
110-
env:
111-
CODECOV_NAME: ${{ matrix.os }} Python ${{ matrix.python-version }}
104+
uses: codecov/codecov-action@v3
105+
with:
106+
file: ./coverage.xml
107+
flags: ${{ matrix.os == 'macos-latest' && 'GHA_macOS' || 'GHA_Ubuntu' }}
108+
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
112109

113110
success:
114111
permissions:

docs/deprecations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ Support for FreeType 2.7 has been removed.
253253
We recommend upgrading to at least `FreeType`_ 2.10.4, which fixed a severe
254254
vulnerability introduced in FreeType 2.6 (:cve:`CVE-2020-15999`).
255255

256-
.. _FreeType: https://www.freetype.org
256+
.. _FreeType: https://freetype.org/
257257

258258
im.offset
259259
~~~~~~~~~

docs/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ Many of Pillow's features require external libraries:
184184
loads libfribidi at runtime if it is installed.
185185
On Windows this requires compiling FriBiDi and installing ``fribidi.dll``
186186
into a directory listed in the `Dynamic-Link Library Search Order (Microsoft Docs)
187-
<https://docs.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order#search-order-for-desktop-applications>`_
187+
<https://learn.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order#search-order-for-desktop-applications>`_
188188
(``fribidi-0.dll`` or ``libfribidi-0.dll`` are also detected).
189189
See `Build Options`_ to see how to build this version.
190190
* Previous versions of Pillow (5.0.0 to 8.1.2) linked libraqm dynamically at runtime.

docs/reference/ImageDraw.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,4 +731,4 @@ Methods
731731
homogeneous, but similar, colors.
732732

733733
.. _BCP 47 language code: https://www.w3.org/International/articles/language-tags/
734-
.. _OpenType docs: https://docs.microsoft.com/en-us/typography/opentype/spec/featurelist
734+
.. _OpenType docs: https://learn.microsoft.com/en-us/typography/opentype/spec/featurelist

src/PIL/ImageFont.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ def getlength(self, text, mode="", direction=None, features=None, language=None)
338338
example '-liga' to disable ligatures or '-kern'
339339
to disable kerning. To get all supported
340340
features, see
341-
https://docs.microsoft.com/en-us/typography/opentype/spec/featurelist
341+
https://learn.microsoft.com/en-us/typography/opentype/spec/featurelist
342342
Requires libraqm.
343343
344344
:param language: Language of the text. Different languages may use
@@ -391,7 +391,7 @@ def getbbox(
391391
example '-liga' to disable ligatures or '-kern'
392392
to disable kerning. To get all supported
393393
features, see
394-
https://docs.microsoft.com/en-us/typography/opentype/spec/featurelist
394+
https://learn.microsoft.com/en-us/typography/opentype/spec/featurelist
395395
Requires libraqm.
396396
397397
:param language: Language of the text. Different languages may use
@@ -456,7 +456,7 @@ def getsize(
456456
example '-liga' to disable ligatures or '-kern'
457457
to disable kerning. To get all supported
458458
features, see
459-
https://docs.microsoft.com/en-us/typography/opentype/spec/featurelist
459+
https://learn.microsoft.com/en-us/typography/opentype/spec/featurelist
460460
Requires libraqm.
461461
462462
.. versionadded:: 4.2.0
@@ -520,7 +520,7 @@ def getsize_multiline(
520520
example '-liga' to disable ligatures or '-kern'
521521
to disable kerning. To get all supported
522522
features, see
523-
https://docs.microsoft.com/en-us/typography/opentype/spec/featurelist
523+
https://learn.microsoft.com/en-us/typography/opentype/spec/featurelist
524524
Requires libraqm.
525525
526526
:param language: Language of the text. Different languages may use
@@ -610,7 +610,7 @@ def getmask(
610610
example '-liga' to disable ligatures or '-kern'
611611
to disable kerning. To get all supported
612612
features, see
613-
https://docs.microsoft.com/en-us/typography/opentype/spec/featurelist
613+
https://learn.microsoft.com/en-us/typography/opentype/spec/featurelist
614614
Requires libraqm.
615615
616616
.. versionadded:: 4.2.0
@@ -702,7 +702,7 @@ def getmask2(
702702
example '-liga' to disable ligatures or '-kern'
703703
to disable kerning. To get all supported
704704
features, see
705-
https://docs.microsoft.com/en-us/typography/opentype/spec/featurelist
705+
https://learn.microsoft.com/en-us/typography/opentype/spec/featurelist
706706
Requires libraqm.
707707
708708
.. versionadded:: 4.2.0

src/libImaging/TiffDecode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*
2525
* This cast is safe, as the top 32-bits of HFILE are guaranteed to be zero,
2626
* see
27-
* https://docs.microsoft.com/en-us/windows/win32/winprog64/interprocess-communication
27+
* https://learn.microsoft.com/en-us/windows/win32/winprog64/interprocess-communication
2828
*/
2929
#ifndef USE_WIN32_FILEIO
3030
#define fd_to_tiff_fd(fd) (fd)

src/thirdparty/raqm/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,5 @@ The following projects have patches to support complex text layout using Raqm:
8181
[1]: https://github.com/fribidi/fribidi
8282
[2]: https://github.com/Tehreer/SheenBidi
8383
[3]: https://github.com/harfbuzz/harfbuzz
84-
[4]: https://www.freetype.org
84+
[4]: https://freetype.org/
8585
[5]: https://www.gtk.org/gtk-doc

0 commit comments

Comments
 (0)