mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH 0/5] Update to Python3.11
@ 2023-03-22 10:13 Robin van der Gracht
  2023-03-22 10:13 ` [ptxdist] [PATCH 1/5] python3: Version bumb to 3.11.2 Robin van der Gracht
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Robin van der Gracht @ 2023-03-22 10:13 UTC (permalink / raw)
  To: ptxdist; +Cc: Robin van der Gracht

This patchset contains an update for the Python package and several
Python modules for compatibility weith the new Python version.

Was able to update and test several Python modules but not all of them.

Signed-off-by: Robin van der Gracht <robin@protonic.nl>

Robin van der Gracht (5):
  python3: Version bumb to 3.11.2
  python3-aiofiles: Version bumb to 0.8.0
  python3-frozenlist: Version bumb 1.3.3
  python3-aiohttp: Version bumb to 3.8.4
  python3-yarl: Version bumb to 1.8.2

 rules/python3-aiofiles.make   | 4 ++--
 rules/python3-aiohttp.make    | 4 ++--
 rules/python3-frozenlist.make | 4 ++--
 rules/python3-yarl.make       | 4 ++--
 rules/python3.make            | 7 ++++---
 5 files changed, 12 insertions(+), 11 deletions(-)

-- 
2.37.2




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

* [ptxdist] [PATCH 1/5] python3: Version bumb to 3.11.2
  2023-03-22 10:13 [ptxdist] [PATCH 0/5] Update to Python3.11 Robin van der Gracht
@ 2023-03-22 10:13 ` Robin van der Gracht
  2023-03-22 19:14   ` Michael Olbrich
  2023-03-22 10:13 ` [ptxdist] [PATCH 2/5] python3-aiofiles: Version bumb to 0.8.0 Robin van der Gracht
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 8+ messages in thread
From: Robin van der Gracht @ 2023-03-22 10:13 UTC (permalink / raw)
  To: ptxdist; +Cc: Robin van der Gracht

Signed-off-by: Robin van der Gracht <robin@protonic.nl>
---
 rules/python3.make | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/rules/python3.make b/rules/python3.make
index b8cffc190..d3f872206 100644
--- a/rules/python3.make
+++ b/rules/python3.make
@@ -15,8 +15,8 @@ PACKAGES-$(PTXCONF_PYTHON3) += python3
 #
 # Paths and names
 #
-PYTHON3_VERSION		:= 3.10.4
-PYTHON3_MD5		:= 21f2e113e087083a1e8cf10553d93599
+PYTHON3_VERSION		:= 3.11.2
+PYTHON3_MD5		:= a957cffb58a89303b62124896881950b
 PYTHON3_MAJORMINOR	:= $(basename $(PYTHON3_VERSION))
 PYTHON3_SITEPACKAGES	:= /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages
 PYTHON3			:= Python-$(PYTHON3_VERSION)
@@ -76,7 +76,8 @@ PYTHON3_CONF_OPT	:= \
 	--without-dtrace \
 	--with-computed-gotos \
 	--without-ensurepip \
-	--with-openssl=$(SYSROOT)/usr
+	--with-openssl=$(SYSROOT)/usr \
+	--with-build-python=python$(PYTHON3_MAJORMINOR)
 
 # Keep dictionary order in .pyc files stable
 PYTHON3_MAKE_ENV := \
-- 
2.37.2




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

* [ptxdist] [PATCH 2/5] python3-aiofiles: Version bumb to 0.8.0
  2023-03-22 10:13 [ptxdist] [PATCH 0/5] Update to Python3.11 Robin van der Gracht
  2023-03-22 10:13 ` [ptxdist] [PATCH 1/5] python3: Version bumb to 3.11.2 Robin van der Gracht
@ 2023-03-22 10:13 ` Robin van der Gracht
  2023-03-22 10:13 ` [ptxdist] [PATCH 3/5] python3-frozenlist: Version bumb 1.3.3 Robin van der Gracht
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Robin van der Gracht @ 2023-03-22 10:13 UTC (permalink / raw)
  To: ptxdist; +Cc: Robin van der Gracht

Current version has no Python3.11 support.

import aiofiles
File "/usr/lib/python3.11/site-packages/aiofiles/__init__.py", line 2, in <module>
File "/usr/lib/python3.11/site-packages/aiofiles/threadpool/__init__.py", line 8, in <module>
File "/usr/lib/python3.11/site-packages/aiofiles/threadpool/binary.py", line 1, in <module>
File "/usr/lib/python3.11/site-packages/aiofiles/base.py", line 7, in <module>
File "/usr/lib/python3.11/site-packages/aiofiles/base.py", line 14, in AsyncBase
AttributeError: module 'asyncio' has no attribute 'coroutine'. Did you mean: 'coroutines'?

Signed-off-by: Robin van der Gracht <robin@protonic.nl>
---
 rules/python3-aiofiles.make | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rules/python3-aiofiles.make b/rules/python3-aiofiles.make
index edb5d23e1..7fe76c4de 100644
--- a/rules/python3-aiofiles.make
+++ b/rules/python3-aiofiles.make
@@ -14,8 +14,8 @@ PACKAGES-$(PTXCONF_PYTHON3_AIOFILES) += python3-aiofiles
 #
 # Paths and names
 #
-PYTHON3_AIOFILES_VERSION	:= 0.3.2
-PYTHON3_AIOFILES_MD5		:= 726de778d9e4b1c6d5e4d04994a03505
+PYTHON3_AIOFILES_VERSION	:= 0.8.0
+PYTHON3_AIOFILES_MD5		:= 697deeb4fdcb620c45f114f173ed7c0d
 PYTHON3_AIOFILES		:= aiofiles-$(PYTHON3_AIOFILES_VERSION)
 PYTHON3_AIOFILES_SUFFIX		:= tar.gz
 PYTHON3_AIOFILES_URL		:= $(call ptx/mirror-pypi, aiofiles, $(PYTHON3_AIOFILES).$(PYTHON3_AIOFILES_SUFFIX))
-- 
2.37.2




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

* [ptxdist] [PATCH 3/5] python3-frozenlist: Version bumb 1.3.3
  2023-03-22 10:13 [ptxdist] [PATCH 0/5] Update to Python3.11 Robin van der Gracht
  2023-03-22 10:13 ` [ptxdist] [PATCH 1/5] python3: Version bumb to 3.11.2 Robin van der Gracht
  2023-03-22 10:13 ` [ptxdist] [PATCH 2/5] python3-aiofiles: Version bumb to 0.8.0 Robin van der Gracht
@ 2023-03-22 10:13 ` Robin van der Gracht
  2023-03-22 10:13 ` [ptxdist] [PATCH 4/5] python3-aiohttp: Version bumb to 3.8.4 Robin van der Gracht
  2023-03-22 10:13 ` [ptxdist] [PATCH 5/5] python3-yarl: Version bumb to 1.8.2 Robin van der Gracht
  4 siblings, 0 replies; 8+ messages in thread
From: Robin van der Gracht @ 2023-03-22 10:13 UTC (permalink / raw)
  To: ptxdist; +Cc: Robin van der Gracht

Current version has no Python3.11 support.

Signed-off-by: Robin van der Gracht <robin@protonic.nl>
---
 rules/python3-frozenlist.make | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rules/python3-frozenlist.make b/rules/python3-frozenlist.make
index 68367a499..6a7114274 100644
--- a/rules/python3-frozenlist.make
+++ b/rules/python3-frozenlist.make
@@ -14,8 +14,8 @@ PACKAGES-$(PTXCONF_PYTHON3_FROZENLIST) += python3-frozenlist
 #
 # Paths and names
 #
-PYTHON3_FROZENLIST_VERSION	:= 1.3.0
-PYTHON3_FROZENLIST_MD5		:= e65d870bd189ba3c21ab7eb10eab22b7
+PYTHON3_FROZENLIST_VERSION	:= 1.3.3
+PYTHON3_FROZENLIST_MD5		:= 14e9ffd849c6a1dfa3c6b1fb1ff77b14
 PYTHON3_FROZENLIST		:= frozenlist-$(PYTHON3_FROZENLIST_VERSION)
 PYTHON3_FROZENLIST_SUFFIX	:= tar.gz
 PYTHON3_FROZENLIST_URL		:= $(call ptx/mirror-pypi, frozenlist, $(PYTHON3_FROZENLIST).$(PYTHON3_FROZENLIST_SUFFIX))
-- 
2.37.2




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

* [ptxdist] [PATCH 4/5] python3-aiohttp: Version bumb to 3.8.4
  2023-03-22 10:13 [ptxdist] [PATCH 0/5] Update to Python3.11 Robin van der Gracht
                   ` (2 preceding siblings ...)
  2023-03-22 10:13 ` [ptxdist] [PATCH 3/5] python3-frozenlist: Version bumb 1.3.3 Robin van der Gracht
@ 2023-03-22 10:13 ` Robin van der Gracht
  2023-03-22 10:13 ` [ptxdist] [PATCH 5/5] python3-yarl: Version bumb to 1.8.2 Robin van der Gracht
  4 siblings, 0 replies; 8+ messages in thread
From: Robin van der Gracht @ 2023-03-22 10:13 UTC (permalink / raw)
  To: ptxdist; +Cc: Robin van der Gracht

Current version has no Python3.11 support.

aiohttp/_websocket.c:198:12: fatal error: longintrepr.h: No such file or directory
  198 |   #include "longintrepr.h"
      |            ^~~~~~~~~~~~~~~
compilation terminated.

Signed-off-by: Robin van der Gracht <robin@protonic.nl>
---
 rules/python3-aiohttp.make | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rules/python3-aiohttp.make b/rules/python3-aiohttp.make
index 64bd6b0e8..a49f8f3cc 100644
--- a/rules/python3-aiohttp.make
+++ b/rules/python3-aiohttp.make
@@ -14,8 +14,8 @@ PACKAGES-$(PTXCONF_PYTHON3_AIOHTTP) += python3-aiohttp
 #
 # Paths and names
 #
-PYTHON3_AIOHTTP_VERSION	:= 3.8.1
-PYTHON3_AIOHTTP_MD5	:= faf7726dc65a940272874c0f441e8ec6
+PYTHON3_AIOHTTP_VERSION	:= 3.8.4
+PYTHON3_AIOHTTP_MD5	:= 8208bc4b519ac4520720577f93561855
 PYTHON3_AIOHTTP		:= aiohttp-$(PYTHON3_AIOHTTP_VERSION)
 PYTHON3_AIOHTTP_SUFFIX	:= tar.gz
 PYTHON3_AIOHTTP_URL	:= $(call ptx/mirror-pypi, aiohttp, $(PYTHON3_AIOHTTP).$(PYTHON3_AIOHTTP_SUFFIX))
-- 
2.37.2




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

* [ptxdist] [PATCH 5/5] python3-yarl: Version bumb to 1.8.2
  2023-03-22 10:13 [ptxdist] [PATCH 0/5] Update to Python3.11 Robin van der Gracht
                   ` (3 preceding siblings ...)
  2023-03-22 10:13 ` [ptxdist] [PATCH 4/5] python3-aiohttp: Version bumb to 3.8.4 Robin van der Gracht
@ 2023-03-22 10:13 ` Robin van der Gracht
  4 siblings, 0 replies; 8+ messages in thread
From: Robin van der Gracht @ 2023-03-22 10:13 UTC (permalink / raw)
  To: ptxdist; +Cc: Robin van der Gracht

Current version has no Python3.11 support.

yarl/_quoting_c.c:196:12: fatal error: longintrepr.h: No such file or directory
  196 |   #include "longintrepr.h"
      |            ^~~~~~~~~~~~~~~
compilation terminated.

Signed-off-by: Robin van der Gracht <robin@protonic.nl>
---
 rules/python3-yarl.make | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rules/python3-yarl.make b/rules/python3-yarl.make
index d6831493f..0f6f2d8e3 100644
--- a/rules/python3-yarl.make
+++ b/rules/python3-yarl.make
@@ -14,8 +14,8 @@ PACKAGES-$(PTXCONF_PYTHON3_YARL) += python3-yarl
 #
 # Paths and names
 #
-PYTHON3_YARL_VERSION	:= 1.5.1
-PYTHON3_YARL_MD5	:= a9b20bf0b8a6962e1101b28908a67bf8
+PYTHON3_YARL_VERSION	:= 1.8.2
+PYTHON3_YARL_MD5	:= 57c82725b9f4895eecee45faf5e61a54
 PYTHON3_YARL		:= yarl-$(PYTHON3_YARL_VERSION)
 PYTHON3_YARL_SUFFIX	:= tar.gz
 PYTHON3_YARL_URL	:= $(call ptx/mirror-pypi, yarl, $(PYTHON3_YARL).$(PYTHON3_YARL_SUFFIX))
-- 
2.37.2




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

* Re: [ptxdist] [PATCH 1/5] python3: Version bumb to 3.11.2
  2023-03-22 10:13 ` [ptxdist] [PATCH 1/5] python3: Version bumb to 3.11.2 Robin van der Gracht
@ 2023-03-22 19:14   ` Michael Olbrich
  2023-03-28 12:28     ` Robin van der Gracht
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Olbrich @ 2023-03-22 19:14 UTC (permalink / raw)
  To: Robin van der Gracht; +Cc: ptxdist

On Wed, Mar 22, 2023 at 11:13:54AM +0100, Robin van der Gracht wrote:
> Signed-off-by: Robin van der Gracht <robin@protonic.nl>

There are two patches for the old Python version. The second one is
obsolete with the latest toolchain wrapper changes. But please check the
rpath referenced in the first patch and either remove or update the patch.

Michael

> ---
>  rules/python3.make | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/rules/python3.make b/rules/python3.make
> index b8cffc190..d3f872206 100644
> --- a/rules/python3.make
> +++ b/rules/python3.make
> @@ -15,8 +15,8 @@ PACKAGES-$(PTXCONF_PYTHON3) += python3
>  #
>  # Paths and names
>  #
> -PYTHON3_VERSION		:= 3.10.4
> -PYTHON3_MD5		:= 21f2e113e087083a1e8cf10553d93599
> +PYTHON3_VERSION		:= 3.11.2
> +PYTHON3_MD5		:= a957cffb58a89303b62124896881950b
>  PYTHON3_MAJORMINOR	:= $(basename $(PYTHON3_VERSION))
>  PYTHON3_SITEPACKAGES	:= /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages
>  PYTHON3			:= Python-$(PYTHON3_VERSION)
> @@ -76,7 +76,8 @@ PYTHON3_CONF_OPT	:= \
>  	--without-dtrace \
>  	--with-computed-gotos \
>  	--without-ensurepip \
> -	--with-openssl=$(SYSROOT)/usr
> +	--with-openssl=$(SYSROOT)/usr \
> +	--with-build-python=python$(PYTHON3_MAJORMINOR)
>  
>  # Keep dictionary order in .pyc files stable
>  PYTHON3_MAKE_ENV := \
> -- 
> 2.37.2
> 
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



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

* Re: [ptxdist] [PATCH 1/5] python3: Version bumb to 3.11.2
  2023-03-22 19:14   ` Michael Olbrich
@ 2023-03-28 12:28     ` Robin van der Gracht
  0 siblings, 0 replies; 8+ messages in thread
From: Robin van der Gracht @ 2023-03-28 12:28 UTC (permalink / raw)
  To: ptxdist

Hi Michael,

On 22-03-2023 20:14, Michael Olbrich wrote:
> On Wed, Mar 22, 2023 at 11:13:54AM +0100, Robin van der Gracht wrote:
>> Signed-off-by: Robin van der Gracht <robin@protonic.nl>
> 
> There are two patches for the old Python version. The second one is
> obsolete with the latest toolchain wrapper changes. But please check the
> rpath referenced in the first patch and either remove or update the patch.

Aah right. I forgot about those.

I just build python3-db and inspected the resulting .so and found that
R[UN]PATH is nolonger explicitly stated. So I'll remove both patches.

I'll send a v2 soon.

Thanks!

- Robin



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

end of thread, other threads:[~2023-03-28 12:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-22 10:13 [ptxdist] [PATCH 0/5] Update to Python3.11 Robin van der Gracht
2023-03-22 10:13 ` [ptxdist] [PATCH 1/5] python3: Version bumb to 3.11.2 Robin van der Gracht
2023-03-22 19:14   ` Michael Olbrich
2023-03-28 12:28     ` Robin van der Gracht
2023-03-22 10:13 ` [ptxdist] [PATCH 2/5] python3-aiofiles: Version bumb to 0.8.0 Robin van der Gracht
2023-03-22 10:13 ` [ptxdist] [PATCH 3/5] python3-frozenlist: Version bumb 1.3.3 Robin van der Gracht
2023-03-22 10:13 ` [ptxdist] [PATCH 4/5] python3-aiohttp: Version bumb to 3.8.4 Robin van der Gracht
2023-03-22 10:13 ` [ptxdist] [PATCH 5/5] python3-yarl: Version bumb to 1.8.2 Robin van der Gracht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox