SHA256
1
0
forked from pool/python-onnx

- Disable tests for s390x based on IBM support without working tests (boo#1215337)

(Tests will be reenabled as soon as all will be working fine)

OBS-URL: https://build.opensuse.org/package/show/science:machinelearning/python-onnx?expand=0&rev=45
This commit is contained in:
2024-06-25 07:10:21 +00:00
committed by Git OBS Bridge
parent 33748538ef
commit 56304dc3a6
2 changed files with 10 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Jun 22 09:33:24 UTC 2024 - Sarah Kriesch <sarah.kriesch@opensuse.org>
- Disable tests for s390x based on IBM support without working tests (boo#1215337)
-------------------------------------------------------------------
Wed Mar 27 08:37:07 UTC 2024 - Christian Goll <cgoll@suse.com>

View File

@@ -15,11 +15,11 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
# python-nbval needed for test isn't available python39
%define skip_python39 1
# Tumbleweed does not have a python36-numpy anymore: NEP 29 dropped Python 3.6 for NumPy 1.20
Name: python-onnx
Version: 1.16.0
@@ -111,7 +111,7 @@ sed -i -e '/pytest-runner/d' setup.py
%build
%{python_expand # Generate the build system using the distro macro, configuring everything to taste for every python flavor.
%cmake -DONNX_USE_PROTOBUF_SHARED_LIBS:BOOL=ON \
-DONNX_WERROR:BOOL=OFF
-DONNX_WERROR:BOOL=OFF \
# the macro stays in build/
cd ..
}
@@ -134,6 +134,8 @@ done
%{?python_compileall}
%python_expand %fdupes %{buildroot}%{$python_sitearch}
#Disable tests for s390x based on IBM support without working tests boo#1215337
%ifnarch s390x
%check
export LD_LIBRARY_PATH="%{buildroot}%{_libdir}"
# copy tests into clean subdir and test the installed lib in sitearch
@@ -154,6 +156,7 @@ donttest=" test_bvlc_alexnet_cpu \
# do not run in parallel yet - https://github.com/onnx/onnx/issues/3946#issuecomment-1015634235
%pytest_arch -n 1 -k "not ($donttest)" -ra
popd
%endif
%post
%python_install_alternative backend-test-tools