Commit Graph

10944 Commits

Author SHA1 Message Date
Andrew Murray
41a439da7d Added context managers 2021-03-21 14:42:36 +11:00
Piolie
b6f6fba8cf Rewrite _ignore_comment as one-liner 2021-01-31 01:40:43 -03:00
Piolie
b43654d159 Change variable name in _read_magic() 2021-01-31 01:40:43 -03:00
Piolie
39288f0fb0 Create maxval variable 2021-01-31 01:40:32 -03:00
Piolie
50522d932e Change max token size to 10
- ...so as not to reject "2,147,483,647" (2 ** 31 - 1);
- reword exception message.
2021-01-31 01:35:25 -03:00
Piolie
bc5ecfb79c Make minor changes to tests
- add test for maxcolors;
- extend coverage for wrong magic number;
- fix linting.
2021-01-06 14:53:30 -03:00
Piolie
73fed77c0c Suppress exception context 2021-01-06 14:46:30 -03:00
Piolie
002e0bd697 Add tests for token size and wrong magic number 2021-01-06 01:21:35 -03:00
Piolie
5d0ad5e2e9 Revert exception types to ValueError 2021-01-06 01:21:01 -03:00
Piolie
4dbe244e42 Add token limit 2021-01-06 01:07:14 -03:00
Piolie
d2ad27d70a Correctly check magic number 2021-01-05 00:08:15 -03:00
Piolie
699afe1e89 Improve PPM tests 2020-12-21 22:39:32 -03:00
Piolie
6b81e34d67 Improve handling of PPM headers 2020-12-21 22:39:27 -03:00
Hugo van Kemenade
396b329507
Merge pull request #5113 from radarhere/memory
Replaced PyErr_NoMemory with ImagingError_MemoryError
2020-12-20 22:17:10 +02:00
Hugo van Kemenade
19648fa925
Merge pull request #5115 from HollowMan6/patch-1
Fix use of a versus an in ImageCms.rst
2020-12-20 16:47:54 +02:00
Hollow Man
889409ded3
Fix use of a versus an in ImageCms.rst
an color -> a color
2020-12-20 22:31:25 +08:00
Andrew Murray
83d82ae150
Merge pull request #5098 from hugovk/deprecate-freetype
Deprecate FreeType 2.7
2020-12-20 13:35:41 +11:00
Andrew Murray
330384582a
Merge pull request #5112 from jdufresne/pycon
Update some doc code blocks to the 'pycon' lexer
2020-12-20 13:29:41 +11:00
Andrew Murray
b7fb39fff8 Use ImagingError_MemoryError NULL return value 2020-12-20 13:00:16 +11:00
Andrew Murray
75542fea6d Replaced PyErr_NoMemory with ImagingError_MemoryError 2020-12-20 13:00:10 +11:00
Jon Dufresne
5474b2c7d4 Update some doc code blocks to the 'pycon' lexer
These code blocks represent Python console sessions, not Python source
code. The pycon lexer understands the ">>>" prompt and output (e.g. a
traceback).
2020-12-19 17:55:54 -08:00
Andrew Murray
c1707d5d55
Merge pull request #5109 from cgohlke/patch-2
Remove duplicate code
2020-12-20 12:09:08 +11:00
Andrew Murray
00b08c8616
Merge pull request #5110 from jdufresne/isort-url
Update isort URL: timothycrosley/isort → PyCQA/isort
2020-12-20 11:59:20 +11:00
Jon Dufresne
2f48b036ad Update isort URL: timothycrosley/isort → PyCQA/isort 2020-12-19 15:10:47 -08:00
Christoph Gohlke
c1adae6f70
Remove duplicate code 2020-12-19 15:07:51 -08:00
Andrew Murray
c52c3ae3e2
Merge pull request #5102 from hugovk/add-path-tests
Add tests for ImagePath.Path
2020-12-20 07:43:56 +11:00
Andrew Murray
4b15723c7f
Merge pull request #5107 from hugovk/travis-cleanup
Remove unused Travis CI config
2020-12-20 07:43:44 +11:00
Andrew Murray
85c118134d
Merge branch 'master' into travis-cleanup 2020-12-20 07:26:56 +11:00
Andrew Murray
dc74c8ec5f
Merge pull request #5106 from hugovk/fix-reqs
Added packaging
2020-12-20 07:25:24 +11:00
Hugo van Kemenade
924b1496c3 Show example link instead of hiding inside hyperlink
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2020-12-19 21:57:32 +02:00
Andrew Murray
b0af0d4076 Travis CI is no longer used 2020-12-19 21:57:32 +02:00
Andrew Murray
970d2b7c92 GitHub Actions have been added to wheels [ci skip] 2020-12-19 21:57:32 +02:00
Hugo van Kemenade
9e21ef7338 Remove old Travis CI config 2020-12-19 21:57:32 +02:00
Hugo van Kemenade
d3702fd614 Remove unused Travis CI config 2020-12-19 21:57:32 +02:00
Andrew Murray
162fbc679b Added packaging 2020-12-19 21:48:17 +02:00
Hugo van Kemenade
ceaed2e058 Add tests for ImagePath.Path 2020-12-18 22:54:48 +02:00
Hugo van Kemenade
2b319f2ce4 Simplify: remove class 2020-12-18 22:54:40 +02:00
Hugo van Kemenade
4923c4b8c7
Merge pull request #65 from radarhere/deprecate-freetype
Do not require packaging just for a DeprecationWarning
2020-12-18 19:22:47 +02:00
Andrew Murray
043d8dac0b Do not require packaging just for a DeprecationWarning 2020-12-18 23:42:16 +11:00
Andrew Murray
9e3ad5e997
Merge pull request #5088 from nulano/gha-qus-2
Move non-x86 tests to GHA
2020-12-18 17:48:51 +11:00
Andrew Murray
e414eb567a
Merge pull request #5099 from nulano/gha-pypy
GHA: Add PyPy3.7
2020-12-18 15:45:55 +11:00
nulano
5c600adf41 gha: add PyPy3.7 2020-12-17 20:09:13 +01:00
Hugo van Kemenade
cfc45ab9c3 Autolink PEP 2020-12-17 10:29:04 +02:00
Hugo van Kemenade
f0c0a0a1f4 Autolink CVEs with sphinx-issues 2020-12-17 10:29:04 +02:00
Hugo van Kemenade
d093b7141f Update Makefile docs command for Python 3 2020-12-17 10:28:06 +02:00
Hugo van Kemenade
27bf17009c Deprecate FreeType 2.7, to be removed in Pillow 9 (2022-01-02) 2020-12-17 10:28:06 +02:00
Hugo van Kemenade
ff40eaa961
Merge pull request #5091 from nulano/gha-qus-4 2020-12-12 19:54:27 +02:00
nulano
db35e6404e remove FreeType<2.7 metrics in test_imagefont 2020-12-12 15:29:41 +01:00
nulano
903ec9723d move tests for arm64v8, ppc64le, s390x from Travis CI to GHA using Docker and aptman/qus 2020-12-12 15:29:37 +01:00
nulano
a3ab868b0f xfail tests failing on ppc64le on GHA
(cherry picked from commit 9c7fb5bd14c3064fede96131a0f7f67abf26a4e7)
2020-12-12 15:26:42 +01:00