All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/python-pillow: bump to version 6.2.2/7.0.0
@ 2020-01-13 22:24 Angelo Compagnucci
  2020-01-14  8:15 ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Angelo Compagnucci @ 2020-01-13 22:24 UTC (permalink / raw)
  To: buildroot

This patch bumps Pillow to version 7.0.0 for Python3 and version
6.2.2 for Python2.
Different versions here are needed cause the latest 7.0.0 only
supports Python3, while support for Python2 is available in 6.2.2.

It updates also the LICENSE hash due to copyright year update.

Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
---
I don't really know if this is the correct way to support two versions
of the same package, please let me know.

 package/python-pillow/python-pillow.hash | 10 ++++++----
 package/python-pillow/python-pillow.mk   |  9 +++++++--
 2 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/package/python-pillow/python-pillow.hash b/package/python-pillow/python-pillow.hash
index 990b25c46e..24c0cc7c44 100644
--- a/package/python-pillow/python-pillow.hash
+++ b/package/python-pillow/python-pillow.hash
@@ -1,5 +1,7 @@
-# md5, sha256 from https://pypi.org/pypi/pillow/json
-md5	13acde283ece6ac69f62609fa108d316  Pillow-6.2.1.tar.gz
-sha256	bf4e972a88f8841d8fdc6db1a75e0f8d763e66e3754b03006cbc3854d89f1cb1  Pillow-6.2.1.tar.gz
+# md5, sha256 from https://pypi.org/project/Pillow/
+md5	d099946335c1ba372f5b1fa68ca71645  Pillow-7.0.0.tar.gz
+sha256	4d9ed9a64095e031435af120d3c910148067087541131e82b3e8db302f4c8946  Pillow-7.0.0.tar.gz
+md5	46cad14f0044a5ac4b2d801271528893  Pillow-6.2.2.tar.gz
+sha256	db9ff0c251ed066d367f53b64827cc9e18ccea001b986d08c265e53625dab950  Pillow-6.2.2.tar.gz
 # Locally computed sha256 checksums
-sha256	64ea4328ed56392b423ef968519a9ad427e3de9b985862c95ed2ed4d793d22ee  LICENSE
+sha256	04a04a908e52921829c7f51528e5619c79becdde99c484ab7d4f235e2927968c  LICENSE
diff --git a/package/python-pillow/python-pillow.mk b/package/python-pillow/python-pillow.mk
index 895b1fcb99..df116164c3 100644
--- a/package/python-pillow/python-pillow.mk
+++ b/package/python-pillow/python-pillow.mk
@@ -4,9 +4,14 @@
 #
 ################################################################################
 
-PYTHON_PILLOW_VERSION = 6.2.1
+ifeq ($(BR2_PACKAGE_PYTHON3),y)
+PYTHON_PILLOW_VERSION = 7.0.0
+PYTHON_PILLOW_SITE = https://files.pythonhosted.org/packages/39/47/f28067b187dd664d205f75b07dcc6e0e95703e134008a14814827eebcaab
+else
+PYTHON_PILLOW_VERSION = 6.2.2
+PYTHON_PILLOW_SITE = https://files.pythonhosted.org/packages/b3/d0/a20d8440b71adfbf133452d4f6e0fe80de2df7c2578c9b498fb812083383
+endif
 PYTHON_PILLOW_SOURCE = Pillow-$(PYTHON_PILLOW_VERSION).tar.gz
-PYTHON_PILLOW_SITE = https://files.pythonhosted.org/packages/5b/bb/cdc8086db1f15d0664dd22a62c69613cdc00f1dd430b5b19df1bea83f2a3
 PYTHON_PILLOW_LICENSE = PIL Software License
 PYTHON_PILLOW_LICENSE_FILES = LICENSE
 PYTHON_PILLOW_SETUP_TYPE = setuptools
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] package/python-pillow: bump to version 6.2.2/7.0.0
  2020-01-13 22:24 [Buildroot] [PATCH] package/python-pillow: bump to version 6.2.2/7.0.0 Angelo Compagnucci
@ 2020-01-14  8:15 ` Thomas Petazzoni
  2020-01-14 23:21   ` Arnout Vandecappelle
  2020-01-19  8:39   ` Peter Korsgaard
  0 siblings, 2 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2020-01-14  8:15 UTC (permalink / raw)
  To: buildroot

On Mon, 13 Jan 2020 23:24:30 +0100
Angelo Compagnucci <angelo.compagnucci@gmail.com> wrote:

> This patch bumps Pillow to version 7.0.0 for Python3 and version
> 6.2.2 for Python2.
> Different versions here are needed cause the latest 7.0.0 only
> supports Python3, while support for Python2 is available in 6.2.2.
> 
> It updates also the LICENSE hash due to copyright year update.
> 
> Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
> ---
> I don't really know if this is the correct way to support two versions
> of the same package, please let me know.

If the latest version only supports Python 3.x, then only support this
version, and make it "depends on BR2_PACKAGE_PYTHON3". Python 2.x is
now considered deprecated by the upstream Python developers. I don't
think Buildroot should bother with keeping old Python modules around
just for the sake of Python 2.x compatibility.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] package/python-pillow: bump to version 6.2.2/7.0.0
  2020-01-14  8:15 ` Thomas Petazzoni
@ 2020-01-14 23:21   ` Arnout Vandecappelle
  2020-01-19  8:39   ` Peter Korsgaard
  1 sibling, 0 replies; 4+ messages in thread
From: Arnout Vandecappelle @ 2020-01-14 23:21 UTC (permalink / raw)
  To: buildroot



On 14/01/2020 09:15, Thomas Petazzoni wrote:
> On Mon, 13 Jan 2020 23:24:30 +0100
> Angelo Compagnucci <angelo.compagnucci@gmail.com> wrote:
> 
>> This patch bumps Pillow to version 7.0.0 for Python3 and version
>> 6.2.2 for Python2.
>> Different versions here are needed cause the latest 7.0.0 only
>> supports Python3, while support for Python2 is available in 6.2.2.
>>
>> It updates also the LICENSE hash due to copyright year update.
>>
>> Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
>> ---
>> I don't really know if this is the correct way to support two versions
>> of the same package, please let me know.
> 
> If the latest version only supports Python 3.x, then only support this
> version, and make it "depends on BR2_PACKAGE_PYTHON3". Python 2.x is
> now considered deprecated by the upstream Python developers. I don't
> think Buildroot should bother with keeping old Python modules around
> just for the sake of Python 2.x compatibility.

 +1.

 Peter may want to backport the 6.2.2 bump to 2019.11, however, depending on
what got changed in there.

 Regards,
 Arnout

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] package/python-pillow: bump to version 6.2.2/7.0.0
  2020-01-14  8:15 ` Thomas Petazzoni
  2020-01-14 23:21   ` Arnout Vandecappelle
@ 2020-01-19  8:39   ` Peter Korsgaard
  1 sibling, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2020-01-19  8:39 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@bootlin.com> writes:

 > On Mon, 13 Jan 2020 23:24:30 +0100
 > Angelo Compagnucci <angelo.compagnucci@gmail.com> wrote:

 >> This patch bumps Pillow to version 7.0.0 for Python3 and version
 >> 6.2.2 for Python2.
 >> Different versions here are needed cause the latest 7.0.0 only
 >> supports Python3, while support for Python2 is available in 6.2.2.
 >> 
 >> It updates also the LICENSE hash due to copyright year update.
 >> 
 >> Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
 >> ---
 >> I don't really know if this is the correct way to support two versions
 >> of the same package, please let me know.

 > If the latest version only supports Python 3.x, then only support this
 > version, and make it "depends on BR2_PACKAGE_PYTHON3". Python 2.x is
 > now considered deprecated by the upstream Python developers. I don't
 > think Buildroot should bother with keeping old Python modules around
 > just for the sake of Python 2.x compatibility.

Agreed!

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-01-19  8:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-13 22:24 [Buildroot] [PATCH] package/python-pillow: bump to version 6.2.2/7.0.0 Angelo Compagnucci
2020-01-14  8:15 ` Thomas Petazzoni
2020-01-14 23:21   ` Arnout Vandecappelle
2020-01-19  8:39   ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.