From cf389f0002b88fedd1603b48628d8204483afd8410aecbca538629249b4c6f20 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 15 Jul 2024 18:43:04 +0000 Subject: [PATCH 1/2] Accepting request 1187416 from home:a_faerber:machinelearning Drop tests/test_performance.py, which runs slower than expected on riscv64 OBS-URL: https://build.opensuse.org/request/show/1187416 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsons?expand=0&rev=4 --- python-jsons.changes | 5 +++++ python-jsons.spec | 2 ++ 2 files changed, 7 insertions(+) diff --git a/python-jsons.changes b/python-jsons.changes index 101eda6..dd0f350 100644 --- a/python-jsons.changes +++ b/python-jsons.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Jul 14 23:14:35 UTC 2024 - Andreas Färber + +- Drop tests/test_performance.py to fix emulated build on riscv64 + ------------------------------------------------------------------- Thu Jul 4 17:41:51 UTC 2024 - Matej Cepl diff --git a/python-jsons.spec b/python-jsons.spec index cb592fb..fac9a85 100644 --- a/python-jsons.spec +++ b/python-jsons.spec @@ -47,6 +47,8 @@ Python module for serializing Python objects to JSON (dicts) and back. %autosetup -p1 -n jsons-%{version} # Fix line endings sed -i 's/\r$//' README.md +# Performance tests may fail, e.g., for riscv64 under emulation +rm tests/test_performance.py %build %pyproject_wheel From 5abc81986241170d8a8a064f502a89f7b10d90ce57c6ceb4c4182e96319bb34a Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 25 Jul 2024 09:29:51 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsons?expand=0&rev=5 --- python-jsons.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python-jsons.spec b/python-jsons.spec index fac9a85..0a18b44 100644 --- a/python-jsons.spec +++ b/python-jsons.spec @@ -47,8 +47,10 @@ Python module for serializing Python objects to JSON (dicts) and back. %autosetup -p1 -n jsons-%{version} # Fix line endings sed -i 's/\r$//' README.md +%if 0%{?qemu_user_space_build} # Performance tests may fail, e.g., for riscv64 under emulation -rm tests/test_performance.py +rm -v tests/test_performance.py +%endif %build %pyproject_wheel