commit python-numpy for openSUSE:Factory
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 2024-05-14 13:37:30 Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.1880 (New) Package is "python-numpy" Tue May 14 13:37:30 2024 rev:129 rq:1173659 version:1.26.4 Changes: --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2024-04-24 15:14:08.172648738 +0200 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.1880/python-numpy.changes 2024-05-14 13:38:18.254461120 +0200 @@ -1,0 +2,5 @@ +Sun May 12 14:46:08 UTC 2024 - Sarah Kriesch + +- Enable openblas for python-numpy:gnu-hpc on s390x + +--- Other differences: -- ++ python-numpy.spec ++ --- /var/tmp/diff_new_pack.48VrdY/_old 2024-05-14 13:38:19.498506486 +0200 +++ /var/tmp/diff_new_pack.48VrdY/_new 2024-05-14 13:38:19.498506486 +0200 @@ -39,9 +39,6 @@ %if 0%{?sle_version} == 120300 %{?with_openblas:ExclusiveArch: do_not_build} %endif -%ifarch s390 s390x -%{?with_openblas:ExclusiveArch: do_not_build} -%endif %{?with_hpc:%{hpc_requires}} # %if 0%{?suse_version} > 1500
commit python-numpy for openSUSE:Factory
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 2024-04-21 20:24:29 Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.26366 (New) Package is "python-numpy" Sun Apr 21 20:24:29 2024 rev:127 rq:1169084 version:1.26.4 Changes: --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2024-04-03 17:19:02.850470885 +0200 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.26366/python-numpy.changes 2024-04-21 20:25:03.625032452 +0200 @@ -1,0 +2,85 @@ +Tue Apr 16 19:12:21 UTC 2024 - Ben Greiner + +- Update to 1.26.4 + * NumPy 1.26.4 is a maintenance release that fixes bugs and +regressions discovered after the 1.26.3 release. The Python +versions supported by this release are 3.9-3.12. This is the +last planned release in the 1.26.x series. + * BUG: Restore missing asstr import + * MAINT: prepare 1.26.x for further development + * BUG: numpy.array_api: fix linalg.cholesky upper decomp... + * MAINT, BLD: Fix unused inline functions warnings on clang + * TST: Fix test_numeric on riscv64 + * MAINT: add newaxis to __all__ in numpy.array_api + * BUG: Use large file fallocate on 32 bit linux platforms + * TST: Fix test_warning_calls on Python 3.12 + * TST: Bump pytz to 2023.3.post1 + * BUG: Fix AVX512 build flags on Intel Classic Compiler + * BLD: fix potential issue with escape sequences in __config__.py + * BLD: unvendor meson-python on 1.26.x and upgrade to +meson-python... + * MAINT: Include header defining backtrace + * BUG: Fix np.quantile([Fraction(2,1)], 0.5) (#24711) +- Release 1.26.3 + ## Compatibility + * f2py will no longer accept ambiguous -m and .pyf CLI +combinations. When more than one .pyf file is passed, an error +is raised. When both -m and a .pyf is passed, a warning is +emitted and the -m provided name is ignored. + ## Improvements + * f2py now handles common blocks which have kind specifications +from modules. This further expands the usability of intrinsics +like iso_fortran_env and iso_c_binding. + ## Pull requests merged + * MAINT: prepare 1.26.x for further development + * TYP: add None to __getitem__ in numpy.array_api + * BLD,BUG: quadmath required where available [f2py] + * BUG: alpha doesn't use REAL(10) + * BUG: Fix FP overflow error in division when the divisor is +scalar + * MAINT: Pin scipy-openblas version. + * BUG: Fix f2py to enable use of string optional inout argument + * BUG: Fix -fsanitize=alignment issue in +numpy/_core/src/multiarray/arraytypes.c.src + * TST: Explicitly pass NumPy path to cython during tests (also... + * BUG: fix issues with newaxis and linalg.solve in +numpy.array_api + * BUG: Disallow shadowed modulenames + * BUG: Handle common blocks with kind specifications from modules + * BUG: Fix moving compiled executable to root with f2py -c on +Windows + * BUG: Fix single to half-precision conversion on PPC64/VSX3 + * TST: f2py: fix issue in test skip condition + * Revert "MAINT: Pin scipy-openblas version." + * MAINT: do not use long type + * TST: PyPy needs another gc.collect on latest versions + * MAINT: Bump conda-incubator/setup-miniconda from 2.2.0 to 3.0.1 + * BLD: update vendored Meson for AIX shared library fix + * MAINT: Init base in cpu_avx512_kn + * BUG: Fix failing test_features on SapphireRapids + * BUG: Fix non-contiguous memory load when ARM/Neon is enabled + * MAINT,BUG: Never import distutils above 3.12 [f2py] + * MAINT: make the import-time check for old Accelerate more +specific + * MAINT: Bump actions/setup-node and +larsoner/circleci-artifacts-redirector-action + * BUG: avoid seg fault from OOB access in RandomState.set_state() + * BUG: Fix two errors related to not checking for failed +allocations + * BUG: Fix regression with f2py wrappers when modules and +subroutines... + * BUG: Fix build issues on SPR + * BLD: fix uninitialized variable warnings from +simd/neon/memory.h + * BUG: Handle iso_c_type mappings more consistently + * BUG: Fix module name bug in signature files [urgent] [f2py] + * BUG: Handle .pyf.src and fix SciPy [urgent] + * DOC: f2py rewrite with meson details + * BUG: Add external library handling for meson [f2py] + * MAINT: Run f2py's meson backend with the same python that +ran... + * MAINT: Update numpy/f2py/_backends from main. + * MAINT: Easy updates of f2py/*.py from main. + * MAINT: Update crackfortran.py and f2py2e.py from main + +--- Old: numpy-1.26.2.tar.gz New: numpy-1.26.4.tar.gz Other differences:
commit python-numpy for openSUSE:Factory
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 2024-04-03 17:18:42 Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.1905 (New) Package is "python-numpy" Wed Apr 3 17:18:42 2024 rev:126 rq:1164093 version:1.26.2 Changes: --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2024-01-17 22:14:49.913965478 +0100 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.1905/python-numpy.changes 2024-04-03 17:19:02.850470885 +0200 @@ -1,0 +2,8 @@ +Thu Mar 28 13:54:34 UTC 2024 - Fabian Vogt + +- Add patch to fix detection of some features: + * 0001-feature-module-Fix-handling-of-multiple-conflicts-pe.patch +- Add patch to fix test failure on some platforms (boo#1221902): + * 0001-BUG-Fix-test_impossible_feature_enable-failing-witho.patch + +--- New: 0001-BUG-Fix-test_impossible_feature_enable-failing-witho.patch 0001-feature-module-Fix-handling-of-multiple-conflicts-pe.patch BETA DEBUG BEGIN: New:- Add patch to fix test failure on some platforms (boo#1221902): * 0001-BUG-Fix-test_impossible_feature_enable-failing-witho.patch New:- Add patch to fix detection of some features: * 0001-feature-module-Fix-handling-of-multiple-conflicts-pe.patch - Add patch to fix test failure on some platforms (boo#1221902): BETA DEBUG END: Other differences: -- ++ python-numpy.spec ++ --- /var/tmp/diff_new_pack.W4U3Cu/_old 2024-04-03 17:19:04.046514954 +0200 +++ /var/tmp/diff_new_pack.W4U3Cu/_new 2024-04-03 17:19:04.050515102 +0200 @@ -1,5 +1,5 @@ # -# spec file +# spec file for package python-numpy # # Copyright (c) 2024 SUSE LLC # @@ -86,6 +86,10 @@ Patch0: numpy-buildfix.patch # PATCH-FIX-OPENSUSE numpy-1.9.0-remove-__declspec.patch -- fix for spurious compiler warnings that cause build failure Patch1: numpy-1.9.0-remove-__declspec.patch +# PATCH-FIX-UPSTREAM https://github.com/numpy/numpy/pull/26151 +Patch2: 0001-BUG-Fix-test_impossible_feature_enable-failing-witho.patch +# PATCH-FIX-UPSTREAM https://github.com/numpy/meson/pull/12 +Patch3: 0001-feature-module-Fix-handling-of-multiple-conflicts-pe.patch BuildRequires: %{python_module Cython >= 3.0} BuildRequires: %{python_module base >= 3.9} BuildRequires: %{python_module devel} @@ -139,7 +143,7 @@ Requires: alts %else Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives %endif %else BuildRequires: %{compiler_family}%{?c_f_ver}-compilers-hpc-macros-devel @@ -332,7 +336,6 @@ %endif %ifarch %{arm} # https://github.com/numpy/numpy/issues/24001 -test_failok+=" or (test_cpu_features and test_impossible_feature_enable)" test_failok+=" or (test_cpu_features and test_features)" test_failok+=" or (test_umath and test_unary_spurious_fpexception)" %endif ++ 0001-BUG-Fix-test_impossible_feature_enable-failing-witho.patch ++ >From bf50761dee8f0670542bcdc1fd9bff5cdb0448d4 Mon Sep 17 00:00:00 2001 From: Fabian Vogt Date: Thu, 28 Mar 2024 14:39:45 +0100 Subject: [PATCH] BUG: Fix test_impossible_feature_enable failing without BASELINE_FEAT If the build has no baseline features set, the test ended up setting e.g. NPY_ENABLE_CPU_FEATURES="ASIMDHP, None". This actually made the execution succeed, as the warning for decoding "None" overrode the error for the real feature. Fix the error handling there by removing the errorneous "return 0;", add a test for this, and avoid passing "None" by accident. --- numpy/core/src/common/npy_cpu_features.c | 1 - numpy/core/tests/test_cpu_features.py| 14 -- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/numpy/core/src/common/npy_cpu_features.c b/numpy/core/src/common/npy_cpu_features.c index bd149f8b4..f4d25cc50 100644 --- a/numpy/core/src/common/npy_cpu_features.c +++ b/numpy/core/src/common/npy_cpu_features.c @@ -324,7 +324,6 @@ npy__cpu_check_env(int disable, const char *env) { ) < 0) { return -1; } -return 0; } #define NOTSUPP_BODY \ diff --git a/numpy/core/tests/test_cpu_features.py b/numpy/core/tests/test_cpu_features.py index 48ab30a4a..88e4ad185 100644 --- a/numpy/core/tests/test_cpu_features.py +++ b/numpy/core/tests/test_cpu_features.py @@ -308,8 +308,8 @@ def test_impossible_feature_enable(self): err_type = "RuntimeError" self._expect_error(msg, err_type) -# Ensure that only the bad feature gets reported -feats = f"{bad_feature}, {self.BASELINE_FEAT}" +# Ensure that it fails
commit python-numpy for openSUSE:Factory
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-12-14 22:02:25 Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.25432 (New) Package is "python-numpy" Thu Dec 14 22:02:25 2023 rev:123 rq:1132800 version:1.26.2 Changes: --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2023-11-22 18:54:07.346505574 +0100 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.25432/python-numpy.changes 2023-12-14 22:02:26.902569361 +0100 @@ -1,0 +2,6 @@ +Wed Dec 13 06:53:32 UTC 2023 - Steve Kowalik + +- Do not attempt to ship numpy.distutils C code in the Python 3.12 -devel + package, it is not installed. + +--- Other differences: -- ++ python-numpy.spec ++ --- /var/tmp/diff_new_pack.g4OPU1/_old 2023-12-14 22:02:27.686597640 +0100 +++ /var/tmp/diff_new_pack.g4OPU1/_new 2023-12-14 22:02:27.690597784 +0100 @@ -408,8 +408,10 @@ %license LICENSE.txt %if %{without hpc} %{python_sitearch}/numpy/core/include/ +%if 0%{python_version_nodots} < 312 %{python_sitearch}/numpy/distutils/mingw/*.c %{python_sitearch}/numpy/distutils/checks/*.c +%endif %{python_sitearch}/numpy/f2py/src/ %{python_sitearch}/numpy/core/lib/libnpymath.a %{python_sitearch}/numpy/random/lib/libnpyrandom.a @@ -417,8 +419,10 @@ %{p_python_sitearch}/numpy/core/include/ %{p_python_sitearch}/numpy/core/lib/libnpymath.a %{p_python_sitearch}/numpy/random/lib/libnpyrandom.a +%if 0%{python_version_nodots} < 312 %{p_python_sitearch}/numpy/distutils/mingw/*.c %{p_python_sitearch}/numpy/distutils/checks/*.c +%endif %{p_python_sitearch}/numpy/f2py/src/ %endif
commit python-numpy for openSUSE:Factory
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-09-21 22:20:26 Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.1770 (New) Package is "python-numpy" Thu Sep 21 22:20:26 2023 rev:121 rq:1112791 version:1.25.2 Changes: --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2023-09-11 21:23:42.604641487 +0200 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.1770/python-numpy.changes 2023-09-21 22:20:29.939314579 +0200 @@ -1226 +1226 @@ - f2py using update-alternatives (catched by openQA, boo#1176832). + f2py using update-alternatives (catched by openQA, bsc#1166678, boo#1176832). Other differences: --
commit python-numpy for openSUSE:Factory
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-09-11 21:20:34 Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.1766 (New) Package is "python-numpy" Mon Sep 11 21:20:34 2023 rev:120 rq:1110295 version:1.25.2 Changes: --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2023-08-18 19:27:48.851257264 +0200 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.1766/python-numpy.changes 2023-09-11 21:23:42.604641487 +0200 @@ -306 +306 @@ -- changes from version 1.22.2: +- changes from version 1.22.2 (CVE-2021-41495, bsc#1193911): @@ -509 +509,2 @@ -- update to 1.21.0: +- update to 1.21.0 (bsc#1193913, CVE-2021-33430, bsc#1193907, + CVE-2021-41496): @@ -2054 +2055 @@ -- update to version 1.17.3: +- update to version 1.17.3 (bsc#1149203, jsc#SLE-8532): @@ -2250 +2251,3 @@ -- Update to version 1.16.1 +- Update to version 1.16.1 (jsc#SLE-8532, bsc#1149203): + * This Fixes CVE-2019-6446 and obsoletes + * CVE-2019-6446_numpy_load.patch in older dists (bsc#1122208) Other differences: --
commit python-numpy for openSUSE:Factory
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-08-18 19:27:35 Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.1766 (New) Package is "python-numpy" Fri Aug 18 19:27:35 2023 rev:119 rq:1104294 version:1.25.2 Changes: --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2023-06-26 18:15:34.126330394 +0200 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.1766/python-numpy.changes 2023-08-18 19:27:48.851257264 +0200 @@ -1,0 +2,69 @@ +Wed Aug 16 11:31:28 UTC 2023 - Daniel Garcia + +- Use %pyproject_wheel and %pyproject_install macros +- Disable broken tests in armv7l (bsc#1212710) + +--- +Mon Aug 14 11:41:16 UTC 2023 - Dirk Müller + +- limit to Cython < 3 + +--- +Mon Aug 14 07:07:51 UTC 2023 - Dirk Müller + +- update to 1.25.2: + * Upgrade various build dependencies. + * use ``-ftrapping-math`` with Clang on macOS + * properly handle negative indexes in ufunc_at fast path + * PyObject_IsTrue and PyObject_Not error handling in setflags + * histogram small range robust + * Update meson.build files from main branch + * exclude min, max and round from ``np.__all__`` + * Dependabot updates + * Fix the signature for np.array_api.take + * update OpenBLAS to an intermeidate commit + * Fix reference count leak in str(scalar). + * fix invalid function pointer conversion error + * Factor out slow ``getenv`` call used for memory policy warning + * correct URL in cirrus.star [skip cirrus] + * Fix C types in scalartypes + * do not modify the input to ufunc_at + * Further fixes to indexing loop and added tests + +--- +Thu Jul 20 13:21:25 UTC 2023 - Guillaume GARDET + +- Update to 1.25.1: + * NumPy 1.25.1 is a maintenance release that fixes bugs and regressions +discovered after the 1.25.0 release. The Python versions supported by +this release are 3.9-3.11. + * #23968: MAINT: prepare 1.25.x for further development + * #24036: BLD: Port long double identification to C for meson + * #24037: BUG: Fix reduction return NULL to be goto fail + * #24038: BUG: Avoid undefined behavior in array.astype() + * #24039: BUG: Ensure __array_ufunc__ works without any kwargs passed + * #24117: MAINT: Pin urllib3 to avoid anaconda-client bug. + * #24118: TST: Pin pydantic<2 in Pyodide workflow + * #24119: MAINT: Bump pypa/cibuildwheel from 2.13.0 to 2.13.1 + * #24120: MAINT: Bump actions/checkout from 3.5.2 to 3.5.3 + * #24122: BUG: Multiply or Divides using SIMD without a full vector can... + * #24127: MAINT: testing for IS_MUSL closes #24074 + * #24128: BUG: Only replace dtype temporarily if dimensions changed + * #24129: MAINT: Bump actions/setup-node from 3.6.0 to 3.7.0 + * #24134: BUG: Fix private procedures in f2py modules +- Skipped 1.25.0: + * The NumPy 1.25.0 release continues the ongoing work to improve the +handling and promotion of dtypes, increase the execution speed, and +clarify the documentation. There has also been work to prepare for the +future NumPy 2.0.0 release, resulting in a large number of new and +expired deprecation. Highlights are: +- Support for MUSL, there are now MUSL wheels. +- Support the Fujitsu C/C++ compiler. +- Object arrays are now supported in einsum +- Support for inplace matrix multiplication (@=). + * Full changelog: https://github.com/numpy/numpy/releases/tag/v1.25.0 +The Python versions supported in this release are 3.9-3.11. +- Remove upstream patch: + * remove-deprecated-hypothesis-funcs.patch + +--- Old: numpy-1.24.2.tar.gz remove-deprecated-hypothesis-funcs.patch New: numpy-1.25.2.tar.gz Other differences: -- ++ python-numpy.spec ++ --- /var/tmp/diff_new_pack.zX9tg5/_old 2023-08-18 19:27:49.903259150 +0200 +++ /var/tmp/diff_new_pack.zX9tg5/_new 2023-08-18 19:27:49.911259165 +0200 @@ -17,8 +17,8 @@ %global flavor @BUILD_FLAVOR@%{nil} -%define ver 1.24.2 -%define _ver 1_24_2 +%define ver 1.25.2 +%define _ver 1_25_2 %define pname python-numpy %define plainpython python %define hpc_upcase_trans_hyph() %(echo %{**} | tr [a-z] [A-Z] | tr '-' '_') @@ -88,12 +88,12 @@ Patch1: numpy-1.9.0-remove-__declspec.patch # PATCH-FIX-OPENSUSE Ignore DeprecationWarnings when importing pkg_resources Patch2: ignore-pkg_resources-deprecation.patch -# PATCH-FIX-OPENSUSE Do not call a deprecated hypoth
commit python-numpy for openSUSE:Factory
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-06-26 18:15:32 Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.15902 (New) Package is "python-numpy" Mon Jun 26 18:15:32 2023 rev:118 rq:1095237 version:1.24.2 Changes: --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2023-05-13 17:17:08.734209989 +0200 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.15902/python-numpy.changes 2023-06-26 18:15:34.126330394 +0200 @@ -1,0 +2,6 @@ +Fri Jun 23 12:23:14 UTC 2023 - Stefan Brüns + +- Adapt test exceptions for PPC64 etc., TestFReturnCharacter + instead of TestF77ReturnCharacter, TestF90ReturnCharacter + +--- Other differences: -- ++ python-numpy.spec ++ --- /var/tmp/diff_new_pack.DEJIUW/_old 2023-06-26 18:15:35.010334322 +0200 +++ /var/tmp/diff_new_pack.DEJIUW/_new 2023-06-26 18:15:35.014334340 +0200 @@ -296,8 +296,7 @@ %endif # these tests fail on big endian gh#numpy/numpy#11831 %ifarch s390x ppc ppc64 -test_failok+=" or TestF77ReturnCharacter" -test_failok+=" or TestF90ReturnCharacter" +test_failok+=" or TestFReturnCharacter" %endif # missing instruction set %ifarch s390x
commit python-numpy for openSUSE:Factory
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-05-13 17:17:00 Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.1533 (New) Package is "python-numpy" Sat May 13 17:17:00 2023 rev:117 rq:1086645 version:1.24.2 Changes: --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2023-04-28 16:22:23.045665535 +0200 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.1533/python-numpy.changes 2023-05-13 17:17:08.734209989 +0200 @@ -1,0 +2,6 @@ +Fri May 12 04:22:36 UTC 2023 - Steve Kowalik + +- Add patch remove-deprecated-hypothesis-funcs.patch: + * Change to a non-deprecated function from hypothesis. + +--- New: remove-deprecated-hypothesis-funcs.patch Other differences: -- ++ python-numpy.spec ++ --- /var/tmp/diff_new_pack.VyfTZa/_old 2023-05-13 17:17:09.474214246 +0200 +++ /var/tmp/diff_new_pack.VyfTZa/_new 2023-05-13 17:17:09.478214270 +0200 @@ -88,6 +88,8 @@ Patch1: numpy-1.9.0-remove-__declspec.patch # PATCH-FIX-OPENSUSE Ignore DeprecationWarnings when importing pkg_resources Patch2: ignore-pkg_resources-deprecation.patch +# PATCH-FIX-OPENSUSE Do not call a deprecated hypothesis health check function +Patch3: remove-deprecated-hypothesis-funcs.patch BuildRequires: %{python_module Cython >= 0.29.30} BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module devel} ++ remove-deprecated-hypothesis-funcs.patch ++ Index: numpy-1.24.2/numpy/conftest.py === --- numpy-1.24.2.orig/numpy/conftest.py +++ numpy-1.24.2/numpy/conftest.py @@ -30,7 +30,7 @@ hypothesis.settings.register_profile( hypothesis.settings.register_profile( name="np.test() profile", deadline=None, print_blob=True, database=None, derandomize=True, -suppress_health_check=hypothesis.HealthCheck.all(), +suppress_health_check=list(hypothesis.HealthCheck), ) # Note that the default profile is chosen based on the presence # of pytest.ini, but can be overridden by passing the
commit python-numpy for openSUSE:Factory
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-04-28 16:22:17 Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.1533 (New) Package is "python-numpy" Fri Apr 28 16:22:17 2023 rev:116 rq:1083120 version:1.24.2 Changes: --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2023-03-31 21:14:10.574083697 +0200 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.1533/python-numpy.changes 2023-04-28 16:22:23.045665535 +0200 @@ -1,0 +2,5 @@ +Fri Apr 21 12:28:32 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +--- Other differences: -- ++ python-numpy.spec ++ --- /var/tmp/diff_new_pack.NBTTp8/_old 2023-04-28 16:22:23.641669014 +0200 +++ /var/tmp/diff_new_pack.NBTTp8/_new 2023-04-28 16:22:23.645669038 +0200 @@ -72,6 +72,7 @@ ExclusiveArch: do_not_build %endif %endif +%{?sle15_python_module_pythons} Name: %{package_name} # set %%ver and %%_ver instead above Version:%{ver}
commit python-numpy for openSUSE:Factory
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-03-31 21:14:05 Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.31432 (New) Package is "python-numpy" Fri Mar 31 21:14:05 2023 rev:115 rq:1074078 version:1.24.2 Changes: --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2023-03-11 18:24:30.475026916 +0100 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.31432/python-numpy.changes 2023-03-31 21:14:10.574083697 +0200 @@ -1,0 +2,14 @@ +Fri Mar 24 07:02:57 UTC 2023 - Steve Kowalik + +- Add patch ignore-pkg_resources-deprecation.patch: + * Ignore DeprecationWarning from pkg_resources. + +--- +Wed Mar 22 13:08:22 UTC 2023 - Dirk Müller + +- update to 1.24.2: + just bugfixes, see + https://github.com/numpy/numpy/releases/tag/v1.24.2 + for details + +--- Old: numpy-1.24.1.tar.gz New: ignore-pkg_resources-deprecation.patch numpy-1.24.2.tar.gz Other differences: -- ++ python-numpy.spec ++ --- /var/tmp/diff_new_pack.Hze8u1/_old 2023-03-31 21:14:11.254086121 +0200 +++ /var/tmp/diff_new_pack.Hze8u1/_new 2023-03-31 21:14:11.262086150 +0200 @@ -17,8 +17,8 @@ %global flavor @BUILD_FLAVOR@%{nil} -%define ver 1.24.1 -%define _ver 1_24_1 +%define ver 1.24.2 +%define _ver 1_24_2 %define pname python-numpy %define plainpython python %define hpc_upcase_trans_hyph() %(echo %{**} | tr [a-z] [A-Z] | tr '-' '_') @@ -85,6 +85,8 @@ Patch0: numpy-buildfix.patch # PATCH-FIX-OPENSUSE numpy-1.9.0-remove-__declspec.patch -- fix for spurious compiler warnings that cause build failure Patch1: numpy-1.9.0-remove-__declspec.patch +# PATCH-FIX-OPENSUSE Ignore DeprecationWarnings when importing pkg_resources +Patch2: ignore-pkg_resources-deprecation.patch BuildRequires: %{python_module Cython >= 0.29.30} BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module devel} ++ ignore-pkg_resources-deprecation.patch ++ Index: numpy-1.24.2/pytest.ini === --- numpy-1.24.2.orig/pytest.ini +++ numpy-1.24.2/pytest.ini @@ -25,5 +25,7 @@ filterwarnings = # Ignore DeprecationWarnings from distutils ignore::DeprecationWarning:.*distutils ignore:\n\n `numpy.distutils`:DeprecationWarning +# Ignore DeprecationWarning from pkg_resources +ignore:pkg_resources:DeprecationWarning # Ignore mypy >= 0.971 DeprecationWarnings ignore:path is deprecated\. Use files\(\) instead:DeprecationWarning:mypy ++ numpy-1.24.1.tar.gz -> numpy-1.24.2.tar.gz ++ /work/SRC/openSUSE:Factory/python-numpy/numpy-1.24.1.tar.gz /work/SRC/openSUSE:Factory/.python-numpy.new.31432/numpy-1.24.2.tar.gz differ: char 5, line 1
commit python-numpy for openSUSE:Factory
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-03-11 18:23:39 Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.31432 (New) Package is "python-numpy" Sat Mar 11 18:23:39 2023 rev:114 rq:1070707 version:1.24.1 Changes: --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2023-02-03 22:16:27.599199278 +0100 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.31432/python-numpy.changes 2023-03-11 18:24:30.475026916 +0100 @@ -1,0 +2,6 @@ +Fri Mar 10 08:50:37 UTC 2023 - Matej Cepl + +- Skip test_ppc64_ibm_double_double128 test on ppc64* + architectures (gh#numpy/numpy#21094, bsc#1208865). + +--- Other differences: -- ++ python-numpy.spec ++ --- /var/tmp/diff_new_pack.u8XFZV/_old 2023-03-11 18:24:30.983029564 +0100 +++ /var/tmp/diff_new_pack.u8XFZV/_new 2023-03-11 18:24:30.987029585 +0100 @@ -285,6 +285,9 @@ # boo#1148173 gh#numpy/numpy#14438 %ifarch ppc64 ppc64le test_failok+=" or test_generalized_sq" +# situation with IBM and double numbers is ... complicated +# gh#numpy/numpy#21094 +test_failok+=" or test_ppc64_ibm_double_double128" %endif # these tests fail on big endian gh#numpy/numpy#11831 %ifarch s390x ppc ppc64
commit python-numpy for openSUSE:Factory
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-02-03 22:04:37 Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.4462 (New) Package is "python-numpy" Fri Feb 3 22:04:37 2023 rev:113 rq:1062552 version:1.24.1 Changes: --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2023-01-24 20:32:23.232392523 +0100 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.4462/python-numpy.changes 2023-02-03 22:16:27.599199278 +0100 @@ -1,0 +2,6 @@ +Wed Feb 1 21:44:21 UTC 2023 - Dirk Müller + +- build-conditionalize cblas dependency, it is missing on SLE <= 15 + related to bsc#1177260 not being fixable for SLE15 (jsc#PED-3257) + +--- Other differences: -- ++ python-numpy.spec ++ --- /var/tmp/diff_new_pack.T8LMyZ/_old 2023-02-03 22:16:28.015201695 +0100 +++ /var/tmp/diff_new_pack.T8LMyZ/_new 2023-02-03 22:16:28.019201718 +0100 @@ -46,8 +46,10 @@ # %if 0%{?suse_version} > 1500 %bcond_without libalternatives +%bcond_without cblas %else %bcond_with libalternatives +%bcond_with cblas %endif # %bcond_with ringdisabled @@ -112,11 +114,13 @@ BuildRequires: openblas-devel > 0.3.20 %else BuildRequires: blas-devel -BuildRequires: cblas-devel BuildRequires: lapack-devel +%if %{with cblas} # openblas has significantly better performance for some operations +BuildRequires: cblas-devel Recommends: libopenblas_pthreads0 %endif +%endif %if %{with libalternatives} BuildRequires: alts Requires: alts @@ -157,7 +161,9 @@ Requires: openblas-devel %else Requires: blas-devel +%if %{with cblas} Requires: cblas-devel +%endif Requires: lapack-devel %endif %else
commit python-numpy for openSUSE:Factory
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-24 19:42:13 Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.32243 (New) Package is "python-numpy" Tue Jan 24 19:42:13 2023 rev:112 rq:1060374 version:1.24.1 Changes: --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2023-01-06 17:05:09.296046330 +0100 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.32243/python-numpy.changes 2023-01-24 20:32:23.232392523 +0100 @@ -1,0 +2,8 @@ +Sun Jan 22 19:55:11 UTC 2023 - Ben Greiner + +- Slightly reformat the specfile condition blocks: The + %python_subpackages generator misses " %if" lines with a + preceding whitespace. Relevant for d:l:p:backports not having + libalternatives. + +--- Other differences: -- ++ python-numpy.spec ++ --- /var/tmp/diff_new_pack.xqloUw/_old 2023-01-24 20:32:23.840395741 +0100 +++ /var/tmp/diff_new_pack.xqloUw/_new 2023-01-24 20:32:23.844395762 +0100 @@ -103,27 +103,27 @@ %if %{without hpc} # Last version which packaged %%{_bindir}/f2py without update-alternatives Conflicts: %{plainpython}-numpy <= 1.12.0 - %if 0%{?suse_version} +%if 0%{?suse_version} BuildRequires: gcc-fortran - %else +%else BuildRequires: gcc-gfortran - %endif - %if %{with openblas} +%endif +%if %{with openblas} BuildRequires: openblas-devel > 0.3.20 - %else +%else BuildRequires: blas-devel BuildRequires: cblas-devel BuildRequires: lapack-devel # openblas has significantly better performance for some operations Recommends: libopenblas_pthreads0 - %endif - %if %{with libalternatives} +%endif +%if %{with libalternatives} BuildRequires: alts Requires: alts - %else +%else Requires(post): update-alternatives Requires(postun):update-alternatives - %endif +%endif %else BuildRequires: %{compiler_family}%{?c_f_ver}-compilers-hpc-macros-devel BuildRequires: libopenblas%{?hpc_ext}-%{compiler_family}%{?c_f_ver}-hpc-devel
commit python-numpy for openSUSE:Factory
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 + +- 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 + +- 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 + +- 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_modu
commit python-numpy for openSUSE:Factory
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 2022-10-31 10:44:18 Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.2275 (New) Package is "python-numpy" Mon Oct 31 10:44:18 2022 rev:110 rq:1030235 version:1.23.4 Changes: --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2022-05-30 12:42:22.624264896 +0200 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.2275/python-numpy.changes 2022-10-31 10:44:21.416750115 +0100 @@ -1,0 +2,191 @@ +Thu Oct 20 13:48:08 UTC 2022 - Ben Greiner + +- Update to 1.23.4 + * NumPy 1.23.4 is a maintenance release that fixes bugs +discovered after the 1.23.3 release and keeps the build +infrastructure current. The main improvements are fixes for +some annotation corner cases, a fix for a long time +nested_iters memory leak, and a fix of complex vector dot for +very large arrays. The Python versions supported for this +release are 3.8-3.11. + +--- +Tue Oct 11 08:27:00 UTC 2022 - Ben Greiner + +- Revert some spec-cleaner "Verschlimmbesserungen" +- Remove old unused directives for Python <=3.6 from specfile + +--- +Fri Sep 30 23:43:53 UTC 2022 - Arun Persaud + +- specfile: + * remove patch numpy-fix-cpu_asimdfhm.patch, included upstream + * update line numbers for other patches + * require c++ compiler + +- update to version 1.23.3: + * #22136: BLD: Add Python 3.11 wheels to aarch64 build + * #22148: MAINT: Update setup.py for Python 3.11. + * #22155: CI: Test NumPy build against old versions of GCC(6, 7, 8) + * #22156: MAINT: support IBM i system + * #22195: BUG: Fix circleci build + * #22214: BUG: Expose heapsort algorithms in a shared header + * #22215: BUG: Support using libunwind for backtrack + * #22216: MAINT: fix an incorrect pointer type usage in f2py + * #0: BUG: change overloads to play nice with pyright. + * #1: TST,BUG: Use fork context to fix MacOS savez test + * #2: TYP,BUG: Reduce argument validation in C-based + __class_getitem__ + * #3: TST: ensure np.equal.reduce raises a TypeError + * #4: BUG: Fix the implementation of numpy.array_api.vecdot + * #22230: BUG: Better report integer division overflow (backport) + +- changes from version 1.23.2: + * #22030: ENH: Add __array_ufunc__ typing support to the nin=1 + ufuncs + * #22031: MAINT, TYP: Fix np.angle dtype-overloads + * #22032: MAINT: Do not let _GenericAlias wrap the underlying + classes'... + * #22033: TYP,MAINT: Allow einsum subscripts to be passed via + integer... + * #22034: MAINT,TYP: Add object-overloads for the np.generic rich + comparisons + * #22035: MAINT,TYP: Allow the squeeze and transpose method to... + * #22036: BUG: Fix subarray to object cast ownership details + * #22037: BUG: Use Popen to silently invoke f77 -v + * #22038: BUG: Avoid errors on NULL during deepcopy + * #22039: DOC: Add versionchanged for converter callable behavior. + * #22057: MAINT: Quiet the anaconda uploads. + * #22078: ENH: reorder includes for testing on top of system + installations... + * #22106: TST: fix test_linear_interpolation_formula_symmetric + * #22107: BUG: Fix skip condition for + test_loss_of_precision[complex256] + * #22115: BLD: Build python3.11.0rc1 wheels. + +- changes from version 1.23.1: + * #21866: BUG: Fix discovered MachAr (still used within valgrind) + * #21867: BUG: Handle NaNs correctly for float16 during sorting + * #21868: BUG: Use keepdims during normalization in np.average + and... + * #21869: DOC: mention changes to max_rows behaviour in np.loadtxt + * #21870: BUG: Reject non integer array-likes with size 1 in delete + * #21949: BLD: Make can_link_svml return False for 32bit builds on + x86_64 + * #21951: BUG: Reorder extern "C" to only apply to function + declarations... + * #21952: BUG: Fix KeyError in crackfortran operator support + +- changes from version 1.23.0: + * long changelog +https://github.com/numpy/numpy/blob/main/doc/changelog/1.23.0-changelog.rst + +- changes from version 1.22.4: + * #21191: TYP, BUG: Fix np.lib.stride_tricks re-exported under + the... + * #21192: TST: Bump mypy from 0.931 to 0.940 + * #21243: MAINT: Explicitly re-export the types in numpy._typing + * #21245: MAINT: Specify sphinx, numpydoc versions for CI doc builds + * #21275: BUG: Fix typos + * #21277: ENH, BLD: Fix math feature detection for wasm + * #21350: MAINT: Fix failing simd and cygwin tests. + * #21438: MAINT: Fix failing Python 3.8 32-bit Windows test. + * #21444: BUG: add linux guard per #21
commit python-numpy for openSUSE:Factory
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 2022-05-30 12:42:07 Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.2254 (New) Package is "python-numpy" Mon May 30 12:42:07 2022 rev:109 rq:979707 version:1.21.6 Changes: --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2021-12-12 21:27:13.548327905 +0100 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.2254/python-numpy.changes 2022-05-30 12:42:22.624264896 +0200 @@ -1,0 +2,16 @@ +Sun May 29 18:15:47 UTC 2022 - Dirk M??ller + +- update to 1.21.6: + * Do not forward `__(deep)copy__` calls of `_GenericAlias`... + * Fix float16 einsum fastpaths using wrong tempvar + * Print os error message when the executable not exist + * Force ``npymath` ` to respect ``npy_longdouble`` + * Fix failure to create aligned, empty structured dtype + * provide a convenience function to replace npy_load_module + * update wheel to version that supports python3.10 + * Clear errors correctly in F2PY conversions + * add a warningfilter to fix pytest workflow. + * Help boost::python libraries at least not crash +- drop bpo-45167-fixes.patch (upstream) + +--- Old: bpo-45167-fixes.patch numpy-1.21.4.zip New: numpy-1.21.6.zip Other differences: -- ++ python-numpy.spec ++ --- /var/tmp/diff_new_pack.fdEijh/_old 2022-05-30 12:42:23.304265801 +0200 +++ /var/tmp/diff_new_pack.fdEijh/_new 2022-05-30 12:42:23.312265811 +0200 @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,8 +24,8 @@ %endif %global flavor @BUILD_FLAVOR@%{nil} -%define ver 1.21.4 -%define _ver 1_21_4 +%define ver 1.21.6 +%define _ver 1_21_6 %define pname python-numpy %define hpc_upcase_trans_hyph() %(echo %{**} | tr [a-z] [A-Z] | tr '-' '_') %if "%{flavor}" == "" @@ -84,8 +84,6 @@ Patch0: numpy-buildfix.patch # PATCH-FIX-OPENSUSE numpy-1.9.0-remove-__declspec.patch -- fix for spurious compiler warnings that cause build failure Patch1: numpy-1.9.0-remove-__declspec.patch -# PATCH-FIX-UPSTREAM -- gh#numpy/numpy#20347 -Patch2: bpo-45167-fixes.patch # PATCH-FIX-UPSTREAM -- gh#numpy/numpy#20388 Patch3: numpy-fix-cpu_asimdfhm.patch BuildConflicts: gcc11 < 11.2
commit python-numpy for openSUSE:Factory
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 + +- 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
commit python-numpy for openSUSE:Factory
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-09 19:45:10 Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.2520 (New) Package is "python-numpy" Thu Dec 9 19:45:10 2021 rev:107 rq:935927 version:1.21.4 Changes: --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2021-11-21 23:52:09.614257163 +0100 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.2520/python-numpy.changes 2021-12-09 19:45:21.477125996 +0100 @@ -1,0 +2,30 @@ +Sun Dec 5 07:26:13 UTC 2021 - Matej Cepl + +- Fix abbreviated references + +--- +Fri Dec 3 10:54:01 UTC 2021 - Guillaume GARDET + +- Update to 1.21.4: + * #20278: BUG: Fix shadowed reference of dtype in type stub + * #20293: BUG: Fix headers for universal2 builds + * #20294: BUG: VOID_nonzero could sometimes mutate alignment flag + * #20295: BUG: Do not use nonzero fastpath on unaligned arrays + * #20296: BUG: Distutils patch to allow for 2 as a minor version (!) + * #20297: BUG, SIMD: Fix 64-bit/8-bit integer division by a scalar + * #20298: BUG, SIMD: Workaround broadcasting SIMD 64-bit integers on MSVC... + * #20300: REL: Prepare for the NumPy 1.21.4 release. + * #20302: TST: Fix a Arrayterator typing test failure +- Release to 1.21.3: + * #19745: ENH: Add dtype-support to 3 `generic/ndarray methods + * #19955: BUG: Resolve Divide by Zero on Apple silicon + test failures... + * #19958: MAINT: Mark type-check-only ufunc subclasses as ufunc aliases... + * #19994: BUG: np.tan(np.inf) test failure + * #20080: BUG: Correct incorrect advance in PCG with emulated int128 + * #20081: BUG: Fix NaT handling in the PyArray_CompareFunc for datetime... + * #20082: DOC: Ensure that we add documentation also as to the dict for... + * #20106: BUG: core: result_type(0, np.timedelta64(4)) would seg. fault. +- Add patch to fix aarch64 support: + * numpy-fix-cpu_asimdfhm.patch + +--- Old: numpy-1.21.2.zip New: numpy-1.21.4.zip numpy-fix-cpu_asimdfhm.patch Other differences: -- ++ python-numpy.spec ++ --- /var/tmp/diff_new_pack.oiQRT5/_old 2021-12-09 19:45:22.293126389 +0100 +++ /var/tmp/diff_new_pack.oiQRT5/_new 2021-12-09 19:45:22.297126391 +0100 @@ -24,8 +24,8 @@ %endif %global flavor @BUILD_FLAVOR@%{nil} -%define ver 1.21.2 -%define _ver 1_21_2 +%define ver 1.21.4 +%define _ver 1_21_4 %define pname python-numpy %define hpc_upcase_trans_hyph() %(echo %{**} | tr [a-z] [A-Z] | tr '-' '_') %if "%{flavor}" == "" @@ -84,8 +84,10 @@ Patch0: numpy-buildfix.patch # PATCH-FIX-OPENSUSE numpy-1.9.0-remove-__declspec.patch -- fix for spurious compiler warnings that cause build failure Patch1: numpy-1.9.0-remove-__declspec.patch -# PATCH-FIX-UPSTREAM -- gh#numpy/numpy/commit/8871c7285fc097fd1bf713aa184cba7e2804f625 +# PATCH-FIX-UPSTREAM -- gh#numpy/numpy#20347 Patch2: bpo-45167-fixes.patch +# PATCH-FIX-UPSTREAM -- gh#numpy/numpy#20388 +Patch3: numpy-fix-cpu_asimdfhm.patch BuildConflicts: gcc11 < 11.2 BuildRequires: %{python_module Cython >= 0.29.24} BuildRequires: %{python_module base >= 3.7} @@ -178,7 +180,7 @@ sed -i '1s/^#!.*$//' numpy/random/_examples/cython/*.pyx # force cythonization -rm PKG-INFO +rm -f PKG-INFO %build %define _lto_cflags %{nil} ++ numpy-fix-cpu_asimdfhm.patch ++ >From 2113cad8cbb4c4bc9469e0c94025bd7cbbe6f2d6 Mon Sep 17 00:00:00 2001 From: Thomas Green Date: Tue, 16 Nov 2021 22:36:18 + Subject: [PATCH] Update cpu_asimdfhm.c Updated `vfmlal_low_u32` and `vfmlslq_high_u32` to their `f16` new names. Described here: https://www.mail-archive.com/gcc-bugs@gcc.gnu.org/msg664008.html Many of the intrinsics had names updated. Supposedly previous specifications were not published so old names not required. --- numpy/distutils/checks/cpu_asimdfhm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/numpy/distutils/checks/cpu_asimdfhm.c b/numpy/distutils/checks/cpu_asimdfhm.c index bb437aa4035..cb49751c4c2 100644 --- a/numpy/distutils/checks/cpu_asimdfhm.c +++ b/numpy/distutils/checks/cpu_asimdfhm.c @@ -10,8 +10,8 @@ int main(void) float32x4_t vf = vdupq_n_f32(1.0f); float32x2_t vlf = vdup_n_f32(1.0f); -int ret = (int)vget_lane_f32(vfmlal_low_u32(vlf, vlhp, vlhp), 0); -ret += (int)vgetq_lane_f32(vfmlslq_high_u32(vf, vhp, vhp), 0); +int ret = (int)vget_lane_f32(vfmlal_low_f16(vlf, vlhp, vlhp), 0); +ret += (int)vgetq_lane_f32(vfmlslq_high_f16(vf, vhp,
commit python-numpy for openSUSE:Factory
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-11-21 23:51:47 Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.1895 (New) Package is "python-numpy" Sun Nov 21 23:51:47 2021 rev:106 rq:932378 version:1.21.2 Changes: --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2021-11-15 00:06:18.795600503 +0100 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.1895/python-numpy.changes 2021-11-21 23:52:09.614257163 +0100 @@ -1,0 +2,6 @@ +Fri Nov 19 00:33:15 UTC 2021 - Steve Kowalik + +- Add patch bpo-45167-fixes.patch: + * Support Python >= 3.9.8 changes. + +--- New: bpo-45167-fixes.patch Other differences: -- ++ python-numpy.spec ++ --- /var/tmp/diff_new_pack.D1eWFU/_old 2021-11-21 23:52:10.230255177 +0100 +++ /var/tmp/diff_new_pack.D1eWFU/_new 2021-11-21 23:52:10.230255177 +0100 @@ -84,6 +84,8 @@ Patch0: numpy-buildfix.patch # PATCH-FIX-OPENSUSE numpy-1.9.0-remove-__declspec.patch -- fix for spurious compiler warnings that cause build failure Patch1: numpy-1.9.0-remove-__declspec.patch +# PATCH-FIX-UPSTREAM -- gh#numpy/numpy/commit/8871c7285fc097fd1bf713aa184cba7e2804f625 +Patch2: bpo-45167-fixes.patch BuildConflicts: gcc11 < 11.2 BuildRequires: %{python_module Cython >= 0.29.24} BuildRequires: %{python_module base >= 3.7} ++ bpo-45167-fixes.patch ++ >From 8871c7285fc097fd1bf713aa184cba7e2804f625 Mon Sep 17 00:00:00 2001 From: Bas van Beek Date: Wed, 10 Nov 2021 15:36:00 +0100 Subject: [PATCH] MAINT: Do not forward `__(deep)copy__` calls of `_GenericAlias` to the wrapped type Adapt to the python 3.9.8 changes made in bpo-45167. --- numpy/typing/_generic_alias.py | 2 ++ numpy/typing/tests/test_generic_alias.py | 16 2 files changed, 18 insertions(+) diff --git a/numpy/typing/_generic_alias.py b/numpy/typing/_generic_alias.py index 932f12dd05d..1eb2c8c05f0 100644 --- a/numpy/typing/_generic_alias.py +++ b/numpy/typing/_generic_alias.py @@ -185,6 +185,8 @@ def __eq__(self, value: object) -> bool: "__mro_entries__", "__reduce__", "__reduce_ex__", +"__copy__", +"__deepcopy__", }) def __getattribute__(self, name: str) -> Any: diff --git a/numpy/typing/tests/test_generic_alias.py b/numpy/typing/tests/test_generic_alias.py index 3021d985934..39343420bdc 100644 --- a/numpy/typing/tests/test_generic_alias.py +++ b/numpy/typing/tests/test_generic_alias.py @@ -1,6 +1,7 @@ from __future__ import annotations import sys +import copy import types import pickle import weakref @@ -80,6 +81,21 @@ def test_pass(self, name: str, func: FuncType) -> None: value_ref = func(NDArray_ref) assert value == value_ref +@pytest.mark.parametrize("name,func", [ +("__copy__", lambda n: n == copy.copy(n)), +("__deepcopy__", lambda n: n == copy.deepcopy(n)), +]) +def test_copy(self, name: str, func: FuncType) -> None: +value = func(NDArray) + +# xref bpo-45167 +GE_398 = ( +sys.version_info[:2] == (3, 9) and sys.version_info >= (3, 9, 8) +) +if GE_398 or sys.version_info >= (3, 10, 1): +value_ref = func(NDArray_ref) +assert value == value_ref + def test_weakref(self) -> None: """Test ``__weakref__``.""" value = weakref.ref(NDArray)()
commit python-numpy for openSUSE:Factory
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-11-15 00:06:14 Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.1890 (New) Package is "python-numpy" Mon Nov 15 00:06:14 2021 rev:105 rq:930811 version:1.21.2 Changes: --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2021-10-25 15:17:25.429675272 +0200 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.1890/python-numpy.changes 2021-11-15 00:06:18.795600503 +0100 @@ -1,0 +2,6 @@ +Tue Nov 9 15:27:58 UTC 2021 - Andreas Schwab + +- Expect failure of test_fpclass and test_float on riscv64 +- Bump disk space constraint + +--- Other differences: -- ++ python-numpy.spec ++ --- /var/tmp/diff_new_pack.tlzbvF/_old 2021-11-15 00:06:19.415601007 +0100 +++ /var/tmp/diff_new_pack.tlzbvF/_new 2021-11-15 00:06:19.419601011 +0100 @@ -279,6 +279,12 @@ # gh#numpy/numpy#18388 test_failok+=" or test_float_remainder_overflow" %endif +%ifarch riscv64 +# These tests fail due to non-portable assumptions about the signbit of NaN +# gh#numpy/numpy#8213 +test_failok+=" or test_fpclass" +test_failok+=" or test_float" +%endif %{python_expand # for all python3 flavors export PYTHONPATH=%{buildroot}%{$python_sitearch} export PYTHONDONTWRITEBYTECODE=1 ++ _constraints ++ --- /var/tmp/diff_new_pack.tlzbvF/_old 2021-11-15 00:06:19.451601037 +0100 +++ /var/tmp/diff_new_pack.tlzbvF/_new 2021-11-15 00:06:19.451601037 +0100 @@ -4,7 +4,7 @@ 8 - 6 + 9
commit python-numpy for openSUSE:Factory
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-10-25 15:16:58 Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.1890 (New) Package is "python-numpy" Mon Oct 25 15:16:58 2021 rev:104 rq:924802 version:1.21.2 Changes: --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2021-09-25 00:35:38.175144528 +0200 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.1890/python-numpy.changes 2021-10-25 15:17:25.429675272 +0200 @@ -1,0 +2,11 @@ +Wed Oct 6 19:16:45 UTC 2021 - Ben Greiner + +- The update- and libalternatives logic is required in the standard + build, not the hpc flavor + +--- +Thu Sep 30 10:05:18 UTC 2021 - Stefan Schubert + +- Use libalternatives instead of update-alternatives. + +--- Other differences: -- ++ python-numpy.spec ++ --- /var/tmp/diff_new_pack.Dl491J/_old 2021-10-25 15:17:26.257675791 +0200 +++ /var/tmp/diff_new_pack.Dl491J/_new 2021-10-25 15:17:26.257675791 +0200 @@ -16,6 +16,13 @@ # +# +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif + %global flavor @BUILD_FLAVOR@%{nil} %define ver 1.21.2 %define _ver 1_21_2 @@ -86,7 +93,7 @@ BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module testsuite} -BuildRequires: python-rpm-macros +BuildRequires: python-rpm-macros >= 20210929 BuildRequires: unzip %if 0%{?suse_version} BuildRequires: fdupes @@ -110,14 +117,19 @@ # Protect it from substitution %define oldpy_numpy python-numpy Conflicts: %{oldpy_numpy} <= 1.12.0 + %if %{with libalternatives} +BuildRequires: alts +Requires: alts + %else +Requires(post): update-alternatives +Requires(postun):update-alternatives + %endif %else BuildRequires: %{compiler_family}%{?c_f_ver}-compilers-hpc-macros-devel BuildRequires: libopenblas%{?hpc_ext}-%{compiler_family}%{?c_f_ver}-hpc-devel BuildRequires: lua-lmod BuildRequires: suse-hpc Requires: libopenblas%{?hpc_ext}-%{compiler_family}%{?c_f_ver}-hpc -Requires(post): update-alternatives -Requires(postun):update-alternatives %endif %python_subpackages @@ -280,6 +292,10 @@ %endif %if %{without hpc} +%pre +# If libalternatives is used: Removing old update-alternatives entries. +%python_libalternatives_reset_alternative f2py + %post %python_install_alternative f2py
commit python-numpy for openSUSE:Factory
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-09-25 00:35:08 Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.1899 (New) Package is "python-numpy" Sat Sep 25 00:35:08 2021 rev:103 rq:920616 version:1.21.2 Changes: --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2021-07-21 19:05:31.835202924 +0200 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.1899/python-numpy.changes 2021-09-25 00:35:38.175144528 +0200 @@ -1,0 +2,54 @@ +Mon Sep 20 16:51:56 UTC 2021 - Ben Greiner + +- Update to 1.21.2 + * #19497: MAINT: set Python version for 1.21.x to <3.11 + * #19533: BUG: Fix an issue wherein importing numpy.typing could raise + * #19646: MAINT: Update Cython version for Python 3.10. + * #19648: TST: Bump the python 3.10 test version from beta4 to rc1 + * #19651: TST: avoid distutils.sysconfig in runtests.py + * #19652: MAINT: add missing dunder method to nditer type hints + * #19656: BLD, SIMD: Fix testing extra checks when -Werror isn't applicable... + * #19657: BUG: Remove logical object ufuncs with bool output + * #19658: MAINT: Include .coveragerc in source distributions to support... + * #19659: BUG: Fix bad write in masked iterator output copy paths + * #19660: ENH: Add support for windows on arm targets + * #19661: BUG: add base to templated arguments for platlib + * #19662: BUG,DEP: Non-default UFunc signature/dtype usage should be deprecated + * #19666: MAINT: Add Python 3.10 to supported versions. + * #19668: TST,BUG: Sanitize path-separators when running runtest.py + * #19671: BLD: load extra flags when checking for libflame + * #19676: BLD: update circleCI docker image + * #19677: REL: Prepare for 1.21.2 release. +- Release 1.21.1 + * #19311: REV,BUG: Replace NotImplemented with typing.Any + * #19324: MAINT: Fixed the return-dtype of ndarray.real and imag + * #19330: MAINT: Replace "dtype[Any]" with dtype in the definiton of... + * #19342: DOC: Fix some docstrings that crash pdf generation. + * #19343: MAINT: bump scipy-mathjax + * #19347: BUG: Fix arr.flat.index for large arrays and big-endian machines + * #19348: ENH: add numpy.f2py.get_include function + * #19349: BUG: Fix reference count leak in ufunc dtype handling + * #19350: MAINT: Annotate missing attributes of np.number subclasses + * #19351: BUG: Fix cast safety and comparisons for zero sized voids + * #19352: BUG: Correct Cython declaration in random + * #19353: BUG: protect against accessing base attribute of a NULL subarray + * #19365: BUG, SIMD: Fix detecting AVX512 features on Darwin + * #19366: MAINT: remove print()'s in distutils template handling + * #19390: ENH: SIMD architectures to show_config + * #19391: BUG: Do not raise deprecation warning for all nans in unique... + * #19392: BUG: Fix NULL special case in object-to-any cast code + * #19430: MAINT: Use arm64-graviton2 for testing on travis + * #19495: BUILD: update OpenBLAS to v0.3.17 + * #19496: MAINT: Avoid unicode characters in division SIMD code comments + * #19499: BUG, SIMD: Fix infinite loop during count non-zero on GCC-11 + * #19500: BUG: fix a numpy.npiter leak in npyiter_multi_index_set + * #19501: TST: Fix a GenericAlias test failure for python 3.9.0 + * #19502: MAINT: Start testing with Python 3.10.0b3. + * #19503: MAINT: Add missing dtype overloads for object- and ctypes-based... + * #19510: REL: Prepare for NumPy 1.21.1 release. +- Drop 0001-BUG-Fix-infinite-loop-on-gcc11.patch fixed upstream + (by gcc 11.2) +- Drop numpy-pr19326-fix-subarray-segfault.patch merged upstream + (backported) + +--- Old: 0001-BUG-Fix-infinite-loop-on-gcc11.patch numpy-1.21.0.zip numpy-pr19326-fix-subarray-segfault.patch New: numpy-1.21.2.zip Other differences: -- ++ python-numpy.spec ++ --- /var/tmp/diff_new_pack.PcOwgB/_old 2021-09-25 00:35:39.943146374 +0200 +++ /var/tmp/diff_new_pack.PcOwgB/_new 2021-09-25 00:35:39.947146378 +0200 @@ -17,8 +17,8 @@ %global flavor @BUILD_FLAVOR@%{nil} -%define ver 1.21.0 -%define _ver 1_21_0 +%define ver 1.21.2 +%define _ver 1_21_2 %define pname python-numpy %define hpc_upcase_trans_hyph() %(echo %{**} | tr [a-z] [A-Z] | tr '-' '_') %if "%{flavor}" == "" @@ -77,11 +77,8 @@ Patch0: numpy-buildfix.patch # PATCH-FIX-OPENSUSE numpy-1.9.0-remove-__declspec.patch -- fix for spurious compiler warnings that cause build failure Patch1: numpy-1.9.0-remove-__declspec.patch -# PATCH-FIX-UPSTREAM 0001-BUG-Fix-infinite-loop-on-gcc11.patch -Patch2: 0001
commit python-numpy for openSUSE:Factory
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-07-21 19:05:29 Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.2632 (New) Package is "python-numpy" Wed Jul 21 19:05:29 2021 rev:102 rq:906772 version:1.21.0 Changes: --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2021-07-10 22:54:18.975844783 +0200 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.2632/python-numpy.changes 2021-07-21 19:05:31.835202924 +0200 @@ -1,0 +2,8 @@ +Fri Jul 16 15:14:36 UTC 2021 - Ben Greiner + +- Fix segfault with subarray access + * Add numpy-pr19326-fix-subarray-segfault.patch + * Fixes python-zarr segfault + * gh#numpy/numpy#19326 + +--- New: numpy-pr19326-fix-subarray-segfault.patch Other differences: -- ++ python-numpy.spec ++ --- /var/tmp/diff_new_pack.yXpVs6/_old 2021-07-21 19:05:32.563204189 +0200 +++ /var/tmp/diff_new_pack.yXpVs6/_new 2021-07-21 19:05:32.567204197 +0200 @@ -79,6 +79,8 @@ Patch1: numpy-1.9.0-remove-__declspec.patch # PATCH-FIX-UPSTREAM 0001-BUG-Fix-infinite-loop-on-gcc11.patch Patch2: 0001-BUG-Fix-infinite-loop-on-gcc11.patch +# PATCH-FIX-UPSTREAM numpy-pr19326-fix-subarray-segfault.patch -- gh#numpy/numpy#19326 +Patch3: https://github.com/numpy/numpy/pull/19326.patch#/numpy-pr19326-fix-subarray-segfault.patch BuildRequires: %{python_module Cython >= 0.29.23} BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module devel} @@ -159,10 +161,7 @@ %{?with_hpc:%{hpc_python_master_package devel -a }} %prep -%setup -q -n numpy-%{version} -%patch0 -p1 -%patch1 -p1 -%patch2 -p1 +%autosetup -p1 -n numpy-%{version} # Fix non-executable scripts sed -i '1s/^#!.*$//' numpy/{compat/setup,random/_examples/cython/setup,distutils/{conv_template,cpuinfo,exec_command,from_template,setup,system_info},f2py/{__init__,auxfuncs,capi_maps,cb_rules,cfuncs,common_rules,crackfortran,diagnose,f2py2e,f90mod_rules,func2subr,rules,setup,use_rules},ma/{setup,bench},matrixlib/setup,setup,testing/{print_coercion_tables,setup}}.py sed -i '1s/^#!.*$//' numpy/random/_examples/cython/*.pyx ++ numpy-pr19326-fix-subarray-segfault.patch ++ >From be09bb6ba4d27fbd1f667d34bb2f11cccb446d65 Mon Sep 17 00:00:00 2001 From: Gregory Lee Date: Thu, 24 Jun 2021 08:37:01 -0400 Subject: [PATCH 1/4] BUG: protect against access an attribute of a NULL pointer Have PyArray_GetCastSafety return -1 if from is NULL --- numpy/core/src/multiarray/convert_datatype.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/numpy/core/src/multiarray/convert_datatype.c b/numpy/core/src/multiarray/convert_datatype.c index d197a4bea31..716e5dd3d11 100644 --- a/numpy/core/src/multiarray/convert_datatype.c +++ b/numpy/core/src/multiarray/convert_datatype.c @@ -417,6 +417,9 @@ PyArray_GetCastSafety( if (to != NULL) { to_dtype = NPY_DTYPE(to); } +if (from == NULL) { +return -1; +} PyObject *meth = PyArray_GetCastingImpl(NPY_DTYPE(from), to_dtype); if (meth == NULL) { return -1; @@ -3293,8 +3296,10 @@ void_to_void_resolve_descriptors( casting = NPY_NO_CASTING | _NPY_CAST_IS_VIEW; } } -NPY_CASTING field_casting = PyArray_GetCastSafety( -given_descrs[0]->subarray->base, given_descrs[1]->subarray->base, NULL); + +PyArray_Descr *from_base = (from_sub == NULL) ? NULL : from_sub->base; +PyArray_Descr *to_base = (to_sub == NULL) ? NULL : to_sub->base; +NPY_CASTING field_casting = PyArray_GetCastSafety(from_base, to_base, NULL); if (field_casting < 0) { return -1; } >From 3c901b49bd8715c93824c27682d81434d869498a Mon Sep 17 00:00:00 2001 From: Gregory Lee Date: Thu, 24 Jun 2021 11:16:22 -0400 Subject: [PATCH 2/4] pass descriptor rather than null --- numpy/core/src/multiarray/convert_datatype.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/numpy/core/src/multiarray/convert_datatype.c b/numpy/core/src/multiarray/convert_datatype.c index 716e5dd3d11..1bba276d2d1 100644 --- a/numpy/core/src/multiarray/convert_datatype.c +++ b/numpy/core/src/multiarray/convert_datatype.c @@ -417,9 +417,6 @@ PyArray_GetCastSafety( if (to != NULL) { to_dtype = NPY_DTYPE(to); } -if (from == NULL) { -return -1; -} PyObject *meth = PyArray_GetCastingImpl(NPY_DTYPE(from), to_dtype); if (meth == NULL) { return -1; @@ -3297,8 +3294,8 @@ void_to_vo
commit python-numpy for openSUSE:Factory
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-07-10 22:54:04 Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.2625 (New) Package is "python-numpy" Sat Jul 10 22:54:04 2021 rev:101 rq:904588 version:1.21.0 Changes: --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2021-06-11 00:17:39.081210330 +0200 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.2625/python-numpy.changes 2021-07-10 22:54:18.975844783 +0200 @@ -1,0 +2,601 @@ +Wed Jul 7 08:24:03 UTC 2021 - Antonio Larrosa + +- update to 1.21.0: + * DEP: Deprecate data_type.dtype if attribute is not already... + * ENH: Implement faster keyword argument parsing capable of METH_FASTCALL + * ENH: Optimize and cleanup ufunc calls and ufunc CheckOverrides + * BUG: Remove temporary change of descr/flags in VOID functions + * DOC: Add more information about poly1d -> polynomial to reference... + * ENH: Warn when reloading numpy or using numpy in sub-interpreter + * DOC: Fix for building with sphinx 3 + * DOC: unify the docs for np.transpose and ndarray.transpose + * DOC: added examples section for rfft2 and irfft2 docstring + * DOC: Fix Typo (Wrong argument name) + * ENH: Phase unwrapping generalized to arbitrary interval size + * SIMD: Optimize the performance of np.packbits in AVX2/AVX512F/VSX. + * MAINT: Use numpy version for f2py version. + * DEP: Shift correlate mode parsing to C and deprecate inexact... + * DEP: Formally deprecate np.typeDict + * SIMD: Replace raw SIMD of sin/cos with NPYV(universal intrinsics) + * MAINT: Bump pydata-sphinx-theme and set logo link to index + * DOC: Add module template + * ENH: Make ndarray generic w.r.t. its shape and dtype + * ENH: Added libdivide for floor divide + * BUG, Benchmark: fix passing optimization build options to asv + * MAINT, Benchmark: print the supported CPU features during the... + * ENH: Add annotations for comparison operations + * SIMD: Optimize the performance of einsum's submodule multiply... + * ENH, SIMD: Add new NPYV intrinsics pack(0) + * ENH, SIMD: Add new NPYV intrinsics pack(1) + * BLD: Enable Werror=undef in travis + * ENH: add support for fujitsu compiler to numpy. + * ENH: Add two new _Like unions + * BUG: Ignore fewer errors during array-coercion + * MAINT: Add git rules to ignore all SIMD generated files + * ENH: Add a mypy plugin for inferring platform-specific np.number... + * TST: use latest pypy37 not pypy36 + * DOC: Doc for deprecate_with_doc + * DOC: Clarify docs of np.resize(). + * MAINT: Update master after 1.20.x branch. + * Make it clearer that np.interp input must be monotonically increasing + * MAINT: Implement new casting loops based on NEP 42 and 43 + * DOC: fix typo in glossary.rst + * BUG, TST: use python-version not PYTHON_VERSION + * DOC: update the release howto for oldest-supported-numpy + * MAINT: clean up a spurious warning in numpy/typing/setup.py + * DOC: Prepare for 1.20.0 release + * DOC: fixed typo in np-indexing.png explaining [-2:] slice in... + * BUG: Fix buffer readflag errors and small leaks + * BUG: np.arange: Allow stop not start as sole kwargs. + * MAINT: Bump hypothesis from 5.41.3 to 5.41.4 + * MAINT: Remove duplicate dictionary entry + * BUG: numpy.putmask not respecting writeable flag + * ENH: Timestamp development versions. + * DOC: Update arraycreation + * DOC: Correct sentence/statement composition + * DOC: Rename basics to fundamentals + added description + * MAINT: Remove remaining uses of Python 3.6. + * ENH: Speed up default where in the reduce-like method + * BUG: merging PR to use -Werror=undef broke another PR + * DEP: Finalize unravel_index dims alias for shape keyword + * BUG: Fix a MacOS build failure + * BUG: 'bool' object has no attribute 'ndim' + * BUG: remove stray '+' from f-string upgrade in numba/extending.py + * DOC: Update release notes to mention type(dtype) is not np.dtype + * NEP: Update NEP 42 and 43 according to the current implementation + * BUG: Enforce high >= low on uniform number generators + * MAINT: Replace contextlib_nullcontext with contextlib.nullcontext + * DOC: Add information about leak checking and valgrind + * TST: Fixed an issue where the typing tests would fail for comparison... + * DOC: Clarify savez documentation of naming arrays in output file + * [DOC]: Wrong length for underline in docstring. + * MAINT: Bump hypothesis from 5.41.4 to 5.41.5 + * BUG: Removed empty String from Nag Compiler's Flags + * NEP: Accept NEP 42 -- New and extensible DTypes + * DOC: Replace {var} in docstrings type annotation with `scalar... + * ENH: Use versioneer to manage numpy versions. + * TST: Fix cross
commit python-numpy for openSUSE:Factory
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-06-11 00:17:37 Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.32437 (New) Package is "python-numpy" Fri Jun 11 00:17:37 2021 rev:100 rq:896981 version:1.20.3 Changes: --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2021-05-12 19:31:23.599244412 +0200 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.32437/python-numpy.changes 2021-06-11 00:17:39.081210330 +0200 @@ -1,0 +2,20 @@ +Wed Jun 2 18:56:39 UTC 2021 - Dirk M??ller + +- update to 1.20.3: + * BUG: Correct datetime64 missing type overload for datetime.date... + * MAINT: Remove __all__ in favor of explicit re-exports + * BLD: Strip extra newline when dumping gfortran version on MacOS + * BUG: fix segfault in object/longdouble operations + * MAINT: Use towncrier build explicitly + * MAINT: Relax certain integer-type constraints + * MAINT: Remove unsafe unions and ABCs from return-annotations + * MAINT: Allow more recursion depth for scalar tests. + * BUG: Initialize the full nditer buffer in case of error + * BLD: remove unnecessary flag -faltivec on macOS + * MAINT, CI: treats _SIMD module build warnings as errors through... + * BUG: for MINGW, threads.h existence test requires GLIBC > 2.12 + * BUG: Make changelog recognize gh- as a PR number prefix. + * REL, DOC: Prepare for the NumPy 1.20.3 release. + * BUG: Fix failing mypy test in 1.20.x. + +--- Old: numpy-1.20.2.zip New: numpy-1.20.3.zip Other differences: -- ++ python-numpy.spec ++ --- /var/tmp/diff_new_pack.vamioE/_old 2021-06-11 00:17:40.737213208 +0200 +++ /var/tmp/diff_new_pack.vamioE/_new 2021-06-11 00:17:40.737213208 +0200 @@ -1,5 +1,5 @@ # -# spec file for package python-numpy +# spec file # # Copyright (c) 2021 SUSE LLC # @@ -17,8 +17,8 @@ %global flavor @BUILD_FLAVOR@%{nil} -%define ver 1.20.2 -%define _ver 1_20_2 +%define ver 1.20.3 +%define _ver 1_20_3 %define pname python-numpy %define hpc_upcase_trans_hyph() %(echo %{**} | tr [a-z] [A-Z] | tr '-' '_') %if "%{flavor}" == ""
commit python-numpy for openSUSE:Factory
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-05-12 19:31:17 Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.2988 (New) Package is "python-numpy" Wed May 12 19:31:17 2021 rev:99 rq:891397 version:1.20.2 Changes: --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2021-02-16 22:33:57.389453237 +0100 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.2988/python-numpy.changes 2021-05-12 19:31:23.599244412 +0200 @@ -1,0 +2,23 @@ +Fri May 7 20:39:32 UTC 2021 - Dirk M??ller + +- update to 1.20.2: + * MAINT: Update f2py from master. + * BUG: diagflat could overflow on windows or 32-bit platforms + * BUG: Fix refcount leak in f2py complex_double_from_pyobj. + * BUG: Fix tiny memory leaks when like= overrides are used + * BUG: Remove temporary change of descr/flags in VOID functions + * BUG: Segfault in nditer buffer dealloc for Object arrays + * BUG: Remove suspicious type casting + * BUG: remove nonsensical comparison of pointer < 0 + * BUG: verify pointer against NULL before using it + * BUG: check if PyArray_malloc succeeded + * BUG: incorrect error fallthrough in nditer + * MAINT: Add annotations for dtype.__getitem__, __mul__ and??? + * BUG: NameError in numpy.distutils.fcompiler.compaq + * BUG: Fixed where keyword for np.mean & np.var methods + * MAINT: Ensure that re-exported sub-modules are properly annotated + * BUG: Fix ma coercion list-of-ma-arrays if they do not cast to??? + * BUG: Fix small valgrind-found issues + * BUG: Fix small issues found with pytest-leaks + +--- Old: numpy-1.20.1.zip New: numpy-1.20.2.zip Other differences: -- ++ python-numpy.spec ++ --- /var/tmp/diff_new_pack.m3rWTr/_old 2021-05-12 19:31:24.263241463 +0200 +++ /var/tmp/diff_new_pack.m3rWTr/_new 2021-05-12 19:31:24.267241446 +0200 @@ -17,8 +17,8 @@ %global flavor @BUILD_FLAVOR@%{nil} -%define ver 1.20.1 -%define _ver 1_20_1 +%define ver 1.20.2 +%define _ver 1_20_2 %define pname python-numpy %define hpc_upcase_trans_hyph() %(echo %{**} | tr [a-z] [A-Z] | tr '-' '_') %if "%{flavor}" == "" @@ -116,7 +116,7 @@ BuildRequires: suse-hpc Requires: libopenblas%{?hpc_ext}-%{compiler_family}%{?c_f_ver}-hpc Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives %endif %python_subpackages
commit python-numpy for openSUSE:Factory
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-02-16 22:33:50 Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.28504 (New) Package is "python-numpy" Tue Feb 16 22:33:50 2021 rev:98 rq:870996 version:1.20.1 Changes: --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2021-01-19 16:00:43.371246512 +0100 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.28504/python-numpy.changes 2021-02-16 22:33:57.389453237 +0100 @@ -1,0 +2,34 @@ +Wed Feb 10 12:19:07 UTC 2021 - Ben Greiner + +- Update to version 1.20.1 + * The distutils bug that caused problems with downstream projects +is fixed. + * The random.shuffle regression is fixed. +- Higlights for 1.20.0: + * Annotations for NumPy functions. This work is ongoing and +improvements can be expected pending feedback from users. + * Wider use of SIMD to increase execution speed of ufuncs. Much +work has been done in introducing universal functions that +will ease use of modern features across different hardware +platforms. This work is ongoing. + * Preliminary work in changing the dtype and casting +implementations in order to provide an easier path to +extending dtypes. This work is ongoing but enough has been +done to allow experimentation and feedback. + * Extensive documentation improvements comprising some 185 PR +merges. This work is ongoing and part of the larger project to +improve NumPy???s online presence and usefulness to new users. + * Further cleanups related to removing Python 2.7. This improves +code readability and removes technical debt. + * Preliminary support for the upcoming Cython 3.0. +- Full release notes at + https://numpy.org/doc/stable/release/1.20.0-notes.html +- Now requires Python >= 3.7 (NEP 29) + * Drop fix-py34-tests.patch + * Skip python36 build +- Drop s390x.patch -- The patch was applied for all big endian + architectures. Mark those tests appropriately in the check + section instead. gh#numpy/numpy#11831 +- Skip two tests on ix86: gh#numpy/numpy#18387 gh#numpy/numpy#18388 + +--- Old: fix-py34-tests.patch numpy-1.19.5.zip s390x.patch New: numpy-1.20.1.zip Other differences: -- ++ python-numpy.spec ++ --- /var/tmp/diff_new_pack.fjw8WY/_old 2021-02-16 22:33:58.089454197 +0100 +++ /var/tmp/diff_new_pack.fjw8WY/_new 2021-02-16 22:33:58.093454202 +0100 @@ -17,8 +17,8 @@ %global flavor @BUILD_FLAVOR@%{nil} -%define ver 1.19.5 -%define _ver 1_19_5 +%define ver 1.20.1 +%define _ver 1_20_1 %define pname python-numpy %define hpc_upcase_trans_hyph() %(echo %{**} | tr [a-z] [A-Z] | tr '-' '_') %if "%{flavor}" == "" @@ -43,6 +43,7 @@ %endif %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 +%define skip_python36 1 %{?with_hpc:%{hpc_requires}} %bcond_with ringdisabled %if %{without hpc} @@ -76,10 +77,8 @@ Patch0: numpy-buildfix.patch # PATCH-FIX-OPENSUSE numpy-1.9.0-remove-__declspec.patch -- fix for spurious compiler warnings that cause build failure Patch1: numpy-1.9.0-remove-__declspec.patch -# # PATCH-FIX-SLE fix-py34-tests.patch -- python 3.4 support -Patch3: fix-py34-tests.patch -Patch4: s390x.patch BuildRequires: %{python_module Cython >= 0.29.21} +BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module devel} BuildRequires: %{python_module hypothesis >= 5.12.0} BuildRequires: %{python_module pytest >= 5.4.2} @@ -161,11 +160,6 @@ %setup -q -n numpy-%{version} %patch0 -p1 %patch1 -p1 -%patch3 -p1 -%ifarch s390x ppc ppc64 -# TestF{77,90}ReturnCharacter are broken on all big-endian architectures (#11831) -%patch4 -p1 -%endif # Fix non-executable scripts sed -i '1s/^#!.*$//' numpy/{compat/setup,random/_examples/cython/setup,distutils/{conv_template,cpuinfo,exec_command,from_template,setup,system_info},f2py/{__init__,auxfuncs,capi_maps,cb_rules,cfuncs,common_rules,crackfortran,diagnose,f2py2e,f90mod_rules,func2subr,rules,setup,use_rules},ma/{setup,bench},matrixlib/setup,setup,testing/{print_coercion_tables,setup}}.py sed -i '1s/^#!.*$//' numpy/random/_examples/cython/*.pyx @@ -253,6 +247,7 @@ %if %{without hpc} export PATH="%{buildroot}%{_bindir}:$PATH" mkdir testing +cp numpy/conftest.py testing/ pushd testing # flaky tests test_failok+=" or test_structured_object_indexing" @@ -261,10 +256,23 @@ %ifarch ppc64 ppc64le test_failok+=" or test_generalized_sq" %endif +# these tests fail on big endian gh#num
commit python-numpy for openSUSE:Factory
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-01-19 16:00:35 Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.28504 (New) Package is "python-numpy" Tue Jan 19 16:00:35 2021 rev:97 rq:863809 version:1.19.5 Changes: --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2021-01-11 17:12:41.140289069 +0100 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.28504/python-numpy.changes 2021-01-19 16:00:43.371246512 +0100 @@ -1,0 +2,6 @@ +Sat Jan 16 21:39:13 UTC 2021 - Benjamin Greiner + +- Move flaky tests to test_failok +- Fix hpc for multiflavors (needs gh#openSUSE/hpc#3) + +--- Other differences: -- ++ python-numpy.spec ++ --- /var/tmp/diff_new_pack.cHeOrL/_old 2021-01-19 16:00:44.251247842 +0100 +++ /var/tmp/diff_new_pack.cHeOrL/_new 2021-01-19 16:00:44.255247848 +0100 @@ -207,9 +207,9 @@ %if %{with hpc} -%define hpc_module_pname python${py_ver/.*/}-numpy +%define hpc_module_pname ${python_flavor}-numpy %{python_expand # Don't package testsuite -py_ver=%{$python_version} +python_flavor=`cat _current_flavor` sitesearch_path=`$python -c "import sysconfig as s; print(s.get_paths(vars={'platbase':'%{hpc_prefix}','base':'%{hpc_prefix}'}).get('platlib'))"` rm -rf %{buildroot}${sitesearch_path}/numpy/{,core,distutils,f2py,fft,lib,linalg,ma,matrixlib,oldnumeric,polynomial,random,testing}/tests %hpc_write_modules_files @@ -254,16 +254,19 @@ export PATH="%{buildroot}%{_bindir}:$PATH" mkdir testing pushd testing +# flaky tests +test_failok+=" or test_structured_object_indexing" +test_failok+=" or test_structured_object_item_setting" # boo#1148173 gh#numpy/numpy#14438 %ifarch ppc64 ppc64le -test_failok="test_generalized_sq" +test_failok+=" or test_generalized_sq" %endif %{python_expand # for all python3 flavors export PYTHONPATH=%{buildroot}%{$python_sitearch} export PYTHONDONTWRITEBYTECODE=1 testcall="pytest-%{$python_bin_suffix} -n auto %{buildroot}%{$python_sitearch}/numpy" -[ -n "$test_failok" ] && ${testcall} -k "$test_failok" || true -${testcall} ${test_failok:+-k "not ($test_failok)"} +[ -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 } popd @@ -292,6 +295,7 @@ %exclude %{python_sitearch}/numpy/distutils/mingw/gfortran_vs2003_hack.c %exclude %{python_sitearch}/numpy/f2py/src/ %exclude %{python_sitearch}/numpy/core/lib/libnpymath.a +%exclude %{python_sitearch}/numpy/random/lib/libnpyrandom.a %else %if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3" %{p_bindir}/f2py @@ -303,12 +307,13 @@ %license %{p_python_sitearch}/numpy/LICENSE.txt %exclude %{p_python_sitearch}/numpy/core/include/ %exclude %{p_python_sitearch}/numpy/core/lib/libnpymath.a +%exclude %{p_python_sitearch}/numpy/random/lib/libnpyrandom.a %exclude %{p_python_sitearch}/numpy/distutils/mingw/gfortran_vs2003_hack.c %exclude %{p_python_sitearch}/numpy/f2py/src/ %endif %if %{with hpc} -%define hpc_module_pname python%(a=%{hpc_python_version}; echo -n ${a/.*/})-numpy +%define hpc_module_pname %{python_flavor}-numpy %{hpc_modules_files} %{hpc_dirs} %dir %{hpc_bindir} @@ -323,9 +328,11 @@ %{python_sitearch}/numpy/distutils/mingw/gfortran_vs2003_hack.c %{python_sitearch}/numpy/f2py/src/ %{python_sitearch}/numpy/core/lib/libnpymath.a +%{python_sitearch}/numpy/random/lib/libnpyrandom.a %else %{p_python_sitearch}/numpy/core/include/ %{p_python_sitearch}/numpy/core/lib/libnpymath.a +%{p_python_sitearch}/numpy/random/lib/libnpyrandom.a %{p_python_sitearch}/numpy/distutils/mingw/gfortran_vs2003_hack.c %{p_python_sitearch}/numpy/f2py/src/ %endif
commit python-numpy for openSUSE:Factory
Hello community, here is the log from the commit of package python-numpy for openSUSE:Factory checked in at 2020-12-03 18:40:42 Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.5913 (New) Package is "python-numpy" Thu Dec 3 18:40:42 2020 rev:95 rq:851900 version:1.19.2 Changes: --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2020-10-25 18:10:11.971548543 +0100 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.5913/python-numpy.changes 2020-12-03 18:41:52.242113490 +0100 @@ -1,0 +2,7 @@ +Sat Nov 28 16:08:40 UTC 2020 - Benjamin Greiner + +- Support multiple python3 flavors gh#openSUSE/python-rpm-macros#66 + * Fix pytest call expansion + * Fix f2py entry point + +--- Other differences: -- ++ python-numpy.spec ++ --- /var/tmp/diff_new_pack.mqaXlV/_old 2020-12-03 18:41:53.474114266 +0100 +++ /var/tmp/diff_new_pack.mqaXlV/_new 2020-12-03 18:41:53.478114270 +0100 @@ -256,12 +256,17 @@ pushd testing # boo#1148173 gh#numpy/numpy#14438 %ifarch ppc64 ppc64le -%define skiptest -k "not test_generalized_sq" -%pytest_arch -n auto --pyargs numpy %{buildroot}%{python_sitearch}/numpy -k "test_generalized_sq" || true +test_failok="test_generalized_sq" %endif -%pytest_arch -n auto --pyargs numpy %{buildroot}%{python_sitearch}/numpy %{?skiptest} +%{python_expand # for all python3 flavors +export PYTHONPATH=%{buildroot}%{$python_sitearch} +export PYTHONDONTWRITEBYTECODE=1 +testcall="pytest-%{$python_bin_suffix} -n auto %{buildroot}%{$python_sitearch}/numpy" +[ -n "$test_failok" ] && ${testcall} -k "$test_failok" || true +${testcall} ${test_failok:+-k "not ($test_failok)"} +rm -Rf %{buildroot}%{$python_sitearch}/numpy/.pytest_cache +} popd -rm -Rf %{buildroot}%{python_sitearch}/numpy/.pytest_cache %endif %if %{without hpc} @@ -276,7 +281,10 @@ %doc README.md THANKS.txt %if %{without hpc} %python_alternative %{_bindir}/f2py -%python3_only %{_bindir}/f2py3* +%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3" +%{_bindir}/f2py3 +%endif +%{_bindir}/f2py%{python_bin_suffix} %{python_sitearch}/numpy/ %{python_sitearch}/numpy-%{version}-py*.egg-info %license %{python_sitearch}/numpy/LICENSE.txt @@ -285,7 +293,11 @@ %exclude %{python_sitearch}/numpy/f2py/src/ %exclude %{python_sitearch}/numpy/core/lib/libnpymath.a %else -%python3_only %{p_bindir}/f2py* +%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3" +%{p_bindir}/f2py +%{p_bindir}/f2py3 +%endif +%{p_bindir}/f2py%{python_bin_suffix} %{p_python_sitearch}/numpy/ %{p_python_sitearch}/numpy-%{version}-py*.egg-info %license %{p_python_sitearch}/numpy/LICENSE.txt ___ openSUSE Commits mailing list -- commit@lists.opensuse.org To unsubscribe, email commit-le...@lists.opensuse.org List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette List Archives: https://lists.opensuse.org/archives/list/commit@lists.opensuse.org