Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-numpy for openSUSE:Factory 
checked in at 2021-12-12 21:27:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-numpy (Old)
 and      /work/SRC/openSUSE:Factory/.python-numpy.new.2520 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-numpy"

Sun Dec 12 21:27:04 2021 rev:108 rq:938534 version:1.21.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes        
2021-12-09 19:45:21.477125996 +0100
+++ /work/SRC/openSUSE:Factory/.python-numpy.new.2520/python-numpy.changes      
2021-12-12 21:27:13.548327905 +0100
@@ -1,0 +2,5 @@
+Thu Dec  9 14:43:32 UTC 2021 - Ben Greiner <c...@bnavigator.de>
+
+- Ignore Python 3.10 deprecation warnings
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-numpy.spec ++++++
--- /var/tmp/diff_new_pack.G0WZzc/_old  2021-12-12 21:27:14.036328194 +0100
+++ /var/tmp/diff_new_pack.G0WZzc/_new  2021-12-12 21:27:14.036328194 +0100
@@ -261,9 +261,16 @@
 %check
 %if %{without hpc}
 export PATH="%{buildroot}%{_bindir}:$PATH"
-mkdir testing
-cp numpy/conftest.py testing/
+
+mkdir -p testing
+cp pytest.ini testing/
 pushd testing
+
+# Python 3.10 deprecated distutils. This is going to be fixed in numpy 1.22 
gh#numpy/numpy#20419
+echo '    ignore:.*distutils.*:DeprecationWarning' >> pytest.ini
+# Fixed in numpy 1.21.5 - gh#numpy/numpy#20467
+echo '    ignore:.*load_module.*:DeprecationWarning' >> pytest.ini
+
 # flaky tests
 test_failok+=" or test_structured_object_indexing"
 test_failok+=" or test_structured_object_item_setting"
@@ -289,15 +296,21 @@
 test_failok+=" or test_fpclass"
 test_failok+=" or test_float"
 %endif
+
+echo "
+import sys
+import numpy
+numpy.test(label='full', verbose=2,
+           extra_argv=['-v', '-n', 'auto', '-k'] + sys.argv[1:])
+" > runobstest.py
+
 %{python_expand # for all python3 flavors
 export PYTHONPATH=%{buildroot}%{$python_sitearch}
 export PYTHONDONTWRITEBYTECODE=1
-$python -c 'from numpy import _pytesttester as ptt; ptt._show_numpy_info()'
-testcall="pytest-%{$python_bin_suffix} -n auto -c ../pytest.ini 
%{buildroot}%{$python_sitearch}/numpy"
-[ -n "$test_failok" ] && ${testcall} -k "${test_failok:4}" || true
-${testcall} ${test_failok:+-k "not (${test_failok:4})"}
-rm -Rf %{buildroot}%{$python_sitearch}/numpy/.pytest_cache
+[ -n "$test_failok" ] && $python runobstest.py "${test_failok:4}" ||:
+$python runobstest.py "not (${test_failok:4})"
 }
+
 popd
 %endif
 

Reply via email to