Accepting request 1305262 from home:mcepl
- Switch from %python_{build,install} to %pyproject_* macros.
OBS-URL: https://build.opensuse.org/request/show/1305262
OBS-URL: https://build.opensuse.org/package/show/Archiving/python-zstandard?expand=0&rev=24
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 16 14:22:03 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- Switch from %python_{build,install} to %pyproject_* macros.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 8 05:29:20 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
|
||||
@@ -52,10 +52,11 @@ Zstandard bindings for Python
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
%python_build --system-zstd
|
||||
%define py_setup_args "--system-zstd"
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
|
||||
%check
|
||||
|
||||
+21
-15
@@ -1,8 +1,14 @@
|
||||
diff --git a/c-ext/backend_c.c b/c-ext/backend_c.c
|
||||
index 9aa7a5c..f67191a 100644
|
||||
--- a/c-ext/backend_c.c
|
||||
+++ b/c-ext/backend_c.c
|
||||
@@ -210,6 +210,20 @@ void zstd_module_init(PyObject *m) {
|
||||
---
|
||||
c-ext/backend_c.c | 14 ++++++++++++++
|
||||
setup_zstd.py | 1 +
|
||||
tests/test_module_attributes.py | 10 +++++++++-
|
||||
3 files changed, 24 insertions(+), 1 deletion(-)
|
||||
|
||||
Index: zstandard-0.24.0/c-ext/backend_c.c
|
||||
===================================================================
|
||||
--- zstandard-0.24.0.orig/c-ext/backend_c.c 2025-08-17 01:50:50.000000000 +0200
|
||||
+++ zstandard-0.24.0/c-ext/backend_c.c 2025-09-16 16:15:10.125710215 +0200
|
||||
@@ -210,6 +210,20 @@
|
||||
Py_DECREF(feature);
|
||||
#endif
|
||||
|
||||
@@ -23,11 +29,11 @@ index 9aa7a5c..f67191a 100644
|
||||
if (PyObject_SetAttrString(m, "backend_features", features) == -1) {
|
||||
return;
|
||||
}
|
||||
diff --git a/setup_zstd.py b/setup_zstd.py
|
||||
index 5aefdd0..3d8fe73 100644
|
||||
--- a/setup_zstd.py
|
||||
+++ b/setup_zstd.py
|
||||
@@ -78,6 +78,7 @@ def get_c_extension(
|
||||
Index: zstandard-0.24.0/setup_zstd.py
|
||||
===================================================================
|
||||
--- zstandard-0.24.0.orig/setup_zstd.py 2025-08-17 02:20:18.000000000 +0200
|
||||
+++ zstandard-0.24.0/setup_zstd.py 2025-09-16 16:15:10.125758965 +0200
|
||||
@@ -79,6 +79,7 @@
|
||||
|
||||
if system_zstd:
|
||||
extra_args.append("-DZSTD_MULTITHREAD")
|
||||
@@ -35,11 +41,11 @@ index 5aefdd0..3d8fe73 100644
|
||||
else:
|
||||
extra_args.append("-DZSTD_SINGLE_FILE")
|
||||
extra_args.append("-DZSTDLIB_VISIBLE=")
|
||||
diff --git a/tests/test_module_attributes.py b/tests/test_module_attributes.py
|
||||
index a540bfe..a081b1a 100644
|
||||
--- a/tests/test_module_attributes.py
|
||||
+++ b/tests/test_module_attributes.py
|
||||
@@ -26,7 +26,15 @@ class TestModuleAttributes(unittest.TestCase):
|
||||
Index: zstandard-0.24.0/tests/test_module_attributes.py
|
||||
===================================================================
|
||||
--- zstandard-0.24.0.orig/tests/test_module_attributes.py 2025-08-17 19:03:17.000000000 +0200
|
||||
+++ zstandard-0.24.0/tests/test_module_attributes.py 2025-09-16 16:15:10.125970238 +0200
|
||||
@@ -26,7 +26,15 @@
|
||||
},
|
||||
}[zstd.backend]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user