python3-pyzstd: upgrade 0.18.0 -> 0.19.0

1. Changelog
  - The project has been completely refactored to use the Zstandard implementation from the standard library ([PEP-784](https://peps.python.org/pep-0784/))
  - The refactor has some minor impact on public APIs, such as changing the exception raised on invalid input

2. Drop 0001-Bump-setuptools-dependency-from-74-to-89.patch as setuptools in requires was removed in pyproject.toml

3. HOMEPAGE has been changed to https://github.com/Rogdham/pyzstd.

Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Liu Yiding 2025-12-09 15:02:26 +08:00 committed by Khem Raj
parent a5bf664a15
commit e26c6f86c8
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 5 additions and 31 deletions

View File

@ -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] Bump setuptools dependency from 74 to 89
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,<89"]
backend-path = ["build_script"]
build-backend = "pyzstd_pep517"

View File

@ -1,6 +1,6 @@
DESCRIPTION = "Pyzstd module provides classes and functions for compressing and \
decompressing data, using Facebooks Zstandard (or zstd as short name) algorithm."
HOMEPAGE = "https://github.com/animalize/pyzstd"
HOMEPAGE = "https://github.com/Rogdham/pyzstd"
SECTION = "devel/python"
LICENSE = "BSD-3-Clause"
@ -8,10 +8,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=aedb5a2679cd1552fb61c181ef974b9e"
PYPI_PACKAGE = "pyzstd"
SRC_URI += "file://0001-Bump-setuptools-dependency-from-74-to-89.patch"
SRC_URI[sha256sum] = "81b6851ab1ca2e5f2c709e896a1362e3065a64f271f43db77fb7d5e4a78e9861"
SRC_URI[sha256sum] = "44e7b9be7b445aac742003ddee52ca31385d52dffb8c60adf633fad8e795f10d"
inherit pypi python_setuptools_build_meta ptest-python-pytest
inherit pypi python_setuptools_build_meta ptest-python-pytest python_hatchling
DEPENDS += "python3-hatch-vcs-native"
# clang-16 with -flto segfaults on arm, therefore ignore flto for now
do_configure:append:arm:toolchain-clang() {