* [PATCH 1/2] python3-pyzstd: Upgrade 0.17.0 -> 0.19.1
@ 2026-01-23 8:43 Leon Anavi
2026-01-23 8:43 ` [PATCH 2/2] python3-wcwidth: Upgrade 0.2.14 -> 0.3.1 Leon Anavi
2026-01-23 8:56 ` [OE-core] [PATCH 1/2] python3-pyzstd: Upgrade 0.17.0 -> 0.19.1 Martin Jansa
0 siblings, 2 replies; 5+ messages in thread
From: Leon Anavi @ 2026-01-23 8:43 UTC (permalink / raw)
To: openembedded-core; +Cc: Leon Anavi
Upgrade to release 0.19.1:
- Fix SeekableZstdFile write table entries on 32-bits architectures
when there is a huge number of entries
From release 0.19.0:
- The project has been completely refactored to use the Zstandard
implementation from the standard library (PEP-784)
- The refactor has some minor impact on public APIs, such as
changing the exception raised on invalid input
- Add backports.zstd dependency for Python before 3.14
- Changes in build dependency: remove setuptools and C build
toolchain, add hatchling and hatch-vcs
- Remove git submodule usage
- Drop support for Python 3.9 and below
- Use ruff as formatter and linter
- Embed type hints in Python code, and check with mypy
All ptests pass following python3 upgrade from 3.13.11 to 3.14.0.
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
---
...emove-setuptools-version-limit-of-74.patch | 27 -------------------
...std_0.17.0.bb => python3-pyzstd_0.19.1.bb} | 7 ++---
2 files changed, 4 insertions(+), 30 deletions(-)
delete mode 100644 meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patch
rename meta/recipes-devtools/python/{python3-pyzstd_0.17.0.bb => python3-pyzstd_0.19.1.bb} (73%)
diff --git a/meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patch b/meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patch
deleted file mode 100644
index f2910322ff..0000000000
--- a/meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From bc9b975c9f41e43481a2eb0623b4180926baecec Mon Sep 17 00:00:00 2001
-From: Khem Raj <raj.khem@gmail.com>
-Date: Wed, 9 Apr 2025 14:38:31 -0700
-Subject: [PATCH] Remove setuptools version limit of '74'
-
-Upstream sticks to 0.74 since setuptools have dropped msvc9compiler
-support beyond that which is needed for python 3.9 on windows. We
-do not have this problem on Linux
-
-Upstream-Status: Inappropriate [OE-specific]
-Signed-off-by: Khem Raj <raj.khem@gmail.com>
----
- pyproject.toml | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/pyproject.toml b/pyproject.toml
-index dd885e4..5d4d511 100644
---- a/pyproject.toml
-+++ b/pyproject.toml
-@@ -1,6 +1,6 @@
- [build-system]
- # setuptools 64+ support --build-option
- # setuptools 74+ drops distutils.msvc9compiler required for Python 3.9 under Windows
--requires = ["setuptools>=64,<74"]
-+requires = ["setuptools>=64"]
- backend-path = ["build_script"]
- build-backend = "pyzstd_pep517"
diff --git a/meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb b/meta/recipes-devtools/python/python3-pyzstd_0.19.1.bb
similarity index 73%
rename from meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb
rename to meta/recipes-devtools/python/python3-pyzstd_0.19.1.bb
index af7069b6ed..a41c16682d 100644
--- a/meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb
+++ b/meta/recipes-devtools/python/python3-pyzstd_0.19.1.bb
@@ -9,10 +9,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=aedb5a2679cd1552fb61c181ef974b9e"
PYPI_PACKAGE = "pyzstd"
-SRC_URI += "file://0001-Remove-setuptools-version-limit-of-74.patch"
-SRC_URI[sha256sum] = "d84271f8baa66c419204c1dd115a4dec8b266f8a2921da21b81764fa208c1db6"
+SRC_URI[sha256sum] = "36723d3c915b3981de9198d0a2c82b2f5fe3eaa36e4d8d586937830a8afc7d72"
-inherit pypi python_setuptools_build_meta ptest-python-pytest
+inherit pypi python_hatchling ptest-python-pytest
+
+DEPENDS += "python3-hatch-vcs-native"
# clang-16 with -flto segfaults on arm, therefore ignore flto for now
do_configure:append:arm:toolchain-clang() {
--
2.47.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] python3-wcwidth: Upgrade 0.2.14 -> 0.3.1
2026-01-23 8:43 [PATCH 1/2] python3-pyzstd: Upgrade 0.17.0 -> 0.19.1 Leon Anavi
@ 2026-01-23 8:43 ` Leon Anavi
2026-01-23 8:56 ` [OE-core] [PATCH 1/2] python3-pyzstd: Upgrade 0.17.0 -> 0.19.1 Martin Jansa
1 sibling, 0 replies; 5+ messages in thread
From: Leon Anavi @ 2026-01-23 8:43 UTC (permalink / raw)
To: openembedded-core; +Cc: Leon Anavi
Upgrade to release 0.3.1:
Add benchmarking using codspeed.io
improve width() performance
From release 0.3.0:
- Migrate from setup.py + setuptools to pyproject.toml + hatchling
- Small improvements to update-tables.py and wcwidth-browser.py
- New: iter_graphemes()
- New: width() terminal-aware string measurement
- New: ljust(), rjust(), center() justify text
- New: wrap()
- improve wcswidth() performance ~30%
- New ambigous_width=1 argument
- New strip_sequences() and cut() functions
- Width 0 for Default_Ignorable_Code_Point characters
- Bugfix for Prepended_Concatenation_Mark characters
Fixes:
WARNING: python3-wcwidth-0.3.1-r0 do_check_backend: QA Issue:
inherits setuptools3 but has pyproject.toml with hatchling.build,
use the correct class [pep517-backend]
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
---
.../{python3-wcwidth_0.2.14.bb => python3-wcwidth_0.3.1.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta/recipes-devtools/python/{python3-wcwidth_0.2.14.bb => python3-wcwidth_0.3.1.bb} (76%)
diff --git a/meta/recipes-devtools/python/python3-wcwidth_0.2.14.bb b/meta/recipes-devtools/python/python3-wcwidth_0.3.1.bb
similarity index 76%
rename from meta/recipes-devtools/python/python3-wcwidth_0.2.14.bb
rename to meta/recipes-devtools/python/python3-wcwidth_0.3.1.bb
index da2dc60263..beee5f352c 100644
--- a/meta/recipes-devtools/python/python3-wcwidth_0.2.14.bb
+++ b/meta/recipes-devtools/python/python3-wcwidth_0.3.1.bb
@@ -4,9 +4,9 @@ HOMEPAGE = "https://github.com/jquast/wcwidth"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=b15979c39a2543892fca8cd86b4b52cb"
-SRC_URI[sha256sum] = "4d478375d31bc5395a3c55c40ccdf3354688364cd61c4f6adacaa9215d0b3605"
+SRC_URI[sha256sum] = "5aedb626a9c0d941b990cfebda848d538d45c9493a3384d080aff809143bd3be"
-inherit pypi setuptools3 ptest-python-pytest
+inherit pypi python_hatchling ptest-python-pytest
do_install_ptest:aapend() {
install -d ${D}${PTEST_PATH}/bin
--
2.47.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [OE-core] [PATCH 1/2] python3-pyzstd: Upgrade 0.17.0 -> 0.19.1
2026-01-23 8:43 [PATCH 1/2] python3-pyzstd: Upgrade 0.17.0 -> 0.19.1 Leon Anavi
2026-01-23 8:43 ` [PATCH 2/2] python3-wcwidth: Upgrade 0.2.14 -> 0.3.1 Leon Anavi
@ 2026-01-23 8:56 ` Martin Jansa
2026-01-27 9:20 ` Leon Anavi
1 sibling, 1 reply; 5+ messages in thread
From: Martin Jansa @ 2026-01-23 8:56 UTC (permalink / raw)
To: leon.anavi; +Cc: openembedded-core
Thanks, but this needs python3-backports-zstd to be imported from
meta-oe to fix the ptest as discussed in:
https://lists.openembedded.org/g/openembedded-core/message/228548
https://lists.openembedded.org/g/openembedded-core/message/229015
And if python3-backports-zstd is no longer needed with python-3.14 now
in oe-core, then you need to drop the whole
do_configure:append:arm:toolchain-clang.
Regards,
On Fri, Jan 23, 2026 at 9:43 AM Leon Anavi via lists.openembedded.org
<leon.anavi=konsulko.com@lists.openembedded.org> wrote:
>
> Upgrade to release 0.19.1:
>
> - Fix SeekableZstdFile write table entries on 32-bits architectures
> when there is a huge number of entries
>
> From release 0.19.0:
>
> - The project has been completely refactored to use the Zstandard
> implementation from the standard library (PEP-784)
> - The refactor has some minor impact on public APIs, such as
> changing the exception raised on invalid input
> - Add backports.zstd dependency for Python before 3.14
> - Changes in build dependency: remove setuptools and C build
> toolchain, add hatchling and hatch-vcs
> - Remove git submodule usage
> - Drop support for Python 3.9 and below
> - Use ruff as formatter and linter
> - Embed type hints in Python code, and check with mypy
>
> All ptests pass following python3 upgrade from 3.13.11 to 3.14.0.
>
> Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
> ---
> ...emove-setuptools-version-limit-of-74.patch | 27 -------------------
> ...std_0.17.0.bb => python3-pyzstd_0.19.1.bb} | 7 ++---
> 2 files changed, 4 insertions(+), 30 deletions(-)
> delete mode 100644 meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patch
> rename meta/recipes-devtools/python/{python3-pyzstd_0.17.0.bb => python3-pyzstd_0.19.1.bb} (73%)
>
> diff --git a/meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patch b/meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patch
> deleted file mode 100644
> index f2910322ff..0000000000
> --- a/meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patch
> +++ /dev/null
> @@ -1,27 +0,0 @@
> -From bc9b975c9f41e43481a2eb0623b4180926baecec Mon Sep 17 00:00:00 2001
> -From: Khem Raj <raj.khem@gmail.com>
> -Date: Wed, 9 Apr 2025 14:38:31 -0700
> -Subject: [PATCH] Remove setuptools version limit of '74'
> -
> -Upstream sticks to 0.74 since setuptools have dropped msvc9compiler
> -support beyond that which is needed for python 3.9 on windows. We
> -do not have this problem on Linux
> -
> -Upstream-Status: Inappropriate [OE-specific]
> -Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ----
> - pyproject.toml | 2 +-
> - 1 file changed, 1 insertion(+), 1 deletion(-)
> -
> -diff --git a/pyproject.toml b/pyproject.toml
> -index dd885e4..5d4d511 100644
> ---- a/pyproject.toml
> -+++ b/pyproject.toml
> -@@ -1,6 +1,6 @@
> - [build-system]
> - # setuptools 64+ support --build-option
> - # setuptools 74+ drops distutils.msvc9compiler required for Python 3.9 under Windows
> --requires = ["setuptools>=64,<74"]
> -+requires = ["setuptools>=64"]
> - backend-path = ["build_script"]
> - build-backend = "pyzstd_pep517"
> diff --git a/meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb b/meta/recipes-devtools/python/python3-pyzstd_0.19.1.bb
> similarity index 73%
> rename from meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb
> rename to meta/recipes-devtools/python/python3-pyzstd_0.19.1.bb
> index af7069b6ed..a41c16682d 100644
> --- a/meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb
> +++ b/meta/recipes-devtools/python/python3-pyzstd_0.19.1.bb
> @@ -9,10 +9,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=aedb5a2679cd1552fb61c181ef974b9e"
>
> PYPI_PACKAGE = "pyzstd"
>
> -SRC_URI += "file://0001-Remove-setuptools-version-limit-of-74.patch"
> -SRC_URI[sha256sum] = "d84271f8baa66c419204c1dd115a4dec8b266f8a2921da21b81764fa208c1db6"
> +SRC_URI[sha256sum] = "36723d3c915b3981de9198d0a2c82b2f5fe3eaa36e4d8d586937830a8afc7d72"
>
> -inherit pypi python_setuptools_build_meta ptest-python-pytest
> +inherit pypi python_hatchling ptest-python-pytest
> +
> +DEPENDS += "python3-hatch-vcs-native"
>
> # clang-16 with -flto segfaults on arm, therefore ignore flto for now
> do_configure:append:arm:toolchain-clang() {
> --
> 2.47.3
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#229876): https://lists.openembedded.org/g/openembedded-core/message/229876
> Mute This Topic: https://lists.openembedded.org/mt/117415035/3617156
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [martin.jansa@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [OE-core] [PATCH 1/2] python3-pyzstd: Upgrade 0.17.0 -> 0.19.1
2026-01-23 8:56 ` [OE-core] [PATCH 1/2] python3-pyzstd: Upgrade 0.17.0 -> 0.19.1 Martin Jansa
@ 2026-01-27 9:20 ` Leon Anavi
2026-01-28 13:40 ` Mathieu Dubois-Briand
0 siblings, 1 reply; 5+ messages in thread
From: Leon Anavi @ 2026-01-27 9:20 UTC (permalink / raw)
To: Martin Jansa; +Cc: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 5797 bytes --]
Hi Martin,
On Fri, Jan 23, 2026 at 10:56 AM Martin Jansa <martin.jansa@gmail.com>
wrote:
> Thanks, but this needs python3-backports-zstd to be imported from
> meta-oe to fix the ptest as discussed in:
> https://lists.openembedded.org/g/openembedded-core/message/228548
> https://lists.openembedded.org/g/openembedded-core/message/229015
>
> And if python3-backports-zstd is no longer needed with python-3.14 now
> in oe-core, then you need to drop the whole
> do_configure:append:arm:toolchain-clang.
>
Thank you for the feedback. Yes, python3-backports-zstd is no longer needed
with Python 3.14. I tested it manually at run-time on rpi5 and also ran
ptest-runner. Based on your recommendation I
dropped do_configure:append:arm:toolchain-clang and sent v2 of the patch.
Btw on a separate topic: I haven't seen any remarks regarding my other
patch from Friday for updating python3-wcwidth to 0.3.1 but it hasn't been
picked up in master-next yet. Please let me know if any modifications are
needed.
Best regards, Leon
>
> Regards,
>
> On Fri, Jan 23, 2026 at 9:43 AM Leon Anavi via lists.openembedded.org
> <leon.anavi=konsulko.com@lists.openembedded.org> wrote:
> >
> > Upgrade to release 0.19.1:
> >
> > - Fix SeekableZstdFile write table entries on 32-bits architectures
> > when there is a huge number of entries
> >
> > From release 0.19.0:
> >
> > - The project has been completely refactored to use the Zstandard
> > implementation from the standard library (PEP-784)
> > - The refactor has some minor impact on public APIs, such as
> > changing the exception raised on invalid input
> > - Add backports.zstd dependency for Python before 3.14
> > - Changes in build dependency: remove setuptools and C build
> > toolchain, add hatchling and hatch-vcs
> > - Remove git submodule usage
> > - Drop support for Python 3.9 and below
> > - Use ruff as formatter and linter
> > - Embed type hints in Python code, and check with mypy
> >
> > All ptests pass following python3 upgrade from 3.13.11 to 3.14.0.
> >
> > Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
> > ---
> > ...emove-setuptools-version-limit-of-74.patch | 27 -------------------
> > ...std_0.17.0.bb => python3-pyzstd_0.19.1.bb} | 7 ++---
> > 2 files changed, 4 insertions(+), 30 deletions(-)
> > delete mode 100644
> meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patch
> > rename meta/recipes-devtools/python/{python3-pyzstd_0.17.0.bb =>
> python3-pyzstd_0.19.1.bb} (73%)
> >
> > diff --git
> a/meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patch
> b/meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patch
> > deleted file mode 100644
> > index f2910322ff..0000000000
> > ---
> a/meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patch
> > +++ /dev/null
> > @@ -1,27 +0,0 @@
> > -From bc9b975c9f41e43481a2eb0623b4180926baecec Mon Sep 17 00:00:00 2001
> > -From: Khem Raj <raj.khem@gmail.com>
> > -Date: Wed, 9 Apr 2025 14:38:31 -0700
> > -Subject: [PATCH] Remove setuptools version limit of '74'
> > -
> > -Upstream sticks to 0.74 since setuptools have dropped msvc9compiler
> > -support beyond that which is needed for python 3.9 on windows. We
> > -do not have this problem on Linux
> > -
> > -Upstream-Status: Inappropriate [OE-specific]
> > -Signed-off-by: Khem Raj <raj.khem@gmail.com>
> > ----
> > - pyproject.toml | 2 +-
> > - 1 file changed, 1 insertion(+), 1 deletion(-)
> > -
> > -diff --git a/pyproject.toml b/pyproject.toml
> > -index dd885e4..5d4d511 100644
> > ---- a/pyproject.toml
> > -+++ b/pyproject.toml
> > -@@ -1,6 +1,6 @@
> > - [build-system]
> > - # setuptools 64+ support --build-option
> > - # setuptools 74+ drops distutils.msvc9compiler required for Python 3.9
> under Windows
> > --requires = ["setuptools>=64,<74"]
> > -+requires = ["setuptools>=64"]
> > - backend-path = ["build_script"]
> > - build-backend = "pyzstd_pep517"
> > diff --git a/meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb
> b/meta/recipes-devtools/python/python3-pyzstd_0.19.1.bb
> > similarity index 73%
> > rename from meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb
> > rename to meta/recipes-devtools/python/python3-pyzstd_0.19.1.bb
> > index af7069b6ed..a41c16682d 100644
> > --- a/meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb
> > +++ b/meta/recipes-devtools/python/python3-pyzstd_0.19.1.bb
> > @@ -9,10 +9,11 @@ LIC_FILES_CHKSUM =
> "file://LICENSE;md5=aedb5a2679cd1552fb61c181ef974b9e"
> >
> > PYPI_PACKAGE = "pyzstd"
> >
> > -SRC_URI += "file://0001-Remove-setuptools-version-limit-of-74.patch"
> > -SRC_URI[sha256sum] =
> "d84271f8baa66c419204c1dd115a4dec8b266f8a2921da21b81764fa208c1db6"
> > +SRC_URI[sha256sum] =
> "36723d3c915b3981de9198d0a2c82b2f5fe3eaa36e4d8d586937830a8afc7d72"
> >
> > -inherit pypi python_setuptools_build_meta ptest-python-pytest
> > +inherit pypi python_hatchling ptest-python-pytest
> > +
> > +DEPENDS += "python3-hatch-vcs-native"
> >
> > # clang-16 with -flto segfaults on arm, therefore ignore flto for now
> > do_configure:append:arm:toolchain-clang() {
> > --
> > 2.47.3
> >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#229876):
> https://lists.openembedded.org/g/openembedded-core/message/229876
> > Mute This Topic: https://lists.openembedded.org/mt/117415035/3617156
> > Group Owner: openembedded-core+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> martin.jansa@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
>
[-- Attachment #2: Type: text/html, Size: 8699 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [OE-core] [PATCH 1/2] python3-pyzstd: Upgrade 0.17.0 -> 0.19.1
2026-01-27 9:20 ` Leon Anavi
@ 2026-01-28 13:40 ` Mathieu Dubois-Briand
0 siblings, 0 replies; 5+ messages in thread
From: Mathieu Dubois-Briand @ 2026-01-28 13:40 UTC (permalink / raw)
To: leon.anavi, Martin Jansa; +Cc: openembedded-core
On Tue Jan 27, 2026 at 10:20 AM CET, Leon Anavi via lists.openembedded.org wrote:
>
> Btw on a separate topic: I haven't seen any remarks regarding my other
> patch from Friday for updating python3-wcwidth to 0.3.1 but it hasn't been
> picked up in master-next yet. Please let me know if any modifications are
> needed.
>
Hi Leon,
I believe it was first ignored as it was part of the same series, so at
first glance we can't be sure if there is any dependency between
patches.
It is in my branch now, so it should soon land to master-next.
Thanks,
Mathieu
--
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-01-28 13:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-23 8:43 [PATCH 1/2] python3-pyzstd: Upgrade 0.17.0 -> 0.19.1 Leon Anavi
2026-01-23 8:43 ` [PATCH 2/2] python3-wcwidth: Upgrade 0.2.14 -> 0.3.1 Leon Anavi
2026-01-23 8:56 ` [OE-core] [PATCH 1/2] python3-pyzstd: Upgrade 0.17.0 -> 0.19.1 Martin Jansa
2026-01-27 9:20 ` Leon Anavi
2026-01-28 13:40 ` Mathieu Dubois-Briand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox