Commit Graph

9887 Commits

Author SHA1 Message Date
Andrew Murray
11023afd56 Updated macOS CI target [ci skip] 2020-02-07 19:01:00 +11:00
Andrew Murray
124e30e432
Merge pull request #4397 from hugovk/speedup-linkcheck
Docs: Speed up linkcheck by checking in parallel
2020-02-06 21:06:41 +11:00
Hugo van Kemenade
4aa582a155
Merge pull request #4408 from radarhere/tutorial
Grammar fix
2020-02-06 11:34:56 +02:00
Andrew Murray
db970acfa5 Grammar fix [ci skip] 2020-02-06 20:10:34 +11:00
Andrew Murray
50ce9bac55 Pillow no longer supports Python 2 [ci skip] 2020-02-05 21:06:09 +11:00
Alexey Moiseitsev
4437a81968 Avoid undefined signed overflow 2020-02-03 14:13:16 +03:00
Hugo
38bf862185 Replace PillowTestCase.assert_warning with pytest.warns 2020-02-03 11:11:32 +02:00
Hugo
63881ab198 Declare helper as a pytest plugin so asserts aren't ignored with PYTHONOPTIMIZE 2020-02-02 12:26:01 +02:00
Hugo
a4bf9fa036 Convert most PillowTestCase methods to pytest 2020-02-02 12:26:01 +02:00
Andrew Murray
32bfbca3c8 Updated CHANGES.rst [ci skip] 2020-02-01 09:29:38 +11:00
Andrew Murray
edb09d8726
Merge pull request #4398 from alexagv/add-more-ExifIFD
Add support for more ExifIFD tags
2020-02-01 09:27:29 +11:00
Alex
767f39fc75
Add support for more ExifIFD tags
Added support for:  "AmbientTemperature", "Humidity", "Pressure", "WaterDepth", "Acceleration" and "CameraElevationAngle"
2020-01-30 12:51:03 +01:00
Hugo
2dfcfbfaa0 Speed up linkcheck by checking in parallel with 'cpu-count' processes 2020-01-29 17:11:59 +02:00
Hugo van Kemenade
29d36c9260
Merge pull request #4388 from jdufresne/str-bytes-shim
Remove leftover Python 2 compatibility shim
2020-01-29 14:41:59 +02:00
Hugo van Kemenade
52ea75a510
Merge pull request #4393 from jdufresne/pytest-runner
Remove deprecated pytest-runner support
2020-01-29 12:59:27 +02:00
Hugo van Kemenade
4773875568
Merge pull request #4387 from hugovk/rm-azure-pipelines
Remove Azure Pipelines in favour of GitHub Actions
2020-01-29 12:58:31 +02:00
Hugo van Kemenade
f6e067b3b4
Merge pull request #4391 from radarhere/pytest
Convert various tests to pytest style
2020-01-28 18:22:11 +02:00
Andrew Murray
f615884982 Updated CHANGES.rst [ci skip] 2020-01-28 20:02:39 +11:00
Andrew Murray
eeb2588fe2
Corrected skip condition
Co-Authored-By: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-01-28 19:59:41 +11:00
Jon Dufresne
e1ccc296f2 Remove deprecated pytest-runner support
The pytest-runner package is deprecated and its use is discouraged. See:

https://github.com/pytest-dev/pytest-runner/

> pytest-runner depends on deprecated features of setuptools and relies
> on features that break security mechanisms in pip. For example
> 'setup_requires' and 'tests_require' bypass pip --require-hashes. See
> also https://github.com/pypa/setuptools/issues/1684.
>
> It is recommended that you:
>
> - Remove 'pytest-runner' from your 'setup_requires', preferably
>   removing the setup_requires option.
> - Remove 'pytest' and any other testing requirements from
>   'tests_require', preferably removing the setup_requires option.
> - Select a tool to bootstrap and then run tests such as tox

Running tests should go through the tox entrypoint.
2020-01-27 08:23:34 -08:00
Hugo van Kemenade
659f73d0be
Merge pull request #4389 from jdufresne/make-bytes
Remove unnecessary make_bytes() function
2020-01-27 15:55:14 +02:00
Alexander Karpinsky
5965437402
Merge pull request #4370 from uploadcare/jpeg-multiple-app13
Handle multiple and malformed JPEG APP13 markers
2020-01-27 15:46:36 +03:00
Alexander Karpinsky
fd03a68c1a
Update comment
Co-Authored-By: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2020-01-27 15:18:02 +03:00
Andrew Murray
7fd9663198 Convert various tests to pytest style 2020-01-27 22:46:52 +11:00
Andrew Murray
0bbee693e0 Updated CHANGES.rst [ci skip] 2020-01-27 14:34:45 +11:00
Andrew Murray
1671f6bd71 Show all warnings 2020-01-26 17:48:28 -08:00
Jon Dufresne
2b84221edf Fix ResourceWarning emitted during tests
Appeared in the form:

    ResourceWarning: unclosed file <_io.BufferedReader name='Tests/images/invalid-exif-without-x-resolution.jpg'>

Enable all warnings to always display during tests to help catch these
warnings earlier.
2020-01-26 16:00:46 -08:00
Jon Dufresne
c84c736e5b Remove unnecessary make_bytes() function
The function was introduced in 65112bad7e
to handle the differences between Python 2 & 3 byte handling. Now that
Python 3 supports byte formatting, can drop the unnecessary
compatibility shim in favor of native features.
2020-01-26 15:16:04 -08:00
Jon Dufresne
d57d02e827 Remove leftover Python 2 compatibility shim
In Python 3, __str__ should not return bytes.
2020-01-26 14:46:27 -08:00
Andrew Murray
b0dc5655ba
Merge pull request #4386 from hugovk/codecov-comment-false
Re-disable Codecov PR comment
2020-01-27 08:39:49 +11:00
Hugo
3d35110c91 Remove Azure Pipelines in favour of GitHub Actions 2020-01-26 20:30:09 +02:00
Hugo van Kemenade
22a6738a81
Merge pull request #4369 from jdufresne/pytest
Convert some tests to pytest style
2020-01-26 20:18:37 +02:00
Hugo
fbe6bcb68c Re-disable Codecov PR comment https://docs.codecov.io/docs/pull-request-comments 2020-01-26 20:16:20 +02:00
Hugo van Kemenade
892aec306b
Merge pull request #4385 from jdufresne/try-block
Limit try block to code expected to raise an exception
2020-01-26 20:04:39 +02:00
Hugo van Kemenade
ad5f68eb98
Merge pull request #4384 from jdufresne/float
Remove unnecessary coerce to float
2020-01-26 20:04:03 +02:00
Jon Dufresne
bd71374cd2 Limit try block to code expected to raise an exception
In the off chance that the additional code in decoder()/encoder() raise
a KeyError or AttributeError, a bug could be hidden.
2020-01-26 07:10:22 -08:00
Jon Dufresne
63729766c4 Remove unnecessary coerce to float
In Python 3, the division operator is floating point division. No longer
need to coerce integers to floating point numbers before division.
2020-01-26 06:33:18 -08:00
Andrew Murray
a0a9b76ab5
Merge pull request #4378 from hugovk/codecov-flags
Add flags to Codecov for easier coverage checking/debugging
2020-01-26 22:17:54 +11:00
Hugo van Kemenade
fe3e5809a3
Merge pull request #4380 from radarhere/unused
extents are not used by map_buffer
2020-01-26 08:18:38 +02:00
Hugo van Kemenade
a64d0c9945
Merge pull request #4379 from radarhere/errors
Ensure that errors directory exists before trying to upload from it
2020-01-26 08:10:37 +02:00
Hugo
5ac895e4d7 Use different Codecov flags for GHA_Ubuntu and GHA_macOS 2020-01-26 13:25:43 +11:00
Hugo
a179a3fd00 Use underscores to separate CI and platform 2020-01-26 13:25:43 +11:00
Hugo
593a352466 Flag Codecov uploads for easier coverage checking/debugging 2020-01-26 13:25:43 +11:00
Andrew Murray
e7ce609889 Release buffer if function returns prematurely 2020-01-26 13:22:45 +11:00
Andrew Murray
6a7ac38c6c extents are not used by map_buffer 2020-01-26 13:22:23 +11:00
Andrew Murray
4b626ea14a
Merge pull request #4383 from hugovk/gha-pypy
Use GHA-installed PyPy3
2020-01-26 13:20:04 +11:00
Hugo
c740e713ff Use GHA-installed PyPy3 2020-01-25 21:04:23 +02:00
Andrew Murray
b7dce81879 Ensure that errors directory exists before trying to upload from it 2020-01-25 13:30:21 +11:00
Hugo van Kemenade
d33d467169
Merge pull request #4371 from radarhere/coverage
Fixed Python coverage on GitHub Actions
2020-01-24 15:43:18 +02:00
Andrew Murray
6eed483820 Fixed Python coverage on Docker GHA 2020-01-24 22:36:49 +11:00