Commit Graph

19200 Commits

Author SHA1 Message Date
Andrew Murray
19010bb301
Use match
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-02-17 21:49:08 +11:00
Andrew Murray
017b16b803
Removed argument
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-02-17 21:48:09 +11:00
Andrew Murray
152d982644 Test missing subfile 2025-02-17 20:20:45 +11:00
Andrew Murray
9762c9e30e Test unexpected end of tar file 2025-02-17 20:20:02 +11:00
Hugo van Kemenade
8a3c4f5965
Merge pull request #8757 from mgorny/pycapi-compat-pypy311 2025-02-16 21:23:43 +02:00
Michał Górny
0fbe1860c4 Update pythoncapi_compat.h to fix building with PyPy3.11
Update `pythoncapi_compat.h` to upstream commit
c84545f0e1e21757d4901f75c47333d25a3fcff0, which includes fixes necessary
for Pillow to build against PyPy3.11.  Otherwise, it fails due to
duplicate declarations:

```
      In file included from src/encode.c:28:
      src/thirdparty/pythoncapi_compat.h:295:1: error: static declaration of ‘PyThreadState_GetInterpreter’ follows non-static declaration
        295 | PyThreadState_GetInterpreter(PyThreadState *tstate)
            | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      In file included from /usr/include/pypy3.11/Python.h:80,
                       from src/encode.c:26:
      /usr/include/pypy3.11/pystate.h:35:33: note: previous declaration of ‘PyThreadState_GetInterpreter’ with type ‘PyInterpreterState *(PyThreadState *)’ {aka ‘struct _is *(struct _ts *)’}
         35 | PyAPI_FUNC(PyInterpreterState*) PyThreadState_GetInterpreter(PyThreadState *tstate);
            |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
2025-02-16 16:32:24 +01:00
Andrew Murray
0364cfdfc4
Merge pull request #8754 from hugovk/update-tox
Don't call `make clean` or `pip` in tox
2025-02-16 06:23:57 +11:00
mergify[bot]
fed5d85cd6
Merge pull request #8756 from radarhere/open
Don't shadow builtin open
2025-02-15 18:40:09 +00:00
Andrew Murray
7f414846a3 Don't shadow builtin open 2025-02-16 05:08:22 +11:00
Andrew Murray
1650425283
Merge pull request #8673 from freakboy3742/zlib-ng-with-sip
Rewrite the install_name of the ZLIB-NG library on macOS
2025-02-16 05:00:36 +11:00
Andrew Murray
f8566b90eb
Merge pull request #8755 from hugovk/rm-_wedge
Remove debug `Image._wedge`
2025-02-16 04:54:27 +11:00
Andrew Murray
397e6f2710
Merge pull request #8753 from hugovk/rm-unused
Remove unused `bdf_slant` and `bdf_spacing` variables
2025-02-16 04:24:13 +11:00
Hugo van Kemenade
126026e5e5 Don't shadow builtin open 2025-02-15 16:35:07 +02:00
Hugo van Kemenade
028f0d6ea9 Remove unused data read 2025-02-15 16:35:07 +02:00
Hugo van Kemenade
ff960b8841 Remove debug Image._wedge 2025-02-15 16:35:07 +02:00
Hugo van Kemenade
8261348fff Don't call pip in tox 2025-02-15 14:27:52 +02:00
Hugo van Kemenade
1c18d29c34 Remove unused bdf_slant and bdf_spacing variables 2025-02-15 13:26:06 +02:00
Hugo van Kemenade
c4eb2fe597
Merge pull request #8752 from radarhere/mingw_test 2025-02-15 13:00:20 +02:00
Andrew Murray
9f0398ef32 Removed unused code 2025-02-15 21:07:43 +11:00
Hugo van Kemenade
ede46d47fc
Merge pull request #8745 from radarhere/zlibng 2025-02-14 23:59:06 +02:00
Hugo van Kemenade
9b2ea830e0
Merge pull request #8744 from radarhere/imagequant 2025-02-14 23:54:19 +02:00
Hugo van Kemenade
ad231352a8
Merge pull request #8747 from radarhere/monkeypatch
Use monkeypatch
2025-02-13 20:03:00 +02:00
Andrew Murray
8020d423bc Use monkeypatch 2025-02-12 18:36:14 +11:00
Andrew Murray
45d8d80567 Updated zlib-ng to 2.2.4 2025-02-11 11:36:55 +11:00
Andrew Murray
c566a81c64 Updated libimagequant to 4.3.4 2025-02-10 21:47:37 +11:00
Hugo van Kemenade
3c2310e090
Merge pull request #8739 from radarhere/boolean 2025-02-09 16:05:54 +02:00
Hugo van Kemenade
c81f2f5014
Merge pull request #8740 from radarhere/tuple 2025-02-09 16:05:29 +02:00
Andrew Murray
b59dea60a6 Simplify Python code by receiving tuple from C 2025-02-08 21:07:25 +11:00
Andrew Murray
166d0b94d9 Use boolean format argument for irreversible 2025-02-08 21:00:54 +11:00
Andrew Murray
56a72a3da4
Merge branch 'main' into zlib-ng-with-sip 2025-02-08 16:31:36 +11:00
Hugo van Kemenade
b57b4e5f2c
Merge pull request #8735 from radarhere/affine 2025-02-06 13:26:24 +02:00
Hugo van Kemenade
a788ab31ca
Merge pull request #8734 from radarhere/module 2025-02-06 13:25:54 +02:00
Hugo van Kemenade
f55a0900f4
Merge pull request #8724 from radarhere/mingw_libimagequant 2025-02-06 13:25:03 +02:00
Hugo van Kemenade
c73796dc1e
Merge pull request #8733 from radarhere/tuple 2025-02-06 13:19:29 +02:00
Hugo van Kemenade
dd2bb392e6
Merge pull request #8732 from radarhere/unused_parse 2025-02-06 13:18:34 +02:00
Hugo van Kemenade
a7524a34b2
Merge pull request #8727 from radarhere/getpixel 2025-02-06 13:17:26 +02:00
Andrew Murray
41861e8e9f Updated AffineTransform docstring to mention it uses the inverse matrix 2025-02-06 19:26:49 +11:00
Andrew Murray
7924b6a11f Use member names to initialize modules 2025-02-05 20:20:57 +11:00
Andrew Murray
a37702dd8a Removed unused format character 2025-02-05 19:12:54 +11:00
Andrew Murray
b19506a499 Simplify Python code by passing tuples to C 2025-02-05 19:12:50 +11:00
Andrew Murray
a7d7a1080e Removed redundant argument parsing 2025-02-05 18:42:35 +11:00
Andrew Murray
2810d7c6ba
Merge pull request #8721 from radarhere/justify
Added "justify" align for multiline text
2025-02-04 20:10:39 +11:00
Andrew Murray
92eb11eb09
Merge pull request #8729 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2025-02-04 07:19:15 +11:00
Andrew Murray
00790e925d
Updated comment 2025-02-04 06:49:46 +11:00
pre-commit-ci[bot]
955d678ca2 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-02-03 17:36:01 +00:00
pre-commit-ci[bot]
90d2506074
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.6...v0.9.4)
- [github.com/psf/black-pre-commit-mirror: 24.10.0 → 25.1.0](https://github.com/psf/black-pre-commit-mirror/compare/24.10.0...25.1.0)
- [github.com/PyCQA/bandit: 1.8.0 → 1.8.2](https://github.com/PyCQA/bandit/compare/1.8.0...1.8.2)
- [github.com/pre-commit/mirrors-clang-format: v19.1.6 → v19.1.7](https://github.com/pre-commit/mirrors-clang-format/compare/v19.1.6...v19.1.7)
- [github.com/python-jsonschema/check-jsonschema: 0.30.0 → 0.31.1](https://github.com/python-jsonschema/check-jsonschema/compare/0.30.0...0.31.1)
- [github.com/woodruffw/zizmor-pre-commit: v1.0.0 → v1.3.0](https://github.com/woodruffw/zizmor-pre-commit/compare/v1.0.0...v1.3.0)
- [github.com/tox-dev/tox-ini-fmt: 1.4.1 → 1.5.0](https://github.com/tox-dev/tox-ini-fmt/compare/1.4.1...1.5.0)
2025-02-03 17:35:25 +00:00
Andrew Murray
ce1996d804 Use getpixel() instead of load() 2025-02-03 19:32:59 +11:00
Hugo van Kemenade
4d1f874096
Merge pull request #8725 from radarhere/macos 2025-02-01 12:23:49 +02:00
Andrew Murray
347a3865bf Revert "Ignore brew dependencies for libraqm on macOS 13"
This reverts commit dfd53564ff.
2025-02-01 12:21:15 +11:00
Andrew Murray
69c9572517 Added ImageDraw link 2025-02-01 10:54:18 +11:00