Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pillow v9.0.0 #104

Merged
merged 27 commits into from
Feb 3, 2022
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
595451b
updated v9.0.0
regro-cf-autotick-bot Jan 3, 2022
a7f3008
MNT: Re-rendered with conda-build 3.21.7, conda-smithy 3.16.1, and co…
regro-cf-autotick-bot Jan 3, 2022
09e15ab
remove obsolete patches
h-vetinari Jan 3, 2022
3754a20
Added patch to prevent quoting of PILLOW_VERSION
radarhere Jan 4, 2022
52fbcd7
sort libraries; add lcms2 as rundep; remove olefile
h-vetinari Jan 4, 2022
845c70a
run upstream test suite (needs sources from GH)
h-vetinari Jan 4, 2022
92c791c
re-add deps for run_test.py
h-vetinari Jan 4, 2022
fc92d3b
more test dependencies
h-vetinari Jan 4, 2022
8d63b6a
add pytest-timeout
h-vetinari Jan 4, 2022
6ae34ee
add extra test images
h-vetinari Jan 4, 2022
c719802
skip a test that needs a viewer
h-vetinari Jan 5, 2022
a4bf370
skip test suite on PPC
h-vetinari Jan 4, 2022
958d8e0
add other libs that pillow offers functionality for
h-vetinari Jan 5, 2022
b3dc3fd
help windows find the test folder
h-vetinari Jan 5, 2022
2ffdc65
use raqm vendored in pillow (not available in conda-forge)
h-vetinari Jan 5, 2022
4284ab6
add patch to help windows detect xcb & webpmux
h-vetinari Jan 5, 2022
7057ed2
fix a test failure on windows
h-vetinari Jan 5, 2022
12a7dda
try hyphen again
h-vetinari Jan 5, 2022
cfd079c
try fixing test_embeddable on windows
h-vetinari Jan 7, 2022
6abeff6
try again
h-vetinari Jan 7, 2022
e035bfd
skip test_embeddable on windows
h-vetinari Jan 7, 2022
b2e280f
enable libimagequant on windows
h-vetinari Jan 7, 2022
9be475e
Added patch to fix failing Windows test
radarhere Jan 12, 2022
eb30353
make patch format consistent
h-vetinari Jan 12, 2022
fe8a9f2
correctly set IMAGEQUANT_ROOT
h-vetinari Jan 14, 2022
1bdecb9
debug: find imagequant.dll in bld.bat
h-vetinari Jan 14, 2022
54ef0df
MNT: Re-rendered with conda-build 3.21.7, conda-smithy 3.16.2, and co…
Feb 2, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions .azure-pipelines/azure-pipelines-linux.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .azure-pipelines/azure-pipelines-win.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions .ci_support/linux_64_python3.10.____cpython.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ channel_sources:
channel_targets:
- conda-forge main
docker_image:
- quay.io/condaforge/linux-anvil-comp7
- quay.io/condaforge/linux-anvil-cos7-x86_64
freetype:
- '2'
jpeg:
Expand Down Expand Up @@ -40,8 +40,5 @@ target_platform:
- linux-64
tk:
- '8.6'
zip_keys:
- - cdt_name
- docker_image
zlib:
- '1.2'
5 changes: 1 addition & 4 deletions .ci_support/linux_64_python3.7.____73_pypy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ channel_sources:
channel_targets:
- conda-forge main
docker_image:
- quay.io/condaforge/linux-anvil-comp7
- quay.io/condaforge/linux-anvil-cos7-x86_64
freetype:
- '2'
jpeg:
Expand Down Expand Up @@ -40,8 +40,5 @@ target_platform:
- linux-64
tk:
- '8.6'
zip_keys:
- - cdt_name
- docker_image
zlib:
- '1.2'
5 changes: 1 addition & 4 deletions .ci_support/linux_64_python3.7.____cpython.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ channel_sources:
channel_targets:
- conda-forge main
docker_image:
- quay.io/condaforge/linux-anvil-comp7
- quay.io/condaforge/linux-anvil-cos7-x86_64
freetype:
- '2'
jpeg:
Expand Down Expand Up @@ -40,8 +40,5 @@ target_platform:
- linux-64
tk:
- '8.6'
zip_keys:
- - cdt_name
- docker_image
zlib:
- '1.2'
5 changes: 1 addition & 4 deletions .ci_support/linux_64_python3.8.____cpython.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ channel_sources:
channel_targets:
- conda-forge main
docker_image:
- quay.io/condaforge/linux-anvil-comp7
- quay.io/condaforge/linux-anvil-cos7-x86_64
freetype:
- '2'
jpeg:
Expand Down Expand Up @@ -40,8 +40,5 @@ target_platform:
- linux-64
tk:
- '8.6'
zip_keys:
- - cdt_name
- docker_image
zlib:
- '1.2'
5 changes: 1 addition & 4 deletions .ci_support/linux_64_python3.9.____cpython.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ channel_sources:
channel_targets:
- conda-forge main
docker_image:
- quay.io/condaforge/linux-anvil-comp7
- quay.io/condaforge/linux-anvil-cos7-x86_64
freetype:
- '2'
jpeg:
Expand Down Expand Up @@ -40,8 +40,5 @@ target_platform:
- linux-64
tk:
- '8.6'
zip_keys:
- - cdt_name
- docker_image
zlib:
- '1.2'
10 changes: 6 additions & 4 deletions .scripts/build_steps.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions .scripts/run_osx_build.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
{% set version = "8.4.0" %}
{% set version = "9.0.0" %}

package:
name: pillow
version: {{ version }}

source:
url: https://pypi.io/packages/source/P/Pillow/Pillow-{{ version }}.tar.gz
sha256: b8e2f83c56e141920c39464b852de3719dfbfb6e3c99a2d8da0edf4fb33176ed
sha256: ee6e2963e92762923956fe5d3479b1fdc3b76c83f290aad131a2f98c3df0593e
patches:
- patches/0001-Build-without-USE_WIN32_FILEIO.patch
# Backport python-pillow/Pillow#5828 (2 patches), can be dropped for v>=9.0
- patches/0002-Only-prefer-command-line-tools-SDK-on-macOS-over-the.patch
- patches/0003-Moved-macOS-SDK-logic-into-a-separate-method.patch
- patches/0002-Do-not-quote-PILLOW_VERSION.patch

build:
number: 0
Expand Down
8 changes: 4 additions & 4 deletions recipe/patches/0001-Build-without-USE_WIN32_FILEIO.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 889ee00643d8f4d744663aea5f7dda3fe868e829 Mon Sep 17 00:00:00 2001
From 24c396fd36be736d957b92598d71e61637a20469 Mon Sep 17 00:00:00 2001
From: Ryan May <rmay@ucar.edu>
Date: Wed, 5 May 2021 12:42:10 -0600
Subject: [PATCH 1/3] Build without USE_WIN32_FILEIO
Subject: [PATCH 1/2] Build without USE_WIN32_FILEIO

This keeps things consistent with current conda-forge builds of tiff
(and poppler).
Expand All @@ -10,10 +10,10 @@ This keeps things consistent with current conda-forge builds of tiff
1 file changed, 6 deletions(-)

diff --git a/setup.py b/setup.py
index b56e9063..10c1b585 100755
index 23d91a5f..c0124e6b 100755
--- a/setup.py
+++ b/setup.py
@@ -812,12 +812,6 @@ class pil_build_ext(build_ext):
@@ -826,12 +826,6 @@ class pil_build_ext(build_ext):
if feature.tiff:
libs.append(feature.tiff)
defs.append(("HAVE_LIBTIFF", None))
Expand Down
32 changes: 32 additions & 0 deletions recipe/patches/0002-Do-not-quote-PILLOW_VERSION.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
From 3ecfb3f876c8b35657549233657c37d8f5a5727e Mon Sep 17 00:00:00 2001
From: Andrew Murray <radarhere@users.noreply.github.com>
Date: Tue, 4 Jan 2022 13:54:46 +1100
Subject: [PATCH 2/2] Do not quote PILLOW_VERSION

---
setup.py | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/setup.py b/setup.py
index c0124e6b..87b73b02 100755
--- a/setup.py
+++ b/setup.py
@@ -834,14 +834,7 @@ class pil_build_ext(build_ext):
if struct.unpack("h", b"\0\1")[0] == 1:
defs.append(("WORDS_BIGENDIAN", None))

- if (
- sys.platform == "win32"
- and sys.version_info < (3, 9)
- and not (PLATFORM_PYPY or PLATFORM_MINGW)
- ):
- defs.append(("PILLOW_VERSION", f'"\\"{PILLOW_VERSION}\\""'))
- else:
- defs.append(("PILLOW_VERSION", f'"{PILLOW_VERSION}"'))
+ defs.append(("PILLOW_VERSION", f'"{PILLOW_VERSION}"'))

self._update_extension("PIL._imaging", libs, defs)

--
2.32.0.windows.2

This file was deleted.