Commit Graph

8039 Commits

Author SHA1 Message Date
Jon Dufresne
7da17ad41e Improve pytest configuration to allow specific tests as CLI args
The previous test configuration made it difficult to run a single test
with the pytest CLI. There were two major issues:

- The Tests directory was not a package. It now includes a __init__.py
  file and imports from other tests modules are done with relative
  imports.

- setup.cfg always specified the Tests directory. So even if a specific
  test were specified as a CLI arg, this configuration would also always
  include all tests. This configuration has been removed to allow
  specifying a single test on the command line.

Contributors can now run specific tests with a single command such as:

  $ tox -e py37 -- Tests/test_file_pdf.py::TestFilePdf.test_rgb

This makes it easy and faster to iterate on a single test failure and is
very familiar to those that have previously used tox and pytest.

When running tox or pytest with no arguments, they still discover and
runs all tests in the Tests directory.
2019-01-13 09:00:12 -08:00
Hugo
b62ff510aa
Merge pull request #3562 from hugovk/update-release-checklist
Update release checklist
2019-01-13 16:42:28 +02:00
Hugo
032efc2b23
Merge pull request #3573 from jdufresne/del
Python del is a statement not a function
2019-01-13 10:57:45 +02:00
Jon Dufresne
3e28ba3b7d Python del is a statement not a function
https://docs.python.org/3/reference/simple_stmts.html#the-del-statement
2019-01-12 18:28:35 -08:00
Hugo
503138c857
Merge pull request #3559 from jdufresne/in-place-bool
Use bool type for ImageCms inPlace argument (instead of int)
2019-01-12 23:59:15 +02:00
Hugo
d442996fc3
Merge pull request #3560 from jdufresne/numpy
Install optional dependencies in tox environment
2019-01-12 23:50:38 +02:00
Hugo
5ab266e165
Merge pull request #3571 from jdufresne/setup-tkinter
Remove unused _tkinter var from setup.py
2019-01-12 23:49:25 +02:00
Jon Dufresne
eccef43837 Remove unused _tkinter var from setup.py
Unused since 659e294676.
2019-01-11 20:27:44 -08:00
Jon Dufresne
45740b4a28 Install optional dependencies in tox environment
Improves test coverage by reducing skipped tests when testing through
tox.
2019-01-07 21:12:07 -08:00
Jon Dufresne
0ae7b3374e Use bool type for ImageCms inPlace argument (instead of int)
The argument is used as a bool and the docs describe it as a bool, so
use an actual bool.
2019-01-07 20:22:52 -08:00
Hugo van Kemenade
7bf5246b93
Merge pull request #3554 from jdufresne/test-str
Remove unused PillowTestCase.__str__
2019-01-07 08:46:40 +02:00
Jon Dufresne
8a05aae988 Remove unused PillowTestCase.__str__
With the move to pytest, the class's string method is unused. pytest has
its own test progress outputter.
2019-01-06 15:18:18 -08:00
Hugo
683ea38a4e Single backticks for inline code in Markdown (double in RST) 2019-01-06 17:26:47 +02:00
Hugo
ef85d67f21 Make code blocks copy/pastable 2019-01-06 17:25:39 +02:00
Hugo
f77c5d48b4 Add command to download distributions from container 2019-01-06 17:21:08 +02:00
Hugo
7eebcbc968 Put username in code to prevent spamming when pasting checklist into release issue 2019-01-06 17:21:08 +02:00
Hugo
38df53208a Check out release branch before cherry picking 2019-01-06 17:21:08 +02:00
Hugo
0a323d2aae Ignore output of viewdoc (run by 'make release-test') 2019-01-06 17:21:08 +02:00
Hugo van Kemenade
b97f9c4fcf
Merge pull request #3524 from hugovk/check-manifest-on-ci
CI: Run check-manifest in lint job
2019-01-06 16:13:16 +02:00
Hugo van Kemenade
304800497a
Update CHANGES.rst
[CI skip]
2019-01-06 12:59:34 +02:00
Hugo van Kemenade
e946ee48a3
Merge pull request #3553 from radarhere/releasenotes
Added release notes for #3540
2019-01-06 12:56:44 +02:00
Hugo van Kemenade
4d1be57256
Merge pull request #3540 from radarhere/fp
Only close __fp if not fp
2019-01-06 12:53:04 +02:00
Hugo van Kemenade
39cd976492
Apply suggestions from code review
Co-Authored-By: radarhere <3112309+radarhere@users.noreply.github.com>
2019-01-06 21:29:54 +11:00
Andrew Murray
93a2dce8f9 Added release notes for #3540 [ci skip] 2019-01-06 16:00:51 +11:00
Hugo van Kemenade
7447b44edf
Merge pull request #3544 from hugovk/add-5.4.1-release-notes
Add 5.4.1 release notes
2019-01-05 18:54:34 +02:00
Hugo van Kemenade
3117a7f0a9
Merge pull request #3534 from hugovk/update-release-checklist
Update release checklist
2019-01-05 13:12:20 +02:00
Hugo van Kemenade
63efe3cb29
Update CHANGES.rst 2019-01-05 12:11:42 +02:00
Hugo van Kemenade
22b0f53eb9
Merge pull request #3532 from radarhere/png_load_end_idat
PNG: Handle IDAT chunks after image end
2019-01-05 12:08:58 +02:00
Hugo van Kemenade
871db4e91a
Merge pull request #3529 from pslacerda/fix/3526
Fix build for Termux
2019-01-05 12:03:25 +02:00
Hugo van Kemenade
33d3bebb22
Merge pull request #3525 from radarhere/mimetype
Detect MIME types
2019-01-05 12:01:40 +02:00
Hugo van Kemenade
1bfed277bd
Merge pull request #25 from radarhere/add-5.4.1-release-notes
Updated release notes
2019-01-05 09:54:26 +02:00
Andrew Murray
b2905aec08 Updated release notes [ci skip] 2019-01-05 11:10:19 +11:00
Hugo
3c2940b002 Add 5.4.1 release notes 2019-01-05 01:00:15 +02:00
Alex Clark
2e17e0f618
Merge pull request #3538 from python-pillow/rtd-default-stable
Update release docs; exclude RTD changes
2019-01-04 10:17:49 -05:00
Hugo van Kemenade
0917ddf80b
Merge pull request #3539 from radarhere/copyright
Updated copyright year
2019-01-04 09:21:12 +02:00
Andrew Murray
71b64dcf73 Only close __fp if not fp 2019-01-04 12:29:23 +11:00
Alex Clark
ffc0b67896 [ci skip] Update release docs; exclude RTD changes
Less RTD work!
2019-01-03 17:54:45 -05:00
Hugo van Kemenade
1276fe42e7
Move Docker image update instructions to own repo
Re: https://github.com/python-pillow/Pillow/pull/3523#issuecomment-450855713
2019-01-03 21:56:45 +02:00
Andrew Murray
ea2a0e4654 Handle IDAT chunks after image end 2019-01-03 19:13:19 +11:00
Andrew Murray
fffb426092 Updated copyright year 2019-01-03 09:32:05 +11:00
Pedro Lacerda
e09ee7a5df
Fix build for Termux
`_find_library_dirs_ldconfig` can return an empty list when `ldconfig` is missing, then `setup.py` can continue guessing library directories.

fixes #3526
2019-01-02 13:38:33 -03:00
Hugo
63b866ebb2 Increment and append .dev0 to version 2019-01-02 14:48:46 +02:00
Hugo
a437477ff9 Use absolute links so they still work when pasting into release issue 2019-01-02 14:47:17 +02:00
Hugo
9cda1b32ab Remove hyphen, to include source: Pillow-5.4.0.tar.gz 2019-01-02 14:45:29 +02:00
Hugo van Kemenade
41fba67fb0
Merge pull request #3523 from radarhere/releasing
Added updating Pillow in docker-images to RELEASING
2019-01-02 14:42:38 +02:00
Andrew Murray
bd7422f934 Detect whether mimetype is image/jp2 or image/jpx 2019-01-02 15:39:39 +11:00
Andrew Murray
42e2bed4a6 If SGI image is RGB mode, then apply image/rgb mimetype 2019-01-02 14:13:37 +11:00
Andrew Murray
97ae0c42b1 Detect whether mimetype is image/png or image/apng 2019-01-02 14:13:10 +11:00
Hugo van Kemenade
2eb7235d03
Updated case
Co-Authored-By: radarhere <3112309+radarhere@users.noreply.github.com>
2019-01-02 10:33:25 +11:00
Andrew Murray
92c6903635 Added updating Pillow in docker-images [ci skip] 2019-01-02 08:33:21 +11:00