Test platform.machine
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-server?expand=0&rev=26
This commit is contained in:
parent
b15985d9c9
commit
015c5ac555
@ -94,6 +94,14 @@ languages, sharing, and interactive widgets.
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
|
||||
skiptests=""
|
||||
# https://github.com/psf/black/issues/1109
|
||||
python3 -c 'import platform; print(platform.machine())'
|
||||
if [ $(python3 -c 'import platform; print(platform.machine())') == 'aarch64' ]; then
|
||||
skiptests+="not (test_culling[AsyncMappingKernelManager] or test_culling[MappingKernelManager])"
|
||||
fi
|
||||
|
||||
%{python_expand # provide u-a entrypoints in the correct flavor version -- installed packages and jupyter-server
|
||||
mkdir build/testbin
|
||||
for bin in %{_bindir}/*-%{$python_bin_suffix} %{buildroot}%{_bindir}/*-%{$python_bin_suffix} ; do
|
||||
@ -103,7 +111,7 @@ done
|
||||
}
|
||||
export LANG=en_US.UTF-8
|
||||
export PATH=$PWD/build/testbin:$PATH
|
||||
%pytest
|
||||
%pytest -k "$skiptests"
|
||||
|
||||
%post
|
||||
%python_install_alternative jupyter-server
|
||||
|
Loading…
Reference in New Issue
Block a user