Accepting request 1030235 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1030235 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-numpy?expand=0&rev=110
This commit is contained in:
commit
87dc00ef25
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ecb55251139706669fdec2ff073c98ef8e9a84473e51e716211b41aa0f18e656
|
||||
size 10274544
|
3
numpy-1.23.4.tar.gz
Normal file
3
numpy-1.23.4.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ed2cc92af0efad20198638c69bb0fc2870a58dabfba6eb722c933b48556c686c
|
||||
size 10728765
|
@ -15,7 +15,7 @@ safely removed.
|
||||
|
||||
--- a/numpy/core/setup_common.py
|
||||
+++ b/numpy/core/setup_common.py
|
||||
@@ -186,7 +186,7 @@ OPTIONAL_FUNCTION_ATTRIBUTES = [('__attr
|
||||
@@ -226,7 +226,7 @@ OPTIONAL_FUNCTION_ATTRIBUTES = [('__attr
|
||||
]
|
||||
|
||||
# variable attributes tested via "int %s a" % attribute
|
||||
|
@ -1,29 +0,0 @@
|
||||
From 2113cad8cbb4c4bc9469e0c94025bd7cbbe6f2d6 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Green <tomgreen66@hotmail.com>
|
||||
Date: Tue, 16 Nov 2021 22:36:18 +0000
|
||||
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, vhp), 0);
|
||||
|
||||
return ret;
|
||||
}
|
@ -1,3 +1,194 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 20 13:48:08 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- 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 <code@bnavigator.de>
|
||||
|
||||
- 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 <arun@gmx.de>
|
||||
|
||||
- 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
|
||||
* #22220: BUG: change overloads to play nice with pyright.
|
||||
* #22221: TST,BUG: Use fork context to fix MacOS savez test
|
||||
* #22222: TYP,BUG: Reduce argument validation in C-based
|
||||
__class_getitem__
|
||||
* #22223: TST: ensure np.equal.reduce raises a TypeError
|
||||
* #22224: 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 #21386
|
||||
* #21445: BUG: Allow legacy dtypes to cast to datetime again
|
||||
* #21446: BUG: Make mmap handling safer in frombuffer
|
||||
* #21447: BUG: Stop using PyBytesObject.ob_shash deprecated in
|
||||
Python 3.11.
|
||||
* #21448: ENH: Introduce numpy.core.setup_common.NPY_CXX_FLAGS
|
||||
* #21472: BUG: Ensure compile errors are raised correclty
|
||||
* #21473: BUG: Fix segmentation fault
|
||||
* #21474: MAINT: Update doc requirements
|
||||
* #21475: MAINT: Mark npy_memchr with no_sanitize("alignment") on
|
||||
clang
|
||||
* #21512: DOC: Proposal - make the doc landing page cards more
|
||||
similar...
|
||||
* #21525: MAINT: Update Cython version to 0.29.30.
|
||||
* #21536: BUG: Fix GCC error during build configuration
|
||||
* #21541: REL: Prepare for the NumPy 1.22.4 release.
|
||||
* #21547: MAINT: Skip tests that fail on PyPy.
|
||||
|
||||
- changes from version 1.22.3:
|
||||
* #21048: MAINT: Use "3.10" instead of "3.10-dev" on travis.
|
||||
* #21106: TYP,MAINT: Explicitly allow sequences of array-likes in
|
||||
np.concatenate
|
||||
* #21137: BLD,DOC: skip broken ipython 8.1.0
|
||||
* #21138: BUG, ENH: np._from_dlpack: export correct device
|
||||
information
|
||||
* #21139: BUG: Fix numba DUFuncs added loops getting picked up
|
||||
* #21140: BUG: Fix unpickling an empty ndarray with a non-zero
|
||||
dimension...
|
||||
* #21141: BUG: use ThreadPoolExecutor instead of ThreadPool
|
||||
* #21142: API: Disallow strings in logical ufuncs
|
||||
* #21143: MAINT, DOC: Fix SciPy intersphinx link
|
||||
* #21148: BUG,ENH: np._from_dlpack: export arrays with any strided
|
||||
size-1...
|
||||
|
||||
- changes from version 1.22.2:
|
||||
* #20842: BLD: Add NPY_DISABLE_SVML env var to opt out of SVML
|
||||
* #20843: BUG: Fix build of third party extensions with
|
||||
Py_LIMITED_API
|
||||
* #20844: TYP: Fix pyright being unable to infer the real and
|
||||
imag...
|
||||
* #20845: BUG: Fix comparator function signatures
|
||||
* #20906: BUG: Avoid importing numpy.distutils on import
|
||||
numpy.testing
|
||||
* #20907: MAINT: remove outdated mingw32 fseek support
|
||||
* #20908: TYP: Relax the return type of np.vectorize
|
||||
* #20909: BUG: fix f2py's define for threading when building with
|
||||
Mingw
|
||||
* #20910: BUG: distutils: fix building mixed C/Fortran extensions
|
||||
* #20912: DOC,TST: Fix Pandas code example as per new release
|
||||
* #20935: TYP, MAINT: Add annotations for flatiter.__setitem__
|
||||
* #20936: MAINT, TYP: Added missing where typehints in
|
||||
fromnumeric.pyi
|
||||
* #20937: BUG: Fix build_ext interaction with non numpy extensions
|
||||
* #20938: BUG: Fix missing intrinsics for windows/arm64 target
|
||||
* #20945: REL: Prepare for the NumPy 1.22.2 release.
|
||||
* #20982: MAINT: f2py: don't generate code that triggers
|
||||
-Wsometimes-uninitialized.
|
||||
* #20983: BUG: Fix incorrect return type in reduce without initial
|
||||
value
|
||||
* #20984: ENH: review return values for PyArray_DescrNew
|
||||
* #20985: MAINT: be more tolerant of setuptools >= 60
|
||||
* #20986: BUG: Fix misplaced return.
|
||||
* #20992: MAINT: Further small return value validation fixes
|
||||
|
||||
- changes from version 1.22.1:
|
||||
* #20702: MAINT, DOC: Post 1.22.0 release fixes.
|
||||
* #20703: DOC, BUG: Use pngs instead of svgs.
|
||||
* #20704: DOC:Fixed the link on user-guide landing page
|
||||
* #20714: BUG: Restore vc141 support
|
||||
* #20724: BUG: Fix array dimensions solver for multidimensional
|
||||
arguments...
|
||||
* #20725: TYP: change type annotation for __array_namespace__ to
|
||||
ModuleType
|
||||
* #20726: TYP, MAINT: Allow ndindex to accept integer tuples
|
||||
* #20757: BUG: Relax dtype identity check in reductions
|
||||
* #20763: TYP: Allow time manipulation functions to accept date and
|
||||
timedelta...
|
||||
* #20768: TYP: Relax the type of ndarray.__array_finalize__
|
||||
* #20795: MAINT: Raise RuntimeError if setuptools version is too
|
||||
recent.
|
||||
* #20796: BUG, DOC: Fixes SciPy docs build warnings
|
||||
* #20797: DOC: fix OpenBLAS version in release note
|
||||
* #20798: PERF: Optimize array check for bounded 0,1 values
|
||||
* #20805: BUG: Fix that reduce-likes honor out always (and live in
|
||||
the...
|
||||
* #20806: BUG: array_api.argsort(descending=True) respects
|
||||
relative...
|
||||
* #20807: BUG: Allow integer inputs for pow-related functions in
|
||||
array_api
|
||||
* #20814: DOC: Refer to NumPy, not pandas, in main page
|
||||
* #20815: DOC: Update Copyright to 2022 [License]
|
||||
* #20819: BUG: Return correctly shaped inverse indices in array_api
|
||||
set...
|
||||
|
||||
- changes from version 1.22.0:
|
||||
* long list of changes
|
||||
https://github.com/numpy/numpy/blob/main/doc/changelog/1.22.0-changelog.rst
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun May 29 18:15:47 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
@ -16,16 +16,9 @@
|
||||
#
|
||||
|
||||
|
||||
#
|
||||
%if 0%{?suse_version} > 1500
|
||||
%bcond_without libalternatives
|
||||
%else
|
||||
%bcond_with libalternatives
|
||||
%endif
|
||||
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%define ver 1.21.6
|
||||
%define _ver 1_21_6
|
||||
%define ver 1.23.4
|
||||
%define _ver 1_23_4
|
||||
%define pname python-numpy
|
||||
%define hpc_upcase_trans_hyph() %(echo %{**} | tr [a-z] [A-Z] | tr '-' '_')
|
||||
%if "%{flavor}" == ""
|
||||
@ -48,11 +41,16 @@
|
||||
%ifarch s390 s390x
|
||||
%{?with_openblas:ExclusiveArch: do_not_build}
|
||||
%endif
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
%define skip_python36 1
|
||||
%{?with_hpc:%{hpc_requires}}
|
||||
#
|
||||
%if 0%{?suse_version} > 1500
|
||||
%bcond_without libalternatives
|
||||
%else
|
||||
%bcond_with libalternatives
|
||||
%endif
|
||||
#
|
||||
%bcond_with ringdisabled
|
||||
#
|
||||
%if %{without hpc}
|
||||
%define package_name %{pname}
|
||||
%define p_python_sitearch %{python_sitearch}
|
||||
@ -73,41 +71,43 @@ ExclusiveArch: do_not_build
|
||||
%endif
|
||||
Name: %{package_name}
|
||||
# set %%ver and %%_ver instead above
|
||||
Version: %ver
|
||||
Version: %{ver}
|
||||
Release: 0
|
||||
Summary: NumPy array processing for numbers, strings, records and objects
|
||||
License: BSD-3-Clause
|
||||
URL: http://www.numpy.org/
|
||||
Source: https://files.pythonhosted.org/packages/source/n/numpy/numpy-%{version}.zip
|
||||
Source: https://files.pythonhosted.org/packages/source/n/numpy/numpy-%{version}.tar.gz
|
||||
Source99: python-numpy-rpmlintrc
|
||||
# PATCH-FIX-OPENSUSE numpy-buildfix.patch -- openSUSE-specific build fixes
|
||||
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#20388
|
||||
Patch3: numpy-fix-cpu_asimdfhm.patch
|
||||
BuildConflicts: gcc11 < 11.2
|
||||
BuildRequires: %{python_module Cython >= 0.29.24}
|
||||
BuildRequires: %{python_module base >= 3.7}
|
||||
BuildRequires: %{python_module Cython >= 0.29.30}
|
||||
BuildRequires: %{python_module base >= 3.8}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module hypothesis >= 6.12.0}
|
||||
BuildRequires: %{python_module pytest >= 6.2.4}
|
||||
BuildRequires: %{python_module hypothesis >= 6.24.1}
|
||||
BuildRequires: %{python_module pytest >= 6.2.5}
|
||||
BuildRequires: %{python_module pytest-xdist}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module setuptools >= 60.0.0}
|
||||
BuildRequires: %{python_module testsuite}
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: python-rpm-macros >= 20210929
|
||||
BuildRequires: unzip
|
||||
BuildConflicts: gcc11 < 11.2
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: fdupes
|
||||
%endif
|
||||
%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
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: gcc-fortran
|
||||
%else
|
||||
BuildRequires: gcc-gfortran
|
||||
%endif
|
||||
%if %{with openblas}
|
||||
BuildRequires: openblas-devel > 0.3.4
|
||||
BuildRequires: openblas-devel > 0.3.20
|
||||
%else
|
||||
BuildRequires: blas-devel
|
||||
BuildRequires: cblas-devel
|
||||
@ -115,10 +115,6 @@ BuildRequires: lapack-devel
|
||||
# openblas has significantly better performance for some operations
|
||||
Recommends: libopenblas_pthreads0
|
||||
%endif
|
||||
# Last version which packaged %%{_bindir}/f2py without update-alternatives
|
||||
# Protect it from substitution
|
||||
%define oldpy_numpy python-numpy
|
||||
Conflicts: %{oldpy_numpy} <= 1.12.0
|
||||
%if %{with libalternatives}
|
||||
BuildRequires: alts
|
||||
Requires: alts
|
||||
@ -264,11 +260,6 @@ 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"
|
||||
@ -281,7 +272,7 @@ test_failok+=" or test_generalized_sq"
|
||||
test_failok+=" or TestF77ReturnCharacter"
|
||||
test_failok+=" or TestF90ReturnCharacter"
|
||||
%endif
|
||||
%ifarch %ix86
|
||||
%ifarch %{ix86}
|
||||
# (arm 32-bit seems okay here)
|
||||
# gh#numpy/numpy#18387
|
||||
test_failok+=" or test_pareto"
|
||||
|
Loading…
Reference in New Issue
Block a user