diff mbox series

python3-pyzstd: upgrade 0.17.0 -> 0.19.1

Message ID 20260107090744.844-1-liuyd.fnst@fujitsu.com
State Changes Requested
Headers show
Series python3-pyzstd: upgrade 0.17.0 -> 0.19.1 | expand

Commit Message

Yiding Liu (Fujitsu) Jan. 7, 2026, 9:07 a.m. UTC
1.Changelog:
  Fix SeekableZstdFile write table entries on 32-bits architectures when there is a huge number of entries.

2.Remove 0001-Remove-setuptools-version-limit-of-74.patch as setuptools was removed in pyproject.toml.

3.Remove do_configure:append as there is no setup.py in 0.19.1

Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
---
 ...emove-setuptools-version-limit-of-74.patch | 27 -------------------
 ...std_0.17.0.bb => python3-pyzstd_0.19.1.bb} | 10 +++----
 2 files changed, 3 insertions(+), 34 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} (53%)

Comments

Koen Kooi Jan. 7, 2026, 12:17 p.m. UTC | #1
> Op 7 jan 2026, om 10:07 heeft Yiding Liu (Fujitsu) via lists.openembedded.org <liuyd.fnst=fujitsu.com@lists.openembedded.org> het volgende geschreven:
> 
> 1.Changelog:
>  Fix SeekableZstdFile write table entries on 32-bits architectures when there is a huge number of entries.
> 
> 2.Remove 0001-Remove-setuptools-version-limit-of-74.patch as setuptools was removed in pyproject.toml.
> 
> 3.Remove do_configure:append as there is no setup.py in 0.19.1
> 
> Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>

Thanks for doing this! This matches the local commit I was testing, all the results came back OK this morning, so:

Signed-off-by: Koen Kooi <koen.kooi@oss.qualcomm.com>

regards,

Koen


> ---
> ...emove-setuptools-version-limit-of-74.patch | 27 -------------------
> ...std_0.17.0.bb => python3-pyzstd_0.19.1.bb} | 10 +++----
> 2 files changed, 3 insertions(+), 34 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} (53%)
> 
> 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 53%
> 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..154e591f4b 100644
> --- a/meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb
> +++ b/meta/recipes-devtools/python/python3-pyzstd_0.19.1.bb
> @@ -9,12 +9,8 @@ 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_setuptools_build_meta ptest-python-pytest python_hatchling 
> 
> -# clang-16 with -flto segfaults on arm, therefore ignore flto for now
> -do_configure:append:arm:toolchain-clang() {
> -    sed -i -e "s|'-flto'|''|" ${S}/setup.py
> -}
> +DEPENDS += "python3-hatch-vcs-native"
> -- 
> 2.43.0
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#228962): https://lists.openembedded.org/g/openembedded-core/message/228962
> Mute This Topic: https://lists.openembedded.org/mt/117131419/9418801
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [koen.kooi@oss.qualcomm.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Mathieu Dubois-Briand Jan. 7, 2026, 5:17 p.m. UTC | #2
On Wed Jan 7, 2026 at 10:07 AM CET, Yiding Liu (Fujitsu) via lists.openembedded.org wrote:
> 1.Changelog:
>   Fix SeekableZstdFile write table entries on 32-bits architectures when there is a huge number of entries.
>
> 2.Remove 0001-Remove-setuptools-version-limit-of-74.patch as setuptools was removed in pyproject.toml.
>
> 3.Remove do_configure:append as there is no setup.py in 0.19.1
>
> Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
> ---

Hi Liu,

Thanks for your patch.

It looks like the ptests are failing:

Failed ptests:
{'python3-pyzstd': 'START: ptest-runner\n'
                   '2026-01-07T17:04\n'
                   '\n'
                   'ImportError while importing test module '
                   "'/usr/lib/python3-pyzstd/ptest/tests/test_seekable.py'.\n"
                   'Hint: make sure your test modules/packages have valid '
                   'Python names.\n'
                   'Traceback:\n'
                   '../../python3.13/importlib/__init__.py:88: in '
                   'import_module\n'
                   '    return _bootstrap._gcd_import(name[level:], package, '
                   'level)\n'
                   '           '
                   '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n'
                   'tests/test_seekable.py:17: in <module>\n'
                   '    from pyzstd import (\n'
                   '../../python3.13/site-packages/pyzstd/__init__.py:19: in '
                   '<module>\n'
                   '    from backports import zstd\n'
                   "E   ModuleNotFoundError: No module named 'backports'\n"
                   'ERROR: tests/test_seekable.py:tests/test_seekable.py\n'
                   '\n'
                   'ImportError while importing test module '
                   "'/usr/lib/python3-pyzstd/ptest/tests/test_zstd.py'.\n"
                   'Hint: make sure your test modules/packages have valid '
                   'Python names.\n'
                   'Traceback:\n'
                   '../../python3.13/importlib/__init__.py:88: in '
                   'import_module\n'
                   '    return _bootstrap._gcd_import(name[level:], package, '
                   'level)\n'
                   '           '
                   '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n'
                   'tests/test_zstd.py:19: in <module>\n'
                   '    from pyzstd import ZstdCompressor, '
                   'RichMemZstdCompressor, \\\n'
                   '../../python3.13/site-packages/pyzstd/__init__.py:19: in '
                   '<module>\n'
                   '    from backports import zstd\n'
                   "E   ModuleNotFoundError: No module named 'backports'\n"
                   'ERROR: tests/test_zstd.py:tests/test_zstd.py\n'
                   '============================================================================\n'
                   'Testsuite summary\n'
                   '# TOTAL: 2\n'
                   '# PASS: 0\n'
                   '# SKIP: 0\n'
                   '# XFAIL: 0\n'
                   '# FAIL: 0\n'
                   '# XPASS: 0\n'
                   '# ERROR: 2\n'
                   '\n'
                   'ERROR: Exit status is 2\n'
                   'DURATION: 1\n'}

ptests which had no test results:
['python3-pyzstd']

Can you have a look at this issue?

Thanks,
Mathieu
Mathieu Dubois-Briand Jan. 7, 2026, 5:19 p.m. UTC | #3
On Wed Jan 7, 2026 at 6:17 PM CET, Mathieu Dubois-Briand wrote:
> On Wed Jan 7, 2026 at 10:07 AM CET, Yiding Liu (Fujitsu) via lists.openembedded.org wrote:
>> 1.Changelog:
>>   Fix SeekableZstdFile write table entries on 32-bits architectures when there is a huge number of entries.
>>
>> 2.Remove 0001-Remove-setuptools-version-limit-of-74.patch as setuptools was removed in pyproject.toml.
>>
>> 3.Remove do_configure:append as there is no setup.py in 0.19.1
>>
>> Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
>> ---
>
> Hi Liu,
>
> Thanks for your patch.
>
> It looks like the ptests are failing:
>
> Failed ptests:
> {'python3-pyzstd': 'START: ptest-runner\n'
>                    '2026-01-07T17:04\n'
>                    '\n'
>                    'ImportError while importing test module '
>                    "'/usr/lib/python3-pyzstd/ptest/tests/test_seekable.py'.\n"
>                    'Hint: make sure your test modules/packages have valid '
>                    'Python names.\n'
>                    'Traceback:\n'
>                    '../../python3.13/importlib/__init__.py:88: in '
>                    'import_module\n'
>                    '    return _bootstrap._gcd_import(name[level:], package, '
>                    'level)\n'
>                    '           '
>                    '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n'
>                    'tests/test_seekable.py:17: in <module>\n'
>                    '    from pyzstd import (\n'
>                    '../../python3.13/site-packages/pyzstd/__init__.py:19: in '
>                    '<module>\n'
>                    '    from backports import zstd\n'
>                    "E   ModuleNotFoundError: No module named 'backports'\n"
>                    'ERROR: tests/test_seekable.py:tests/test_seekable.py\n'
>                    '\n'
>                    'ImportError while importing test module '
>                    "'/usr/lib/python3-pyzstd/ptest/tests/test_zstd.py'.\n"
>                    'Hint: make sure your test modules/packages have valid '
>                    'Python names.\n'
>                    'Traceback:\n'
>                    '../../python3.13/importlib/__init__.py:88: in '
>                    'import_module\n'
>                    '    return _bootstrap._gcd_import(name[level:], package, '
>                    'level)\n'
>                    '           '
>                    '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n'
>                    'tests/test_zstd.py:19: in <module>\n'
>                    '    from pyzstd import ZstdCompressor, '
>                    'RichMemZstdCompressor, \\\n'
>                    '../../python3.13/site-packages/pyzstd/__init__.py:19: in '
>                    '<module>\n'
>                    '    from backports import zstd\n'
>                    "E   ModuleNotFoundError: No module named 'backports'\n"
>                    'ERROR: tests/test_zstd.py:tests/test_zstd.py\n'
>                    '============================================================================\n'
>                    'Testsuite summary\n'
>                    '# TOTAL: 2\n'
>                    '# PASS: 0\n'
>                    '# SKIP: 0\n'
>                    '# XFAIL: 0\n'
>                    '# FAIL: 0\n'
>                    '# XPASS: 0\n'
>                    '# ERROR: 2\n'
>                    '\n'
>                    'ERROR: Exit status is 2\n'
>                    'DURATION: 1\n'}
>
> ptests which had no test results:
> ['python3-pyzstd']
>
> Can you have a look at this issue?
>
> Thanks,
> Mathieu

Sorry, I was too quick again... Here is the link to the failure:

https://autobuilder.yoctoproject.org/valkyrie/#/builders/73/builds/2881
Koen Kooi Jan. 7, 2026, 6:01 p.m. UTC | #4
> Op 7 jan 2026, om 18:19 heeft Mathieu Dubois-Briand via lists.openembedded.org <mathieu.dubois-briand=bootlin.com@lists.openembedded.org> het volgende geschreven:
> 
> On Wed Jan 7, 2026 at 6:17 PM CET, Mathieu Dubois-Briand wrote:
>> On Wed Jan 7, 2026 at 10:07 AM CET, Yiding Liu (Fujitsu) via lists.openembedded.org wrote:
>>> 1.Changelog:
>>>  Fix SeekableZstdFile write table entries on 32-bits architectures when there is a huge number of entries.
>>> 
>>> 2.Remove 0001-Remove-setuptools-version-limit-of-74.patch as setuptools was removed in pyproject.toml.
>>> 
>>> 3.Remove do_configure:append as there is no setup.py in 0.19.1
>>> 
>>> Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
>>> ---
>> 
>> Hi Liu,
>> 
>> Thanks for your patch.
>> 
>> It looks like the ptests are failing:
>> 
>> Failed ptests:
>> {'python3-pyzstd': 'START: ptest-runner\n'
>>                   '2026-01-07T17:04\n'
>>                   '\n'
>>                   'ImportError while importing test module '
>>                   "'/usr/lib/python3-pyzstd/ptest/tests/test_seekable.py'.\n"
>>                   'Hint: make sure your test modules/packages have valid '
>>                   'Python names.\n'
>>                   'Traceback:\n'
>>                   '../../python3.13/importlib/__init__.py:88: in '
>>                   'import_module\n'
>>                   '    return _bootstrap._gcd_import(name[level:], package, '
>>                   'level)\n'
>>                   '           '
>>                   '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n'
>>                   'tests/test_seekable.py:17: in <module>\n'
>>                   '    from pyzstd import (\n'
>>                   '../../python3.13/site-packages/pyzstd/__init__.py:19: in '
>>                   '<module>\n'
>>                   '    from backports import zstd\n'
>>                   "E   ModuleNotFoundError: No module named 'backports'\n"
>>                   'ERROR: tests/test_seekable.py:tests/test_seekable.py\n'
>>                   '\n'
>>                   'ImportError while importing test module '
>>                   "'/usr/lib/python3-pyzstd/ptest/tests/test_zstd.py'.\n"
>>                   'Hint: make sure your test modules/packages have valid '
>>                   'Python names.\n'
>>                   'Traceback:\n'
>>                   '../../python3.13/importlib/__init__.py:88: in '
>>                   'import_module\n'
>>                   '    return _bootstrap._gcd_import(name[level:], package, '
>>                   'level)\n'
>>                   '           '
>>                   '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n'
>>                   'tests/test_zstd.py:19: in <module>\n'
>>                   '    from pyzstd import ZstdCompressor, '
>>                   'RichMemZstdCompressor, \\\n'
>>                   '../../python3.13/site-packages/pyzstd/__init__.py:19: in '
>>                   '<module>\n'
>>                   '    from backports import zstd\n'
>>                   "E   ModuleNotFoundError: No module named 'backports'\n"
>>                   'ERROR: tests/test_zstd.py:tests/test_zstd.py\n'
>>                   '============================================================================\n'
>>                   'Testsuite summary\n'
>>                   '# TOTAL: 2\n'
>>                   '# PASS: 0\n'
>>                   '# SKIP: 0\n'
>>                   '# XFAIL: 0\n'
>>                   '# FAIL: 0\n'
>>                   '# XPASS: 0\n'
>>                   '# ERROR: 2\n'
>>                   '\n'
>>                   'ERROR: Exit status is 2\n'
>>                   'DURATION: 1\n'}
>> 
>> ptests which had no test results:
>> ['python3-pyzstd']
>> 
>> Can you have a look at this issue?
>> 
>> Thanks,
>> Mathieu
> 
> Sorry, I was too quick again... Here is the link to the failure:
> 
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/73/builds/2881

I suspect that will resolve itself when python 3.14.x gets merged, but it would be good to see if it can be fixed to work with the current 3.13.x. And I really should enable ptests in my DISTROs....

regards,

Koen

> 
> 
> -- 
> Mathieu Dubois-Briand, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#229016): https://lists.openembedded.org/g/openembedded-core/message/229016
> Mute This Topic: https://lists.openembedded.org/mt/117131419/9418801
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [koen.kooi@oss.qualcomm.com]
> -=-=-=-=-=-=-=-=-=-=-=-
Martin Jansa Jan. 7, 2026, 6:36 p.m. UTC | #5
On Wed, Jan 7, 2026 at 7:01 PM Koen Kooi via lists.openembedded.org
<koen.kooi=oss.qualcomm.com@lists.openembedded.org> wrote:
>
>
>
> > Op 7 jan 2026, om 18:19 heeft Mathieu Dubois-Briand via lists.openembedded.org <mathieu.dubois-briand=bootlin.com@lists.openembedded.org> het volgende geschreven:
> >
> > On Wed Jan 7, 2026 at 6:17 PM CET, Mathieu Dubois-Briand wrote:
> >> On Wed Jan 7, 2026 at 10:07 AM CET, Yiding Liu (Fujitsu) via lists.openembedded.org wrote:
> >>> 1.Changelog:
> >>>  Fix SeekableZstdFile write table entries on 32-bits architectures when there is a huge number of entries.
> >>>
> >>> 2.Remove 0001-Remove-setuptools-version-limit-of-74.patch as setuptools was removed in pyproject.toml.
> >>>
> >>> 3.Remove do_configure:append as there is no setup.py in 0.19.1
> >>>
> >>> Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
> >>> ---
> >>
> >> Hi Liu,
> >>
> >> Thanks for your patch.
> >>
> >> It looks like the ptests are failing:
> >>
> >> Failed ptests:
> >> {'python3-pyzstd': 'START: ptest-runner\n'
> >>                   '2026-01-07T17:04\n'
> >>                   '\n'
> >>                   'ImportError while importing test module '
> >>                   "'/usr/lib/python3-pyzstd/ptest/tests/test_seekable.py'.\n"
> >>                   'Hint: make sure your test modules/packages have valid '
> >>                   'Python names.\n'
> >>                   'Traceback:\n'
> >>                   '../../python3.13/importlib/__init__.py:88: in '
> >>                   'import_module\n'
> >>                   '    return _bootstrap._gcd_import(name[level:], package, '
> >>                   'level)\n'
> >>                   '           '
> >>                   '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n'
> >>                   'tests/test_seekable.py:17: in <module>\n'
> >>                   '    from pyzstd import (\n'
> >>                   '../../python3.13/site-packages/pyzstd/__init__.py:19: in '
> >>                   '<module>\n'
> >>                   '    from backports import zstd\n'
> >>                   "E   ModuleNotFoundError: No module named 'backports'\n"
> >>                   'ERROR: tests/test_seekable.py:tests/test_seekable.py\n'
> >>                   '\n'
> >>                   'ImportError while importing test module '
> >>                   "'/usr/lib/python3-pyzstd/ptest/tests/test_zstd.py'.\n"
> >>                   'Hint: make sure your test modules/packages have valid '
> >>                   'Python names.\n'
> >>                   'Traceback:\n'
> >>                   '../../python3.13/importlib/__init__.py:88: in '
> >>                   'import_module\n'
> >>                   '    return _bootstrap._gcd_import(name[level:], package, '
> >>                   'level)\n'
> >>                   '           '
> >>                   '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n'
> >>                   'tests/test_zstd.py:19: in <module>\n'
> >>                   '    from pyzstd import ZstdCompressor, '
> >>                   'RichMemZstdCompressor, \\\n'
> >>                   '../../python3.13/site-packages/pyzstd/__init__.py:19: in '
> >>                   '<module>\n'
> >>                   '    from backports import zstd\n'
> >>                   "E   ModuleNotFoundError: No module named 'backports'\n"
> >>                   'ERROR: tests/test_zstd.py:tests/test_zstd.py\n'
> >>                   '============================================================================\n'
> >>                   'Testsuite summary\n'
> >>                   '# TOTAL: 2\n'
> >>                   '# PASS: 0\n'
> >>                   '# SKIP: 0\n'
> >>                   '# XFAIL: 0\n'
> >>                   '# FAIL: 0\n'
> >>                   '# XPASS: 0\n'
> >>                   '# ERROR: 2\n'
> >>                   '\n'
> >>                   'ERROR: Exit status is 2\n'
> >>                   'DURATION: 1\n'}
> >>
> >> ptests which had no test results:
> >> ['python3-pyzstd']
> >>
> >> Can you have a look at this issue?
> >>
> >> Thanks,
> >> Mathieu
> >
> > Sorry, I was too quick again... Here is the link to the failure:
> >
> > https://autobuilder.yoctoproject.org/valkyrie/#/builders/73/builds/2881
>
> I suspect that will resolve itself when python 3.14.x gets merged, but it would be good to see if it can be fixed to work with the current 3.13.x. And I really should enable ptests in my DISTROs....

Or you can import the backports recipe like meta-oe did to fix this as
mentioned in:
https://lists.openembedded.org/g/openembedded-core/message/228548
Yiding Liu (Fujitsu) Jan. 8, 2026, 1:56 a.m. UTC | #6
Hi all
      I found the ptest Depend  backports recipe is already in meta-oe, how should I take it into oe-core?
      Add a new recipe python3-backports-zstd into oe-core?

Liu
________________________________
发件人: openembedded-core@lists.openembedded.org <openembedded-core@lists.openembedded.org> 代表 Martin Jansa via lists.openembedded.org <martin.jansa=gmail.com@lists.openembedded.org>
发送时间: 2026年1月8日 02:36
收件人: koen.kooi@oss.qualcomm.com <koen.kooi@oss.qualcomm.com>
抄送: openembedded-core@lists.openembedded.org <openembedded-core@lists.openembedded.org>
主题: Re: [OE-core][PATCH] python3-pyzstd: upgrade 0.17.0 -> 0.19.1

On Wed, Jan 7, 2026 at 7:01 PM Koen Kooi via lists.openembedded.org
<koen.kooi=oss.qualcomm.com@lists.openembedded.org> wrote:
>
>
>
> > Op 7 jan 2026, om 18:19 heeft Mathieu Dubois-Briand via lists.openembedded.org <mathieu.dubois-briand=bootlin.com@lists.openembedded.org> het volgende geschreven:
> >
> > On Wed Jan 7, 2026 at 6:17 PM CET, Mathieu Dubois-Briand wrote:
> >> On Wed Jan 7, 2026 at 10:07 AM CET, Yiding Liu (Fujitsu) via lists.openembedded.org wrote:
> >>> 1.Changelog:
> >>>  Fix SeekableZstdFile write table entries on 32-bits architectures when there is a huge number of entries.
> >>>
> >>> 2.Remove 0001-Remove-setuptools-version-limit-of-74.patch as setuptools was removed in pyproject.toml.
> >>>
> >>> 3.Remove do_configure:append as there is no setup.py in 0.19.1
> >>>
> >>> Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
> >>> ---
> >>
> >> Hi Liu,
> >>
> >> Thanks for your patch.
> >>
> >> It looks like the ptests are failing:
> >>
> >> Failed ptests:
> >> {'python3-pyzstd': 'START: ptest-runner\n'
> >>                   '2026-01-07T17:04\n'
> >>                   '\n'
> >>                   'ImportError while importing test module '
> >>                   "'/usr/lib/python3-pyzstd/ptest/tests/test_seekable.py'.\n"
> >>                   'Hint: make sure your test modules/packages have valid '
> >>                   'Python names.\n'
> >>                   'Traceback:\n'
> >>                   '../../python3.13/importlib/__init__.py:88: in '
> >>                   'import_module\n'
> >>                   '    return _bootstrap._gcd_import(name[level:], package, '
> >>                   'level)\n'
> >>                   '           '
> >>                   '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n'
> >>                   'tests/test_seekable.py:17: in <module>\n'
> >>                   '    from pyzstd import (\n'
> >>                   '../../python3.13/site-packages/pyzstd/__init__.py:19: in '
> >>                   '<module>\n'
> >>                   '    from backports import zstd\n'
> >>                   "E   ModuleNotFoundError: No module named 'backports'\n"
> >>                   'ERROR: tests/test_seekable.py:tests/test_seekable.py\n'
> >>                   '\n'
> >>                   'ImportError while importing test module '
> >>                   "'/usr/lib/python3-pyzstd/ptest/tests/test_zstd.py'.\n"
> >>                   'Hint: make sure your test modules/packages have valid '
> >>                   'Python names.\n'
> >>                   'Traceback:\n'
> >>                   '../../python3.13/importlib/__init__.py:88: in '
> >>                   'import_module\n'
> >>                   '    return _bootstrap._gcd_import(name[level:], package, '
> >>                   'level)\n'
> >>                   '           '
> >>                   '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n'
> >>                   'tests/test_zstd.py:19: in <module>\n'
> >>                   '    from pyzstd import ZstdCompressor, '
> >>                   'RichMemZstdCompressor, \\\n'
> >>                   '../../python3.13/site-packages/pyzstd/__init__.py:19: in '
> >>                   '<module>\n'
> >>                   '    from backports import zstd\n'
> >>                   "E   ModuleNotFoundError: No module named 'backports'\n"
> >>                   'ERROR: tests/test_zstd.py:tests/test_zstd.py\n'
> >>                   '============================================================================\n'
> >>                   'Testsuite summary\n'
> >>                   '# TOTAL: 2\n'
> >>                   '# PASS: 0\n'
> >>                   '# SKIP: 0\n'
> >>                   '# XFAIL: 0\n'
> >>                   '# FAIL: 0\n'
> >>                   '# XPASS: 0\n'
> >>                   '# ERROR: 2\n'
> >>                   '\n'
> >>                   'ERROR: Exit status is 2\n'
> >>                   'DURATION: 1\n'}
> >>
> >> ptests which had no test results:
> >> ['python3-pyzstd']
> >>
> >> Can you have a look at this issue?
> >>
> >> Thanks,
> >> Mathieu
> >
> > Sorry, I was too quick again... Here is the link to the failure:
> >
> > https://autobuilder.yoctoproject.org/valkyrie/#/builders/73/builds/2881
>
> I suspect that will resolve itself when python 3.14.x gets merged, but it would be good to see if it can be fixed to work with the current 3.13.x. And I really should enable ptests in my DISTROs....

Or you can import the backports recipe like meta-oe did to fix this as
mentioned in:
https://lists.openembedded.org/g/openembedded-core/message/228548
diff mbox series

Patch

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 53%
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..154e591f4b 100644
--- a/meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb
+++ b/meta/recipes-devtools/python/python3-pyzstd_0.19.1.bb
@@ -9,12 +9,8 @@  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_setuptools_build_meta ptest-python-pytest python_hatchling 
 
-# clang-16 with -flto segfaults on arm, therefore ignore flto for now
-do_configure:append:arm:toolchain-clang() {
-    sed -i -e "s|'-flto'|''|" ${S}/setup.py
-}
+DEPENDS += "python3-hatch-vcs-native"