Commit Graph

9717 Commits

Author SHA1 Message Date
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
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
Hugo van Kemenade
8e332856dd
Use BytesIO instead of StringIO (#4376)
Use BytesIO instead of StringIO
2020-01-21 14:32:15 +02:00
Andrew Murray
1f58028173 Use BytesIO instead of StringIO [ci skip] 2020-01-21 23:21:57 +11:00
Hugo van Kemenade
455a113a22
Add favicon to Read the Docs (#4375)
Add favicon to Read the Docs
2020-01-20 23:52:10 +02:00
Hugo
9f9d4b4379 Add favicon to Read the Docs 2020-01-20 17:22:10 +02:00
Alexander
73171f5046 add test image 2020-01-20 17:25:40 +03:00
Andrew Murray
04262913a2 MATRIX_OS no longer needed 2020-01-20 06:21:19 +11:00
Andrew Murray
1d0c63e523 Specify shell 2020-01-20 06:20:13 +11:00
Andrew Murray
6101a5d7e8 Removed prefix dot from codecov.yml 2020-01-19 23:57:27 +11:00
Andrew Murray
d694bdfc0b Fixed Python coverage on Windows GHA 2020-01-19 23:45:41 +11:00
Andrew Murray
9b3c53caba Fixed Python coverage on macOS and Ubuntu GHA 2020-01-19 23:20:48 +11:00
Alexander
dcd0cd9129 update dict instead of ignoring 2020-01-19 14:53:46 +03:00
Alexander
f55eb73934 handle Photoshop chunks which can't be processed 2020-01-19 03:37:43 +03:00
Alexander
3841c96ec6 Cleanup code a bit 2020-01-19 03:15:37 +03:00
Jon Dufresne
2c50723f14 Convert some tests to pytest style
To better follow conventional pytest style, this removes the outer
wrapper class in favor of a function for some tests. These tests were
picked as they are relatively simple and presented no barriers to a
quick port. The assert* methods are replaced with assert statements.
When necessary, a fixture is used to create a temporary directory.

This commit does not convert the entire test suite to this style as some
test classes use methods or other advanced features that are difficult
to automatically convert. The goal is to address these issues in
followup commits.

Refs #4193
2020-01-18 12:12:10 -08:00
Hugo van Kemenade
3aa5d56bae
Merge pull request #4358 from radarhere/coveralls
Removed coveralls
2020-01-18 10:20:23 +02:00
Andrew Murray
560b969501 Removed build tools 2020-01-18 18:49:37 +11:00
Andrew Murray
d3ccf18ede Removed coveralls 2020-01-18 18:49:37 +11:00
Hugo van Kemenade
dbcc63767c
Merge pull request #4368 from radarhere/imagedraw
Updated spacing defaults documentation
2020-01-18 08:47:23 +02:00
Andrew Murray
1c102fd040 Updated spacing defaults [ci skip] 2020-01-18 10:26:20 +11:00
Andrew Murray
b42a4fede9
Updated wording [ci skip]
Co-Authored-By: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-01-15 06:18:32 +11:00