Commit Graph

9112 Commits

Author SHA1 Message Date
Hugo van Kemenade
a3d16dd40a
Update docs/releasenotes/7.0.0.rst
Co-Authored-By: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2019-11-02 08:40:40 +02:00
Hugo van Kemenade
2058e00e3e
Update docs/deprecations.rst
Co-Authored-By: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2019-11-02 08:40:29 +02:00
Hugo
c9c02c513b Update docs for 7.0.0 2019-11-01 13:44:49 +02:00
Hugo van Kemenade
fcb17cf4d3
Merge pull request #4176 from radarhere/depends
Use pillow-depends on HTTPError
2019-11-01 12:10:03 +02:00
Hugo van Kemenade
2cf510e596
Improve handling of file resources (#3577)
Improve handling of file resources
2019-11-01 12:07:53 +02:00
Hugo van Kemenade
97dae4fd89
Add support for Fedora 31 (#4183)
Add support for Fedora 31
2019-11-01 11:54:21 +02:00
Hugo
37f492cbbc Add support for Fedora 31 2019-10-31 12:35:26 +02:00
Andrew Murray
2296614e5f Use pillow-depends on HTTPError 2019-10-30 22:15:30 +11:00
Hugo van Kemenade
bb1fc75e55
Merge pull request #4180 from radarhere/black
Lint fixes
2019-10-29 17:26:14 +01:00
Andrew Murray
d9845c14c8 Lint fixes 2019-10-29 22:42:34 +11:00
Hugo van Kemenade
9e461aff08
Merge pull request #4175 from radarhere/export
Simplified install extra test images script
2019-10-29 11:59:36 +01:00
Hugo van Kemenade
3adb2b740f
Merge pull request #4178 from radarhere/gha
Added GHA to About page
2019-10-29 10:17:58 +01:00
Andrew Murray
b8023838cc Added GHA [ci skip] 2019-10-29 19:07:45 +11:00
Andrew Murray
8d9f0d2374 Simplified commands 2019-10-28 21:17:32 +11:00
Andrew Murray
97ea6898ca Updated CHANGES.rst [ci skip] 2019-10-27 07:38:45 +11:00
Andrew Murray
756e77c0e6
Merge pull request #4165 from hugovk/rm-fedora-29
Remove soon-EOL Fedora 29
2019-10-27 07:36:30 +11:00
Andrew Murray
a9f0e58c45
Merge pull request #4170 from radarhere/mac_dependencies
Added OpenJPEG, libimagequant and freetype to GHA macOS
2019-10-27 07:22:25 +11:00
Andrew Murray
a6244ffbb1 Added OpenJPEG, libimagequant and freetype 2019-10-26 17:34:07 +11:00
Hugo
ef0fa7a651 Remove soon-EOL Fedora 29 2019-10-26 17:10:07 +11:00
Hugo van Kemenade
710a5207bd
Replaced macOS Command Line Tools install with miniconda path (#4169)
Replaced macOS Command Line Tools install with miniconda path
2019-10-26 09:04:57 +03:00
Andrew Murray
720a1738fa Replaced macOS Command Line Tools install with miniconda path 2019-10-26 09:58:47 +11:00
Hugo van Kemenade
5e68a4d895
GHA Windows: Explicitly use cmd shell, as GH changed the defaul… (#4168)
GHA Windows: Explicitly use cmd shell, as GH changed the default to powershell
2019-10-25 16:00:50 +03:00
Hugo
3443c36795 Explicitly use cmd shell, as GHA changed the default to powershell 2019-10-25 14:16:51 +03:00
Hugo van Kemenade
84fed4d213
Use more Pythonic super().__init__() instead of calling parent… (#2198)
Use more Pythonic super().__init__() instead of calling parent class directly
2019-10-23 14:09:02 +03:00
Jon Dufresne
cae17eb927 Use more Pythonic super() instead of referencing parent class
https://rhettinger.wordpress.com/2011/05/26/super-considered-super/
2019-10-22 06:54:58 -07:00
Hugo van Kemenade
1a9be9ccbd
Simpilify PillowTestCase.delete_tempfile for pytest (#4139)
Simpilify PillowTestCase.delete_tempfile for pytest
2019-10-22 14:14:20 +03:00
Andrew Murray
46d1b5a900
Merge pull request #4161 from radarhere/changelog
Updated 6.2.1 release date
2019-10-22 20:42:03 +11:00
Andrew Murray
41a77fcf27 Updated 6.2.1 release date [ci skip] 2019-10-22 20:17:47 +11:00
Andrew Murray
044bdc1370
Merge pull request #4157 from hugovk/update-RELEASING
Add a check for point releases
2019-10-22 19:03:57 +11:00
Hugo van Kemenade
c4f2c32e2c
Merge pull request #4134 from radarhere/badges
Added GitHub Actions badges for platform builds
2019-10-21 23:50:14 +03:00
Hugo
d8003c350f Add a check for point releases 2019-10-21 21:57:59 +03:00
Hugo van Kemenade
5dcdbfee99
Merge pull request #4154 from hugovk/6.2.1-last-2.7
Pillow 6.2.1 is the last to support Python 2.7
2019-10-21 08:35:46 +03:00
Hugo
a80a45219f Pillow 6.2.1 is the last to support Python 2.7 2019-10-20 23:06:22 +03:00
Hugo van Kemenade
02b02707bc
Add release notes for Pillow 6.2.1 (#4153)
Add release notes for Pillow 6.2.1
2019-10-20 18:26:47 +03:00
Hugo
6f3464e1cb Add release notes for Pillow 6.2.1 2019-10-20 16:31:09 +03:00
Hugo
1bbacf9475 Update CHANGES.rst [CI skip] 2019-10-20 16:13:17 +03:00
Andrew Murray
df86d2d78a
Merge pull request #4150 from radarhere/ci
Updated CI target Python versions for macOS
2019-10-20 21:15:51 +11:00
Andrew Murray
aaf9720c58 Updated CI target Python versions for macOS [ci skip] 2019-10-20 21:00:26 +11:00
Hugo van Kemenade
a56b9713a3
Merge pull request #4141 from hugovk/add-3.8
Add support for Python 3.8
2019-10-20 12:44:04 +03:00
Hugo van Kemenade
2b86210308
Quotes and caps
To exactly match the recommend text at https://tidelift.com/lifter/package/pypi/Pillow/tasks/2439 and hopefully mark the task as done.
2019-10-19 09:58:13 +03:00
hugovk
062c4013a4 Consistent slash 2019-10-15 23:02:43 +03:00
hugovk
fd4707d9d3 Test on Python 3.8 final 2019-10-15 20:57:29 +03:00
Hugo
2ab518edcb Add support for Python 3.8 2019-10-15 12:44:21 +03:00
Hugo van Kemenade
facd9b003e
Merge pull request #4140 from hugovk/pypy3.6-v7.2.0
Test pypy3.6-v7.2.0 on Windows
2019-10-15 12:06:08 +03:00
hugovk
dcb732d110 Test pypy3.6-v7.2.0 on Windows 2019-10-14 23:22:21 +03:00
Andrew Murray
7068225b23 Updated CHANGES.rst [ci skip] 2019-10-13 08:12:54 +11:00
Andrew Murray
96003a98d0
Merge pull request #4137 from jdufresne/tox-pypy
Add PyPy3 to the tox test matrix
2019-10-13 08:05:43 +11:00
Andrew Murray
02ca4a1a7f
Merge pull request #4138 from jdufresne/skip-known
Remove unused arguments from PillowTestCase.skipKnownBadTest()
2019-10-13 06:42:02 +11:00
Jon Dufresne
9981568982 Simpilify PillowTestCase.delete_tempfile for pytest
As the test suite always runs with pytest now, self.currentResult is
always None. Using this, can remove unused code.
2019-10-12 11:13:14 -07:00
Jon Dufresne
4cd4adddc3 Improve handling of file resources
Follow Python's file object semantics. User code is responsible for
closing resources (usually through a context manager) in a deterministic
way.

To achieve this, remove __del__ functions. These functions used to
closed open file handlers in an attempt to silence Python
ResourceWarnings. However, using __del__ has the following drawbacks:

- __del__ isn't called until the object's reference count reaches 0.
  Therefore, resource handlers remain open or in use longer than
  necessary.

- The __del__ method isn't guaranteed to execute on system exit. See the
  Python documentation:

  https://docs.python.org/3/reference/datamodel.html#object.__del__

  > It is not guaranteed that __del__() methods are called for objects
  > that still exist when the interpreter exits.

- Exceptions that occur inside __del__ are ignored instead of raised.
  This has the potential of hiding bugs. This is also in the Python
  documentation:

  > Warning: Due to the precarious circumstances under which __del__()
  > methods are invoked, exceptions that occur during their execution
  > are ignored, and a warning is printed to sys.stderr instead.

Instead, always close resource handlers when they are no longer in use.
This will close the file handler at a specified point in the user's code
and not wait until the interpreter chooses to. It is always guaranteed
to run. And, if an exception occurs while closing the file handler, the
bug will not be ignored.

Now, when code receives a ResourceWarning, it will highlight an area
that is mishandling resources. It should not simply be silenced, but
fixed by closing resources with a context manager.

All warnings that were emitted during tests have been cleaned up. To
enable warnings, I passed the `-Wa` CLI option to Python. This exposed
some mishandling of resources in ImageFile.__init__() and
SpiderImagePlugin.loadImageSeries(), they too were fixed.
2019-10-12 08:27:17 -07:00