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 2023-01-06 17:04:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.1563 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-numpy" Fri Jan 6 17:04:43 2023 rev:111 rq:1046448 version:1.24.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2022-10-31 10:44:21.416750115 +0100 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.1563/python-numpy.changes 2023-01-06 17:05:09.296046330 +0100 @@ -1,0 +2,58 @@ +Mon Jan 2 19:31:48 UTC 2023 - Ben Greiner <c...@bnavigator.de> + +- Update to 1.24.1 + * NumPy 1.24.1 is a maintenance release that fixes bugs and + regressions discovered after the 1.24.0 release. The Python + versions supported by this release are 3.8-3.11. + * #22820: BLD: add workaround in setup.py for newer setuptools + * #22830: BLD: CIRRUS_TAG redux + * #22831: DOC: fix a couple typos in 1.23 notes + * #22832: BUG: Fix refcounting errors found using pytest-leaks + * #22834: BUG, SIMD: Fix invalid value encountered in several + ufuncs + * #22837: TST: ignore more np.distutils.log imports + * #22839: BUG: Do not use getdata() in np.ma.masked_invalid + * #22847: BUG: Ensure correct behavior for rows ending in + delimiter in... + * #22848: BUG, SIMD: Fix the bitmask of the boolean comparison + * #22857: BLD: Help raspian arm + clang 13 about + __builtin_mul_overflow + * #22858: API: Ensure a full mask is returned for masked_invalid + * #22866: BUG: Polynomials now copy properly (#22669) + * #22867: BUG, SIMD: Fix memory overlap in ufunc comparison loops + * #22868: BUG: Fortify string casts against floating point + warnings + * #22875: TST: Ignore nan-warnings in randomized out tests + * #22883: MAINT: restore npymath implementations needed for + freebsd + * #22884: BUG: Fix integer overflow in in1d for mixed integer + dtypes #22877 + * #22887: BUG: Use whole file for encoding checks with + charset_normalizer. +- Drop numpy-distutils-ignore.patch fixed upstream + +------------------------------------------------------------------- +Mon Dec 19 13:36:35 UTC 2022 - Ben Greiner <c...@bnavigator.de> + +- Update to 1.24.0 + * The NumPy 1.24.0 release continues the ongoing work to improve + the handling and promotion of dtypes, increase the execution + speed, and clarify the documentation. There are also a large + number of new and expired deprecations due to changes in + promotion and cleanups. This might be called a deprecation + release. Highlights are: + - Many new deprecations, check them out. + - Many expired deprecations, + - New F2PY features and fixes. + - New âdtypeâ and âcastingâ keywords for stacking functions. + * For a detailed description see + https://numpy.org/doc/stable/release/1.24.0-notes.html +- Add numpy-distutils-ignore.patch gh#numpy/numpy#22828 +- Fix running the tests: Actually fail on errors + +------------------------------------------------------------------- +Wed Dec 14 20:59:50 UTC 2022 - Ben Greiner <c...@bnavigator.de> + +- Support builds without any primary python3 package (:backports) + +------------------------------------------------------------------- Old: ---- numpy-1.23.4.tar.gz New: ---- numpy-1.24.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-numpy.spec ++++++ --- /var/tmp/diff_new_pack.pcxvMK/_old 2023-01-06 17:05:12.420063874 +0100 +++ /var/tmp/diff_new_pack.pcxvMK/_new 2023-01-06 17:05:12.448064031 +0100 @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,9 +17,10 @@ %global flavor @BUILD_FLAVOR@%{nil} -%define ver 1.23.4 -%define _ver 1_23_4 +%define ver 1.24.1 +%define _ver 1_24_1 %define pname python-numpy +%define plainpython python %define hpc_upcase_trans_hyph() %(echo %{**} | tr [a-z] [A-Z] | tr '-' '_') %if "%{flavor}" == "" %bcond_with hpc @@ -85,22 +86,23 @@ BuildRequires: %{python_module Cython >= 0.29.30} BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module devel} -BuildRequires: %{python_module hypothesis >= 6.24.1} -BuildRequires: %{python_module pytest >= 6.2.5} -BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module setuptools >= 60.0.0} -BuildRequires: %{python_module testsuite} BuildRequires: gcc-c++ BuildRequires: python-rpm-macros >= 20210929 BuildConflicts: gcc11 < 11.2 %if 0%{?suse_version} BuildRequires: fdupes %endif +# SECTION test requirements +BuildRequires: %{python_module pytest >= 6.2.5} +BuildRequires: %{python_module hypothesis >= 6.24.1} +BuildRequires: %{python_module pytest-xdist} +BuildRequires: %{python_module testsuite} +BuildRequires: %{python_module typing-extensions >= 4.2.0} +# /SECTION %if %{without hpc} # Last version which packaged %%{_bindir}/f2py without update-alternatives -# Protect it from substitution -%define oldpy_numpy python-numpy -Conflicts: %{oldpy_numpy} <= 1.12.0 +Conflicts: %{plainpython}-numpy <= 1.12.0 %if 0%{?suse_version} BuildRequires: gcc-fortran %else @@ -149,6 +151,7 @@ Summary: Development files for numpy applications Requires: %{name} = %{version} Requires: python-devel +Requires: %plainpython(abi) = %{python_version} %if %{without hpc} %if %{with openblas} Requires: openblas-devel @@ -202,6 +205,9 @@ %if !%{with hpc} %python_clone -a %{buildroot}%{_bindir}/f2py +%python_expand rm %{buildroot}%{$python_sitearch}/numpy/core/include/numpy/.doxyfile +%else +rm %{buildroot}%{p_python_sitearch}/numpy/core/include/numpy/.doxyfile %endif %if 0%{?suse_version} @@ -253,6 +259,7 @@ %endif %check +# https://numpy.org/doc/stable/dev/development_environment.html#running-tests %if %{without hpc} export PATH="%{buildroot}%{_bindir}:$PATH" @@ -263,6 +270,12 @@ # flaky tests test_failok+=" or test_structured_object_indexing" test_failok+=" or test_structured_object_item_setting" +# flaky due to memory consumption +test_failok+=" or test_big_arrays" +# gh#numpy/numpy#22825 +test_failok+=" or TestPrintOptions" +# gh#numpy/numpy#22835 +test_failok+=" or test_keepdims_out" # boo#1148173 gh#numpy/numpy#14438 %ifarch ppc64 ppc64le test_failok+=" or test_generalized_sq" @@ -272,6 +285,10 @@ test_failok+=" or TestF77ReturnCharacter" test_failok+=" or TestF90ReturnCharacter" %endif +# missing instruction set +%ifarch s390x +test_failok+=" or test_truncate_f32" +%endif %ifarch %{ix86} # (arm 32-bit seems okay here) # gh#numpy/numpy#18387 @@ -279,6 +296,13 @@ # gh#numpy/numpy#18388 test_failok+=" or test_float_remainder_overflow" %endif +%ifarch %{ix86} %{arm32} +# too much memory for 32bit +test_failok+=" or test_identityless_reduction_huge_array" +test_failok+=" or test_huge_vectordot" +# invalid int type for 32bit +test_failok+=" or (test_kind and test_all)" +%endif %ifarch riscv64 # These tests fail due to non-portable assumptions about the signbit of NaN # gh#numpy/numpy#8213 @@ -289,15 +313,17 @@ echo " import sys import numpy -numpy.test(label='full', verbose=2, +r = numpy.test(label='full', verbose=2, extra_argv=['-v', '-n', 'auto', '-k'] + sys.argv[1:]) +sys.exit(0 if r else 1) " > runobstest.py %{python_expand # for all python3 flavors export PYTHONPATH=%{buildroot}%{$python_sitearch} export PYTHONDONTWRITEBYTECODE=1 [ -n "$test_failok" ] && $python runobstest.py "${test_failok:4}" ||: -$python runobstest.py "not (${test_failok:4})" +# test_new_policy: duplicates test runs and output and does not follow our deselection +$python runobstest.py "not (test_new_policy ${test_failok})" } popd @@ -321,6 +347,8 @@ %python_alternative %{_bindir}/f2py %if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3" %{_bindir}/f2py3 +%else +%exclude %{_bindir}/f2py3 %endif %{_bindir}/f2py%{python_bin_suffix} %{python_sitearch}/numpy/ @@ -336,6 +364,9 @@ %if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3" %{p_bindir}/f2py %{p_bindir}/f2py3 +%else +%exclude %{p_bindir}/f2py +%exclude %{p_bindir}/f2py3 %endif %{p_bindir}/f2py%{python_bin_suffix} %{p_python_sitearch}/numpy/ ++++++ numpy-1.23.4.tar.gz -> numpy-1.24.1.tar.gz ++++++ /work/SRC/openSUSE:Factory/python-numpy/numpy-1.23.4.tar.gz /work/SRC/openSUSE:Factory/.python-numpy.new.1563/numpy-1.24.1.tar.gz differ: char 5, line 1 ++++++ numpy-1.9.0-remove-__declspec.patch ++++++ --- /var/tmp/diff_new_pack.pcxvMK/_old 2023-01-06 17:05:12.596064863 +0100 +++ /var/tmp/diff_new_pack.pcxvMK/_new 2023-01-06 17:05:12.620064997 +0100 @@ -13,15 +13,17 @@ safely removed. ---- a/numpy/core/setup_common.py -+++ b/numpy/core/setup_common.py -@@ -226,7 +226,7 @@ OPTIONAL_FUNCTION_ATTRIBUTES = [('__attr - ] +Index: numpy-1.24.0/numpy/core/setup_common.py +=================================================================== +--- numpy-1.24.0.orig/numpy/core/setup_common.py ++++ numpy-1.24.0/numpy/core/setup_common.py +@@ -141,7 +141,7 @@ OPTIONAL_FILE_FUNCS = ["ftello", "fseeko + OPTIONAL_MISC_FUNCS = ["backtrace", "madvise"] # variable attributes tested via "int %s a" % attribute -OPTIONAL_VARIABLE_ATTRIBUTES = ["__thread", "__declspec(thread)"] +OPTIONAL_VARIABLE_ATTRIBUTES = ["__thread"] - # Subset of OPTIONAL_STDFUNCS which may already have HAVE_* defined by Python.h - OPTIONAL_STDFUNCS_MAYBE = [ + # Subset of OPTIONAL_*_FUNCS which may already have HAVE_* defined by Python.h + OPTIONAL_FUNCS_MAYBE = [ ++++++ python-numpy-rpmlintrc ++++++ --- /var/tmp/diff_new_pack.pcxvMK/_old 2023-01-06 17:05:12.684065357 +0100 +++ /var/tmp/diff_new_pack.pcxvMK/_new 2023-01-06 17:05:12.688065379 +0100 @@ -1,4 +1,7 @@ -# This file is required for testing -addFilter("devel-file-in-non-devel-package.*/usr/lib.*/python.*/site-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c") +# These files are required for testing (and testing the package on a live system) +addFilter("devel-file-in-non-devel-package.*numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c") +addFilter("devel-file-in-non-devel-package.*numpy/core/tests/examples") +addFilter("devel-file-in-non-devel-package.*numpy/core/tests/data") addFilter("hidden-file-or-dir .*/numpy/f2py/tests/src/assumed_shape/.f2py_f2cmap") +addFilter("hidden-file-or-dir .*/numpy/f2py/tests/src/f2cmap/.f2py_f2cmap")