python-numpy/python-numpy.spec

440 lines
13 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-numpy
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global flavor @BUILD_FLAVOR@%{nil}
- Update to 1.26.2: * TYP: Trim down the ``_NestedSequence.__getitem__`` signature * BUG: fix choose refcount leak * TST: fix running the test suite in builds without BLAS/LAPACK * BUG: random: Fix generation of nan by dirichlet. * TST: fix distutils tests for deprecations in recent setuptools... * MAINT: Remove versioneer * MAINT: Pin upper version of sphinx. * ENH: Add prefix to _ALIGN Macro * BUG: cleanup warnings [skip azp][skip circle][skip travis][skip... * BUG: ``asv dev`` has been removed, use ``asv run``. * BUG: Fix meson build failure due to unchanged inplace auto-generated... * BUG: fix issue with git-version script, needs a shebang to run * BUG: Use a default assignment for git_hash [skip ci] * BUG: fix NPY_cast_info error handling in choose * BUG: Fix common block handling in f2py * BUG: Fix assumed length f2py regression * MAINT: Harmonize fortranobject * TYP: add kind argument to numpy.isin type specification * BUG: fix comparisons between masked and unmasked structured arrays * ENH: Adopt new macOS Accelerate BLAS/LAPACK Interfaces, including... * TYP: Add the missing ``casting`` keyword to ``np.clip`` * TST: convert cython test from setup.py to meson * MAINT: Fixup ``fromnumeric.pyi`` * BUG, ENH: Fix ``iso_c_binding`` type maps * TYP: Allow ``binary_repr`` to accept any object * TYP: Explicitly declare ``dtype`` and ``generic`` hashable * ENH: Refactor the typing "reveal" tests using `typing.assert_type` * ENH: ``meson`` backend for ``f2py`` * MAINT: Refactor partial load Workaround for Clang OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=143
2023-11-20 06:10:29 +01:00
%define ver 1.26.2
%define _ver 1_26_2
%define pname python-numpy
%define plainpython python
%define hpc_upcase_trans_hyph() %(echo %{**} | tr [a-z] [A-Z] | tr '-' '_')
%if "%{flavor}" == ""
%bcond_with hpc
%bcond_with openblas
%endif
%if "%{flavor}" == "gnu-hpc"
%bcond_without hpc
Accepting request 426983 from devel:languages:python - use pypi.io as Source URL - Don't include cblas-devel on SLES 12 - update to 1.11.1: - #7506 BUG: Make sure numpy imports on python 2.6 when nose is unavailable. - #7530 BUG: Floating exception with invalid axis in np.lexsort. - #7535 BUG: Extend glibc complex trig functions blacklist to glibc < 2.18. - #7551 BUG: Allow graceful recovery for no compiler. - #7558 BUG: Constant padding expected wrong type in constant_values. - #7578 BUG: Fix OverflowError in Python 3.x. in swig interface. - #7590 BLD: Fix configparser.InterpolationSyntaxError. - #7597 BUG: Make np.ma.take work on scalars. - #7608 BUG: linalg.norm(): Don't convert object arrays to float. - #7638 BLD: Correct C compiler customization in system_info.py. - #7654 BUG: ma.median of 1d array should return a scalar. - #7656 BLD: Remove hardcoded Intel compiler flag -xSSE4.2. - #7660 BUG: Temporary fix for str(mvoid) for object field types. - #7665 BUG: Fix incorrect printing of 1D masked arrays. - #7670 BUG: Correct initial index estimate in histogram. - #7671 BUG: Boolean assignment no GIL release when transfer needs API. - #7676 BUG: Fix handling of right edge of final histogram bin. - #7680 BUG: Fix np.clip bug NaN handling for Visual Studio 2015. - #7724 BUG: Fix segfaults in np.random.shuffle. - #7731 MAINT: Change mkl_info.dir_env_var from MKL to MKLROOT. OBS-URL: https://build.opensuse.org/request/show/426983 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-numpy?expand=0&rev=50
2016-09-17 14:34:03 +02:00
%endif
%if "%{flavor}" == "gnu7-hpc"
%define c_f_ver 7
%bcond_without hpc
%endif
%if %{with hpc}
%bcond_without openblas
%endif
%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
%bcond_without libalternatives
%bcond_without cblas
%else
%bcond_with libalternatives
%bcond_with cblas
%endif
#
%bcond_with ringdisabled
#
%if %{without hpc}
%define package_name %{pname}
%define p_python_sitearch %{python_sitearch}
%define p_prefix %{_prefix}
%define p_bindir %{_bindir}
%else
%{!?compiler_family:%global compiler_family gnu}
%{hpc_init -c %{compiler_family} %{?c_f_ver:-v %{c_f_ver}} %{?mpi_ver:-V %{mpi_ver}}}
%define package_name %{hpc_package_name %{_ver}}
%define p_python_sitearch %{hpc_python_sitearch}
%define p_prefix %{hpc_prefix}
%define p_bindir %{hpc_bindir}
# Magic for OBS Staging. Only build the flavors required by
# other packages in the ring.
%if %{with ringdisabled}
ExclusiveArch: do_not_build
%endif
%endif
%{?sle15_python_module_pythons}
Name: %{package_name}
# set %%ver and %%_ver instead above
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}.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
- Update to 1.26.2: * TYP: Trim down the ``_NestedSequence.__getitem__`` signature * BUG: fix choose refcount leak * TST: fix running the test suite in builds without BLAS/LAPACK * BUG: random: Fix generation of nan by dirichlet. * TST: fix distutils tests for deprecations in recent setuptools... * MAINT: Remove versioneer * MAINT: Pin upper version of sphinx. * ENH: Add prefix to _ALIGN Macro * BUG: cleanup warnings [skip azp][skip circle][skip travis][skip... * BUG: ``asv dev`` has been removed, use ``asv run``. * BUG: Fix meson build failure due to unchanged inplace auto-generated... * BUG: fix issue with git-version script, needs a shebang to run * BUG: Use a default assignment for git_hash [skip ci] * BUG: fix NPY_cast_info error handling in choose * BUG: Fix common block handling in f2py * BUG: Fix assumed length f2py regression * MAINT: Harmonize fortranobject * TYP: add kind argument to numpy.isin type specification * BUG: fix comparisons between masked and unmasked structured arrays * ENH: Adopt new macOS Accelerate BLAS/LAPACK Interfaces, including... * TYP: Add the missing ``casting`` keyword to ``np.clip`` * TST: convert cython test from setup.py to meson * MAINT: Fixup ``fromnumeric.pyi`` * BUG, ENH: Fix ``iso_c_binding`` type maps * TYP: Allow ``binary_repr`` to accept any object * TYP: Explicitly declare ``dtype`` and ``generic`` hashable * ENH: Refactor the typing "reveal" tests using `typing.assert_type` * ENH: ``meson`` backend for ``f2py`` * MAINT: Refactor partial load Workaround for Clang OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=143
2023-11-20 06:10:29 +01:00
BuildRequires: %{python_module Cython >= 3.0}
BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module devel}
- Update to 1.26.2: * TYP: Trim down the ``_NestedSequence.__getitem__`` signature * BUG: fix choose refcount leak * TST: fix running the test suite in builds without BLAS/LAPACK * BUG: random: Fix generation of nan by dirichlet. * TST: fix distutils tests for deprecations in recent setuptools... * MAINT: Remove versioneer * MAINT: Pin upper version of sphinx. * ENH: Add prefix to _ALIGN Macro * BUG: cleanup warnings [skip azp][skip circle][skip travis][skip... * BUG: ``asv dev`` has been removed, use ``asv run``. * BUG: Fix meson build failure due to unchanged inplace auto-generated... * BUG: fix issue with git-version script, needs a shebang to run * BUG: Use a default assignment for git_hash [skip ci] * BUG: fix NPY_cast_info error handling in choose * BUG: Fix common block handling in f2py * BUG: Fix assumed length f2py regression * MAINT: Harmonize fortranobject * TYP: add kind argument to numpy.isin type specification * BUG: fix comparisons between masked and unmasked structured arrays * ENH: Adopt new macOS Accelerate BLAS/LAPACK Interfaces, including... * TYP: Add the missing ``casting`` keyword to ``np.clip`` * TST: convert cython test from setup.py to meson * MAINT: Fixup ``fromnumeric.pyi`` * BUG, ENH: Fix ``iso_c_binding`` type maps * TYP: Allow ``binary_repr`` to accept any object * TYP: Explicitly declare ``dtype`` and ``generic`` hashable * ENH: Refactor the typing "reveal" tests using `typing.assert_type` * ENH: ``meson`` backend for ``f2py`` * MAINT: Refactor partial load Workaround for Clang OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=143
2023-11-20 06:10:29 +01:00
BuildRequires: %{python_module meson-python >= 0.13}
BuildRequires: %{python_module pip}
- Update to 1.26.2: * TYP: Trim down the ``_NestedSequence.__getitem__`` signature * BUG: fix choose refcount leak * TST: fix running the test suite in builds without BLAS/LAPACK * BUG: random: Fix generation of nan by dirichlet. * TST: fix distutils tests for deprecations in recent setuptools... * MAINT: Remove versioneer * MAINT: Pin upper version of sphinx. * ENH: Add prefix to _ALIGN Macro * BUG: cleanup warnings [skip azp][skip circle][skip travis][skip... * BUG: ``asv dev`` has been removed, use ``asv run``. * BUG: Fix meson build failure due to unchanged inplace auto-generated... * BUG: fix issue with git-version script, needs a shebang to run * BUG: Use a default assignment for git_hash [skip ci] * BUG: fix NPY_cast_info error handling in choose * BUG: Fix common block handling in f2py * BUG: Fix assumed length f2py regression * MAINT: Harmonize fortranobject * TYP: add kind argument to numpy.isin type specification * BUG: fix comparisons between masked and unmasked structured arrays * ENH: Adopt new macOS Accelerate BLAS/LAPACK Interfaces, including... * TYP: Add the missing ``casting`` keyword to ``np.clip`` * TST: convert cython test from setup.py to meson * MAINT: Fixup ``fromnumeric.pyi`` * BUG, ENH: Fix ``iso_c_binding`` type maps * TYP: Allow ``binary_repr`` to accept any object * TYP: Explicitly declare ``dtype`` and ``generic`` hashable * ENH: Refactor the typing "reveal" tests using `typing.assert_type` * ENH: ``meson`` backend for ``f2py`` * MAINT: Refactor partial load Workaround for Clang OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=143
2023-11-20 06:10:29 +01:00
BuildRequires: %{python_module pyproject-metadata >= 0.7.1}
BuildRequires: %{python_module wheel}
- Update to 1.26.2: * TYP: Trim down the ``_NestedSequence.__getitem__`` signature * BUG: fix choose refcount leak * TST: fix running the test suite in builds without BLAS/LAPACK * BUG: random: Fix generation of nan by dirichlet. * TST: fix distutils tests for deprecations in recent setuptools... * MAINT: Remove versioneer * MAINT: Pin upper version of sphinx. * ENH: Add prefix to _ALIGN Macro * BUG: cleanup warnings [skip azp][skip circle][skip travis][skip... * BUG: ``asv dev`` has been removed, use ``asv run``. * BUG: Fix meson build failure due to unchanged inplace auto-generated... * BUG: fix issue with git-version script, needs a shebang to run * BUG: Use a default assignment for git_hash [skip ci] * BUG: fix NPY_cast_info error handling in choose * BUG: Fix common block handling in f2py * BUG: Fix assumed length f2py regression * MAINT: Harmonize fortranobject * TYP: add kind argument to numpy.isin type specification * BUG: fix comparisons between masked and unmasked structured arrays * ENH: Adopt new macOS Accelerate BLAS/LAPACK Interfaces, including... * TYP: Add the missing ``casting`` keyword to ``np.clip`` * TST: convert cython test from setup.py to meson * MAINT: Fixup ``fromnumeric.pyi`` * BUG, ENH: Fix ``iso_c_binding`` type maps * TYP: Allow ``binary_repr`` to accept any object * TYP: Explicitly declare ``dtype`` and ``generic`` hashable * ENH: Refactor the typing "reveal" tests using `typing.assert_type` * ENH: ``meson`` backend for ``f2py`` * MAINT: Refactor partial load Workaround for Clang OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=143
2023-11-20 06:10:29 +01:00
BuildRequires: cmake
%if 0%{?suse_version} <= 1600
BuildRequires: gcc12
BuildRequires: gcc12-c++
%else
- Update to 1.26.2: * TYP: Trim down the ``_NestedSequence.__getitem__`` signature * BUG: fix choose refcount leak * TST: fix running the test suite in builds without BLAS/LAPACK * BUG: random: Fix generation of nan by dirichlet. * TST: fix distutils tests for deprecations in recent setuptools... * MAINT: Remove versioneer * MAINT: Pin upper version of sphinx. * ENH: Add prefix to _ALIGN Macro * BUG: cleanup warnings [skip azp][skip circle][skip travis][skip... * BUG: ``asv dev`` has been removed, use ``asv run``. * BUG: Fix meson build failure due to unchanged inplace auto-generated... * BUG: fix issue with git-version script, needs a shebang to run * BUG: Use a default assignment for git_hash [skip ci] * BUG: fix NPY_cast_info error handling in choose * BUG: Fix common block handling in f2py * BUG: Fix assumed length f2py regression * MAINT: Harmonize fortranobject * TYP: add kind argument to numpy.isin type specification * BUG: fix comparisons between masked and unmasked structured arrays * ENH: Adopt new macOS Accelerate BLAS/LAPACK Interfaces, including... * TYP: Add the missing ``casting`` keyword to ``np.clip`` * TST: convert cython test from setup.py to meson * MAINT: Fixup ``fromnumeric.pyi`` * BUG, ENH: Fix ``iso_c_binding`` type maps * TYP: Allow ``binary_repr`` to accept any object * TYP: Explicitly declare ``dtype`` and ``generic`` hashable * ENH: Refactor the typing "reveal" tests using `typing.assert_type` * ENH: ``meson`` backend for ``f2py`` * MAINT: Refactor partial load Workaround for Clang OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=143
2023-11-20 06:10:29 +01:00
BuildRequires: gcc
BuildRequires: gcc-c++
%endif
- Update to 1.26.2: * TYP: Trim down the ``_NestedSequence.__getitem__`` signature * BUG: fix choose refcount leak * TST: fix running the test suite in builds without BLAS/LAPACK * BUG: random: Fix generation of nan by dirichlet. * TST: fix distutils tests for deprecations in recent setuptools... * MAINT: Remove versioneer * MAINT: Pin upper version of sphinx. * ENH: Add prefix to _ALIGN Macro * BUG: cleanup warnings [skip azp][skip circle][skip travis][skip... * BUG: ``asv dev`` has been removed, use ``asv run``. * BUG: Fix meson build failure due to unchanged inplace auto-generated... * BUG: fix issue with git-version script, needs a shebang to run * BUG: Use a default assignment for git_hash [skip ci] * BUG: fix NPY_cast_info error handling in choose * BUG: Fix common block handling in f2py * BUG: Fix assumed length f2py regression * MAINT: Harmonize fortranobject * TYP: add kind argument to numpy.isin type specification * BUG: fix comparisons between masked and unmasked structured arrays * ENH: Adopt new macOS Accelerate BLAS/LAPACK Interfaces, including... * TYP: Add the missing ``casting`` keyword to ``np.clip`` * TST: convert cython test from setup.py to meson * MAINT: Fixup ``fromnumeric.pyi`` * BUG, ENH: Fix ``iso_c_binding`` type maps * TYP: Allow ``binary_repr`` to accept any object * TYP: Explicitly declare ``dtype`` and ``generic`` hashable * ENH: Refactor the typing "reveal" tests using `typing.assert_type` * ENH: ``meson`` backend for ``f2py`` * MAINT: Refactor partial load Workaround for Clang OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=143
2023-11-20 06:10:29 +01:00
BuildRequires: ninja >= 1.8.2
BuildRequires: patchelf
BuildRequires: python-rpm-macros >= 20210929
BuildConflicts: gcc11 < 11.2
%if 0%{?suse_version}
BuildRequires: fdupes
%endif
# SECTION test requirements
2023-08-14 13:44:27 +02:00
BuildRequires: %{python_module pytest >= 7.4.0}
BuildRequires: %{python_module hypothesis >= 6.75.0}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module testsuite}
BuildRequires: %{python_module typing-extensions >= 4.2.0}
# /SECTION
%if %{without hpc}
# Last version which packaged %%{_bindir}/f2py without update-alternatives
Conflicts: %{plainpython}-numpy <= 1.12.0
%if 0%{?suse_version}
BuildRequires: gcc-fortran
%else
BuildRequires: gcc-gfortran
%endif
%if %{with openblas}
BuildRequires: openblas-devel > 0.3.20
%else
BuildRequires: blas-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
%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
2023-08-14 13:44:27 +02:00
%ifnarch %ix86 %arm
BuildRequires: lua-lmod
2023-08-14 13:44:27 +02:00
%endif
BuildRequires: suse-hpc
Requires: libopenblas%{?hpc_ext}-%{compiler_family}%{?c_f_ver}-hpc
%endif
%python_subpackages
%description
NumPy is a general-purpose array-processing package designed to
efficiently manipulate large multi-dimensional arrays of arbitrary
records without sacrificing too much speed for small multi-dimensional
arrays. NumPy is built on the Numeric code base and adds features
introduced by numarray as well as an extended C-API and the ability to
create arrays of arbitrary type which also makes NumPy suitable for
interfacing with general-purpose data-base applications.
There are also basic facilities for discrete fourier transform,
basic linear algebra and random number generation.
%{?with_hpc:%{hpc_python_master_package -L -a }}
%package devel
Summary: Development files for numpy applications
Requires: %{name} = %{version}
Requires: python-devel
Requires: %plainpython(abi) = %{python_version}
%if %{without hpc}
%if %{with openblas}
Requires: openblas-devel
%else
Requires: blas-devel
%if %{with cblas}
Requires: cblas-devel
%endif
Requires: lapack-devel
%endif
%else
Requires: libopenblas%{?hpc_ext}-%{compiler_family}%{?c_f_ver}-hpc-devel
%{hpc_requires_devel}
%endif
%description devel
This package contains files for developing applications using numpy.
%{?with_hpc:%{hpc_python_master_package devel -a }}
%prep
%autosetup -p1 -n numpy-%{version}
# Fix non-executable scripts
- Update to 1.26.2: * TYP: Trim down the ``_NestedSequence.__getitem__`` signature * BUG: fix choose refcount leak * TST: fix running the test suite in builds without BLAS/LAPACK * BUG: random: Fix generation of nan by dirichlet. * TST: fix distutils tests for deprecations in recent setuptools... * MAINT: Remove versioneer * MAINT: Pin upper version of sphinx. * ENH: Add prefix to _ALIGN Macro * BUG: cleanup warnings [skip azp][skip circle][skip travis][skip... * BUG: ``asv dev`` has been removed, use ``asv run``. * BUG: Fix meson build failure due to unchanged inplace auto-generated... * BUG: fix issue with git-version script, needs a shebang to run * BUG: Use a default assignment for git_hash [skip ci] * BUG: fix NPY_cast_info error handling in choose * BUG: Fix common block handling in f2py * BUG: Fix assumed length f2py regression * MAINT: Harmonize fortranobject * TYP: add kind argument to numpy.isin type specification * BUG: fix comparisons between masked and unmasked structured arrays * ENH: Adopt new macOS Accelerate BLAS/LAPACK Interfaces, including... * TYP: Add the missing ``casting`` keyword to ``np.clip`` * TST: convert cython test from setup.py to meson * MAINT: Fixup ``fromnumeric.pyi`` * BUG, ENH: Fix ``iso_c_binding`` type maps * TYP: Allow ``binary_repr`` to accept any object * TYP: Explicitly declare ``dtype`` and ``generic`` hashable * ENH: Refactor the typing "reveal" tests using `typing.assert_type` * ENH: ``meson`` backend for ``f2py`` * MAINT: Refactor partial load Workaround for Clang OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=143
2023-11-20 06:10:29 +01:00
sed -i '1s/^#!.*$//' numpy/{compat/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},matrixlib/setup,setup,testing/{print_coercion_tables,setup}}.py
Accepting request 761226 from home:TheBlackCat:branches:devel:languages:python:numeric - update to version 1.18.0: + Highlights * The C-API for ``numpy.random`` has been defined and documented. * Basic infrastructure for linking with 64 bit BLAS and LAPACK libraries. * Many documentation improvements. + New functions * Multivariate hypergeometric distribution added to ``numpy.random`` + Deprecations * ``np.fromfile`` and ``np.fromstring`` will error on bad data * Deprecate non-scalar arrays as fill values in ``ma.fill_value`` * Deprecate ``PyArray_As1D``, ``PyArray_As2D`` * Deprecate ``np.alen`` * Deprecate the financial functions * The ``axis`` argument to ``numpy.ma.mask_cols`` and ``numpy.ma.mask_row`` is deprecated + Expired deprecations * ``PyArray_As1D`` and ``PyArray_As2D`` have been removed in favor of ``PyArray_AsCArray`` * ``np.rank`` has been removed. This was deprecated in NumPy 1.10 and has been replaced by ``np.ndim``. * The deprecation of ``expand_dims`` out-of-range axes in 1.13.0 has expired. * ``PyArray_FromDimsAndDataAndDescr`` and ``PyArray_FromDims`` have been removed (they will always raise an error). Use ``PyArray_NewFromDescr`` and ``PyArray_SimpleNew`` instead. * ``numeric.loads``, ``numeric.load``, ``np.ma.dump``, ``np.ma.dumps``, ``np.ma.load``, ``np.ma.loads`` are removed, use ``pickle`` methods instead * ``arrayprint.FloatFormat``, ``arrayprint.LongFloatFormat`` has been removed, use ``FloatingFormat`` instead * ``arrayprint.ComplexFormat``, ``arrayprint.LongComplexFormat`` has been removed, use ``ComplexFloatingFormat`` instead * ``arrayprint.StructureFormat`` has been removed, use ``StructureVoidFormat`` instead * ``np.testing.rand`` has been removed. This was deprecated in NumPy 1.11 and has been replaced by ``np.random.rand``. * Class ``SafeEval`` in ``numpy/lib/utils.py`` has been removed. This was deprecated in NumPy 1.10. Use ``np.safe_eval`` instead. * Remove deprecated support for boolean and empty condition lists in ``np.select`` * Array order only accepts 'C', 'F', 'A', and 'K'. More permissive options were deprecated in NumPy 1.11. * np.linspace parameter ``num`` must be an integer. Deprecated in NumPy 1.12. * UFuncs with multiple outputs must use a tuple for the ``out`` kwarg. This finishes a deprecation started in NumPy 1.10. * The files ``numpy/testing/decorators.py``, ``numpy/testing/noseclasses.py`` and ``numpy/testing/nosetester.py`` have been removed. They were never meant to be public (all relevant objects are present in the ``numpy.testing`` namespace), and importing them has given a deprecation warning since NumPy 1.15.0 + Compatibility notes * `numpy.lib.recfunctions.drop_fields` can no longer return None * ``numpy.argmin/argmax/min/max`` returns ``NaT`` if it exists in array * ``np.can_cast(np.uint64, np.timedelta64, casting='safe')`` is now ``False`` * Changed random variate stream from ``numpy.random.Generator.integers`` * Add more ufunc loops for ``datetime64``, ``timedelta64`` * Moved modules in ``numpy.random`` + C API changes * ``PyDataType_ISUNSIZED(descr)`` now returns False for structured datatypes + New Features * Add our own ``*.pxd`` cython import file * A tuple of axes can now be input to ``expand_dims`` * Support for 64-bit OpenBLAS * Add ``--f2cmap`` option to F2PY + Improvements * Different C numeric types of the same size have unique names * ``argwhere`` now produces a consistent result on 0d arrays * Add ``axis`` argument for ``random.permutation`` and ``random.shuffle`` * ``method`` keyword argument for ``np.random.multivariate_normal`` * Add complex number support for ``numpy.fromstring`` * ``numpy.unique`` has consistent axes order when ``axis`` is not None * ``numpy.matmul`` with boolean output now converts to boolean values * ``numpy.random.randint`` produced incorrect value when the range was ``2**32`` * Add complex number support for ``numpy.fromfile`` * ``std=c99`` added if compiler is named ``gcc`` + Changes * ``NaT`` now sorts to the end of arrays * Incorrect ``threshold`` in ``np.set_printoptions`` raises ``TypeError`` or ``ValueError`` * Warn when saving a dtype with metadata * ``numpy.distutils`` append behavior changed for LDFLAGS and similar * Remove ``numpy.random.entropy`` without a deprecation * Add options to quiet build configuration and build with ``-Werror`` OBS-URL: https://build.opensuse.org/request/show/761226 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=47
2020-01-07 07:39:50 +01:00
sed -i '1s/^#!.*$//' numpy/random/_examples/cython/*.pyx
# force cythonization
rm -f PKG-INFO
%build
%define _lto_cflags %{nil}
%if %{with hpc}
%hpc_setup
module load openblas
export CFLAGS="$(pkg-config --cflags openblas) %{optflags} -fno-strict-aliasing" LIBS="$(pkg-config --libs openblas)"
cat > site.cfg <<EOF
[openblas]
libraries = openblas
library_dirs = $OPENBLAS_LIB
include_dirs = $OPENBLAS_INC
EOF
%else
export CFLAGS="%{optflags} -fno-strict-aliasing"
%endif
%if 0%{?suse_version} <= 1600
export CC=gcc-12
export CXX=g++-12
%endif
%pyproject_wheel
%install
%{?with_hpc:%hpc_setup}
%{?with_hpc:module load openblas}
%pyproject_install --prefix %{p_prefix} --root %{buildroot}
%if !%{with hpc}
%python_clone -a %{buildroot}%{_bindir}/f2py
%endif
%if 0%{?suse_version}
%fdupes %{buildroot}%{p_prefix}
%endif
Accepting request 761226 from home:TheBlackCat:branches:devel:languages:python:numeric - update to version 1.18.0: + Highlights * The C-API for ``numpy.random`` has been defined and documented. * Basic infrastructure for linking with 64 bit BLAS and LAPACK libraries. * Many documentation improvements. + New functions * Multivariate hypergeometric distribution added to ``numpy.random`` + Deprecations * ``np.fromfile`` and ``np.fromstring`` will error on bad data * Deprecate non-scalar arrays as fill values in ``ma.fill_value`` * Deprecate ``PyArray_As1D``, ``PyArray_As2D`` * Deprecate ``np.alen`` * Deprecate the financial functions * The ``axis`` argument to ``numpy.ma.mask_cols`` and ``numpy.ma.mask_row`` is deprecated + Expired deprecations * ``PyArray_As1D`` and ``PyArray_As2D`` have been removed in favor of ``PyArray_AsCArray`` * ``np.rank`` has been removed. This was deprecated in NumPy 1.10 and has been replaced by ``np.ndim``. * The deprecation of ``expand_dims`` out-of-range axes in 1.13.0 has expired. * ``PyArray_FromDimsAndDataAndDescr`` and ``PyArray_FromDims`` have been removed (they will always raise an error). Use ``PyArray_NewFromDescr`` and ``PyArray_SimpleNew`` instead. * ``numeric.loads``, ``numeric.load``, ``np.ma.dump``, ``np.ma.dumps``, ``np.ma.load``, ``np.ma.loads`` are removed, use ``pickle`` methods instead * ``arrayprint.FloatFormat``, ``arrayprint.LongFloatFormat`` has been removed, use ``FloatingFormat`` instead * ``arrayprint.ComplexFormat``, ``arrayprint.LongComplexFormat`` has been removed, use ``ComplexFloatingFormat`` instead * ``arrayprint.StructureFormat`` has been removed, use ``StructureVoidFormat`` instead * ``np.testing.rand`` has been removed. This was deprecated in NumPy 1.11 and has been replaced by ``np.random.rand``. * Class ``SafeEval`` in ``numpy/lib/utils.py`` has been removed. This was deprecated in NumPy 1.10. Use ``np.safe_eval`` instead. * Remove deprecated support for boolean and empty condition lists in ``np.select`` * Array order only accepts 'C', 'F', 'A', and 'K'. More permissive options were deprecated in NumPy 1.11. * np.linspace parameter ``num`` must be an integer. Deprecated in NumPy 1.12. * UFuncs with multiple outputs must use a tuple for the ``out`` kwarg. This finishes a deprecation started in NumPy 1.10. * The files ``numpy/testing/decorators.py``, ``numpy/testing/noseclasses.py`` and ``numpy/testing/nosetester.py`` have been removed. They were never meant to be public (all relevant objects are present in the ``numpy.testing`` namespace), and importing them has given a deprecation warning since NumPy 1.15.0 + Compatibility notes * `numpy.lib.recfunctions.drop_fields` can no longer return None * ``numpy.argmin/argmax/min/max`` returns ``NaT`` if it exists in array * ``np.can_cast(np.uint64, np.timedelta64, casting='safe')`` is now ``False`` * Changed random variate stream from ``numpy.random.Generator.integers`` * Add more ufunc loops for ``datetime64``, ``timedelta64`` * Moved modules in ``numpy.random`` + C API changes * ``PyDataType_ISUNSIZED(descr)`` now returns False for structured datatypes + New Features * Add our own ``*.pxd`` cython import file * A tuple of axes can now be input to ``expand_dims`` * Support for 64-bit OpenBLAS * Add ``--f2cmap`` option to F2PY + Improvements * Different C numeric types of the same size have unique names * ``argwhere`` now produces a consistent result on 0d arrays * Add ``axis`` argument for ``random.permutation`` and ``random.shuffle`` * ``method`` keyword argument for ``np.random.multivariate_normal`` * Add complex number support for ``numpy.fromstring`` * ``numpy.unique`` has consistent axes order when ``axis`` is not None * ``numpy.matmul`` with boolean output now converts to boolean values * ``numpy.random.randint`` produced incorrect value when the range was ``2**32`` * Add complex number support for ``numpy.fromfile`` * ``std=c99`` added if compiler is named ``gcc`` + Changes * ``NaT`` now sorts to the end of arrays * Incorrect ``threshold`` in ``np.set_printoptions`` raises ``TypeError`` or ``ValueError`` * Warn when saving a dtype with metadata * ``numpy.distutils`` append behavior changed for LDFLAGS and similar * Remove ``numpy.random.entropy`` without a deprecation * Add options to quiet build configuration and build with ``-Werror`` OBS-URL: https://build.opensuse.org/request/show/761226 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=47
2020-01-07 07:39:50 +01:00
%if %{with hpc}
%define hpc_module_pname ${python_flavor}-numpy
%{python_expand # Don't package testsuite
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
#%%Module1.0#####################################################################
proc ModulesHelp { } {
puts stderr " "
puts stderr "This module loads the %{pname} library built with the %{compiler_family} compiler"
puts stderr "toolchain."
puts stderr "\nVersion %{version}\n"
}
module-whatis "Name: %{pname} built with %{compiler_family} compiler"
module-whatis "Version: %{version}"
module-whatis "Category: python module"
module-whatis "Description: %{SUMMARY:0}"
module-whatis "URL %{url}"
set version %{version}
if [ expr [ module-info mode load ] || [module-info mode display ] ] {
if { ![is-loaded intel] && ![is-loaded openblas] } {
module load openblas
}
}
prepend-path PATH %{hpc_bindir}
prepend-path PYTHONPATH ${sitesearch_path}
setenv %{hpc_upcase_trans_hyph %{pname}}_DIR %{hpc_prefix}
setenv %{hpc_upcase_trans_hyph %{pname}}_BIN %{hpc_bindir}
family "NumPy"
EOF
}
Accepting request 761226 from home:TheBlackCat:branches:devel:languages:python:numeric - update to version 1.18.0: + Highlights * The C-API for ``numpy.random`` has been defined and documented. * Basic infrastructure for linking with 64 bit BLAS and LAPACK libraries. * Many documentation improvements. + New functions * Multivariate hypergeometric distribution added to ``numpy.random`` + Deprecations * ``np.fromfile`` and ``np.fromstring`` will error on bad data * Deprecate non-scalar arrays as fill values in ``ma.fill_value`` * Deprecate ``PyArray_As1D``, ``PyArray_As2D`` * Deprecate ``np.alen`` * Deprecate the financial functions * The ``axis`` argument to ``numpy.ma.mask_cols`` and ``numpy.ma.mask_row`` is deprecated + Expired deprecations * ``PyArray_As1D`` and ``PyArray_As2D`` have been removed in favor of ``PyArray_AsCArray`` * ``np.rank`` has been removed. This was deprecated in NumPy 1.10 and has been replaced by ``np.ndim``. * The deprecation of ``expand_dims`` out-of-range axes in 1.13.0 has expired. * ``PyArray_FromDimsAndDataAndDescr`` and ``PyArray_FromDims`` have been removed (they will always raise an error). Use ``PyArray_NewFromDescr`` and ``PyArray_SimpleNew`` instead. * ``numeric.loads``, ``numeric.load``, ``np.ma.dump``, ``np.ma.dumps``, ``np.ma.load``, ``np.ma.loads`` are removed, use ``pickle`` methods instead * ``arrayprint.FloatFormat``, ``arrayprint.LongFloatFormat`` has been removed, use ``FloatingFormat`` instead * ``arrayprint.ComplexFormat``, ``arrayprint.LongComplexFormat`` has been removed, use ``ComplexFloatingFormat`` instead * ``arrayprint.StructureFormat`` has been removed, use ``StructureVoidFormat`` instead * ``np.testing.rand`` has been removed. This was deprecated in NumPy 1.11 and has been replaced by ``np.random.rand``. * Class ``SafeEval`` in ``numpy/lib/utils.py`` has been removed. This was deprecated in NumPy 1.10. Use ``np.safe_eval`` instead. * Remove deprecated support for boolean and empty condition lists in ``np.select`` * Array order only accepts 'C', 'F', 'A', and 'K'. More permissive options were deprecated in NumPy 1.11. * np.linspace parameter ``num`` must be an integer. Deprecated in NumPy 1.12. * UFuncs with multiple outputs must use a tuple for the ``out`` kwarg. This finishes a deprecation started in NumPy 1.10. * The files ``numpy/testing/decorators.py``, ``numpy/testing/noseclasses.py`` and ``numpy/testing/nosetester.py`` have been removed. They were never meant to be public (all relevant objects are present in the ``numpy.testing`` namespace), and importing them has given a deprecation warning since NumPy 1.15.0 + Compatibility notes * `numpy.lib.recfunctions.drop_fields` can no longer return None * ``numpy.argmin/argmax/min/max`` returns ``NaT`` if it exists in array * ``np.can_cast(np.uint64, np.timedelta64, casting='safe')`` is now ``False`` * Changed random variate stream from ``numpy.random.Generator.integers`` * Add more ufunc loops for ``datetime64``, ``timedelta64`` * Moved modules in ``numpy.random`` + C API changes * ``PyDataType_ISUNSIZED(descr)`` now returns False for structured datatypes + New Features * Add our own ``*.pxd`` cython import file * A tuple of axes can now be input to ``expand_dims`` * Support for 64-bit OpenBLAS * Add ``--f2cmap`` option to F2PY + Improvements * Different C numeric types of the same size have unique names * ``argwhere`` now produces a consistent result on 0d arrays * Add ``axis`` argument for ``random.permutation`` and ``random.shuffle`` * ``method`` keyword argument for ``np.random.multivariate_normal`` * Add complex number support for ``numpy.fromstring`` * ``numpy.unique`` has consistent axes order when ``axis`` is not None * ``numpy.matmul`` with boolean output now converts to boolean values * ``numpy.random.randint`` produced incorrect value when the range was ``2**32`` * Add complex number support for ``numpy.fromfile`` * ``std=c99`` added if compiler is named ``gcc`` + Changes * ``NaT`` now sorts to the end of arrays * Incorrect ``threshold`` in ``np.set_printoptions`` raises ``TypeError`` or ``ValueError`` * Warn when saving a dtype with metadata * ``numpy.distutils`` append behavior changed for LDFLAGS and similar * Remove ``numpy.random.entropy`` without a deprecation * Add options to quiet build configuration and build with ``-Werror`` OBS-URL: https://build.opensuse.org/request/show/761226 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=47
2020-01-07 07:39:50 +01:00
%endif
%check
# https://numpy.org/doc/stable/dev/development_environment.html#running-tests
%if %{without hpc}
export PATH="%{buildroot}%{_bindir}:$PATH"
mkdir -p testing
cp pytest.ini testing/
pushd testing
# flaky tests
test_failok+=" or test_structured_object_indexing"
test_failok+=" or test_structured_object_item_setting"
# flaky due to memory consumption
test_failok+=" or test_big_arrays"
# gh#numpy/numpy#22825
test_failok+=" or TestPrintOptions"
# gh#numpy/numpy#22835
test_failok+=" or test_keepdims_out"
# boo#1148173 gh#numpy/numpy#14438
%ifarch ppc64 ppc64le
test_failok+=" or test_generalized_sq"
# situation with IBM and double numbers is ... complicated
# gh#numpy/numpy#21094
test_failok+=" or test_ppc64_ibm_double_double128"
%endif
Accepting request 870967 from home:bnavigator:branches:dlpn_numpy - 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 OBS-URL: https://build.opensuse.org/request/show/870967 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=84
2021-02-10 22:14:05 +01:00
# these tests fail on big endian gh#numpy/numpy#11831
%ifarch s390x ppc ppc64
test_failok+=" or TestFReturnCharacter"
Accepting request 870967 from home:bnavigator:branches:dlpn_numpy - 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 OBS-URL: https://build.opensuse.org/request/show/870967 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=84
2021-02-10 22:14:05 +01:00
%endif
# missing instruction set
%ifarch s390x
test_failok+=" or test_truncate_f32"
%endif
%ifarch %{ix86}
Accepting request 870967 from home:bnavigator:branches:dlpn_numpy - 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 OBS-URL: https://build.opensuse.org/request/show/870967 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=84
2021-02-10 22:14:05 +01:00
# (arm 32-bit seems okay here)
# gh#numpy/numpy#18387
Accepting request 870967 from home:bnavigator:branches:dlpn_numpy - 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 OBS-URL: https://build.opensuse.org/request/show/870967 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=84
2021-02-10 22:14:05 +01:00
test_failok+=" or test_pareto"
# gh#numpy/numpy#18388
test_failok+=" or test_float_remainder_overflow"
%endif
%ifarch %{ix86} %{arm32}
# too much memory for 32bit
test_failok+=" or test_identityless_reduction_huge_array"
test_failok+=" or test_huge_vectordot"
# invalid int type for 32bit
2023-08-14 13:44:27 +02:00
test_failok+=" or (test_kind and test_quad_precision)"
test_failok+=" or (test_kind and test_int)"
test_failok+=" or (test_kind and test_real)"
test_failok+=" or (test_multinomial_pvals_float32)"
2023-08-14 13:44:27 +02:00
%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
%ifarch riscv64
# These tests fail due to non-portable assumptions about the signbit of NaN
# gh#numpy/numpy#8213
test_failok+=" or (test_umath and test_fpclass)"
test_failok+=" or (test_numeric and TestBoolCmp and test_float)"
test_failok+=" or (test_umath and test_fp_noncontiguous)"
%endif
echo "
import sys
import numpy
r = numpy.test(label='full', verbose=2,
extra_argv=['-v', '-n', 'auto', '-k'] + sys.argv[1:])
sys.exit(0 if r else 1)
" > runobstest.py
%{python_expand # for all python3 flavors
export PYTHONPATH=%{buildroot}%{$python_sitearch}
export PYTHONDONTWRITEBYTECODE=1
[ -n "$test_failok" ] && $python runobstest.py "${test_failok:4}" ||:
# test_new_policy: duplicates test runs and output and does not follow our deselection
- Update to 1.26.2: * TYP: Trim down the ``_NestedSequence.__getitem__`` signature * BUG: fix choose refcount leak * TST: fix running the test suite in builds without BLAS/LAPACK * BUG: random: Fix generation of nan by dirichlet. * TST: fix distutils tests for deprecations in recent setuptools... * MAINT: Remove versioneer * MAINT: Pin upper version of sphinx. * ENH: Add prefix to _ALIGN Macro * BUG: cleanup warnings [skip azp][skip circle][skip travis][skip... * BUG: ``asv dev`` has been removed, use ``asv run``. * BUG: Fix meson build failure due to unchanged inplace auto-generated... * BUG: fix issue with git-version script, needs a shebang to run * BUG: Use a default assignment for git_hash [skip ci] * BUG: fix NPY_cast_info error handling in choose * BUG: Fix common block handling in f2py * BUG: Fix assumed length f2py regression * MAINT: Harmonize fortranobject * TYP: add kind argument to numpy.isin type specification * BUG: fix comparisons between masked and unmasked structured arrays * ENH: Adopt new macOS Accelerate BLAS/LAPACK Interfaces, including... * TYP: Add the missing ``casting`` keyword to ``np.clip`` * TST: convert cython test from setup.py to meson * MAINT: Fixup ``fromnumeric.pyi`` * BUG, ENH: Fix ``iso_c_binding`` type maps * TYP: Allow ``binary_repr`` to accept any object * TYP: Explicitly declare ``dtype`` and ``generic`` hashable * ENH: Refactor the typing "reveal" tests using `typing.assert_type` * ENH: ``meson`` backend for ``f2py`` * MAINT: Refactor partial load Workaround for Clang OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=143
2023-11-20 06:10:29 +01:00
# test_cython: https://github.com/numpy/numpy/issues/24956
$python runobstest.py "not (test_new_policy ${test_failok} or slow or test_cython)"
}
popd
%endif
%if %{without hpc}
%pre
# If libalternatives is used: Removing old update-alternatives entries.
%python_libalternatives_reset_alternative f2py
%post
%python_install_alternative f2py
%postun
%python_uninstall_alternative f2py
%endif
%files %{python_files}
%doc README.md THANKS.txt
- Update to 1.26.2: * TYP: Trim down the ``_NestedSequence.__getitem__`` signature * BUG: fix choose refcount leak * TST: fix running the test suite in builds without BLAS/LAPACK * BUG: random: Fix generation of nan by dirichlet. * TST: fix distutils tests for deprecations in recent setuptools... * MAINT: Remove versioneer * MAINT: Pin upper version of sphinx. * ENH: Add prefix to _ALIGN Macro * BUG: cleanup warnings [skip azp][skip circle][skip travis][skip... * BUG: ``asv dev`` has been removed, use ``asv run``. * BUG: Fix meson build failure due to unchanged inplace auto-generated... * BUG: fix issue with git-version script, needs a shebang to run * BUG: Use a default assignment for git_hash [skip ci] * BUG: fix NPY_cast_info error handling in choose * BUG: Fix common block handling in f2py * BUG: Fix assumed length f2py regression * MAINT: Harmonize fortranobject * TYP: add kind argument to numpy.isin type specification * BUG: fix comparisons between masked and unmasked structured arrays * ENH: Adopt new macOS Accelerate BLAS/LAPACK Interfaces, including... * TYP: Add the missing ``casting`` keyword to ``np.clip`` * TST: convert cython test from setup.py to meson * MAINT: Fixup ``fromnumeric.pyi`` * BUG, ENH: Fix ``iso_c_binding`` type maps * TYP: Allow ``binary_repr`` to accept any object * TYP: Explicitly declare ``dtype`` and ``generic`` hashable * ENH: Refactor the typing "reveal" tests using `typing.assert_type` * ENH: ``meson`` backend for ``f2py`` * MAINT: Refactor partial load Workaround for Clang OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=143
2023-11-20 06:10:29 +01:00
%license LICENSE.txt
%if %{without hpc}
%python_alternative %{_bindir}/f2py
%{python_sitearch}/numpy/
- Update to 1.26.2: * TYP: Trim down the ``_NestedSequence.__getitem__`` signature * BUG: fix choose refcount leak * TST: fix running the test suite in builds without BLAS/LAPACK * BUG: random: Fix generation of nan by dirichlet. * TST: fix distutils tests for deprecations in recent setuptools... * MAINT: Remove versioneer * MAINT: Pin upper version of sphinx. * ENH: Add prefix to _ALIGN Macro * BUG: cleanup warnings [skip azp][skip circle][skip travis][skip... * BUG: ``asv dev`` has been removed, use ``asv run``. * BUG: Fix meson build failure due to unchanged inplace auto-generated... * BUG: fix issue with git-version script, needs a shebang to run * BUG: Use a default assignment for git_hash [skip ci] * BUG: fix NPY_cast_info error handling in choose * BUG: Fix common block handling in f2py * BUG: Fix assumed length f2py regression * MAINT: Harmonize fortranobject * TYP: add kind argument to numpy.isin type specification * BUG: fix comparisons between masked and unmasked structured arrays * ENH: Adopt new macOS Accelerate BLAS/LAPACK Interfaces, including... * TYP: Add the missing ``casting`` keyword to ``np.clip`` * TST: convert cython test from setup.py to meson * MAINT: Fixup ``fromnumeric.pyi`` * BUG, ENH: Fix ``iso_c_binding`` type maps * TYP: Allow ``binary_repr`` to accept any object * TYP: Explicitly declare ``dtype`` and ``generic`` hashable * ENH: Refactor the typing "reveal" tests using `typing.assert_type` * ENH: ``meson`` backend for ``f2py`` * MAINT: Refactor partial load Workaround for Clang OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=143
2023-11-20 06:10:29 +01:00
%{python_sitearch}/numpy-%{version}.dist-info
%exclude %{python_sitearch}/numpy/core/include/
Accepting request 870967 from home:bnavigator:branches:dlpn_numpy - 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 OBS-URL: https://build.opensuse.org/request/show/870967 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=84
2021-02-10 22:14:05 +01:00
%exclude %{python_sitearch}/numpy/distutils/mingw/*.c
%exclude %{python_sitearch}/numpy/distutils/checks/*.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
%else
%exclude %{p_bindir}/f2py
%endif
%{p_python_sitearch}/numpy/
- Update to 1.26.2: * TYP: Trim down the ``_NestedSequence.__getitem__`` signature * BUG: fix choose refcount leak * TST: fix running the test suite in builds without BLAS/LAPACK * BUG: random: Fix generation of nan by dirichlet. * TST: fix distutils tests for deprecations in recent setuptools... * MAINT: Remove versioneer * MAINT: Pin upper version of sphinx. * ENH: Add prefix to _ALIGN Macro * BUG: cleanup warnings [skip azp][skip circle][skip travis][skip... * BUG: ``asv dev`` has been removed, use ``asv run``. * BUG: Fix meson build failure due to unchanged inplace auto-generated... * BUG: fix issue with git-version script, needs a shebang to run * BUG: Use a default assignment for git_hash [skip ci] * BUG: fix NPY_cast_info error handling in choose * BUG: Fix common block handling in f2py * BUG: Fix assumed length f2py regression * MAINT: Harmonize fortranobject * TYP: add kind argument to numpy.isin type specification * BUG: fix comparisons between masked and unmasked structured arrays * ENH: Adopt new macOS Accelerate BLAS/LAPACK Interfaces, including... * TYP: Add the missing ``casting`` keyword to ``np.clip`` * TST: convert cython test from setup.py to meson * MAINT: Fixup ``fromnumeric.pyi`` * BUG, ENH: Fix ``iso_c_binding`` type maps * TYP: Allow ``binary_repr`` to accept any object * TYP: Explicitly declare ``dtype`` and ``generic`` hashable * ENH: Refactor the typing "reveal" tests using `typing.assert_type` * ENH: ``meson`` backend for ``f2py`` * MAINT: Refactor partial load Workaround for Clang OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=143
2023-11-20 06:10:29 +01:00
%{p_python_sitearch}/numpy-%{version}.dist-info
%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
Accepting request 870967 from home:bnavigator:branches:dlpn_numpy - 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 OBS-URL: https://build.opensuse.org/request/show/870967 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=84
2021-02-10 22:14:05 +01:00
%exclude %{p_python_sitearch}/numpy/distutils/mingw/*.c
%exclude %{p_python_sitearch}/numpy/distutils/checks/*.c
%exclude %{p_python_sitearch}/numpy/f2py/src/
%endif
%if %{with hpc}
%define hpc_module_pname %{python_flavor}-numpy
%{hpc_modules_files}
%{hpc_dirs}
%dir %{hpc_bindir}
%dir %{hpc_libdir}/python%{hpc_python_version}
%dir %{p_python_sitearch}
%endif
%files %{python_files devel}
%license LICENSE.txt
%if %{without hpc}
%{python_sitearch}/numpy/core/include/
%if 0%{python_version_nodots} < 312
Accepting request 870967 from home:bnavigator:branches:dlpn_numpy - 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 OBS-URL: https://build.opensuse.org/request/show/870967 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=84
2021-02-10 22:14:05 +01:00
%{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
%else
%{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
Accepting request 870967 from home:bnavigator:branches:dlpn_numpy - 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 OBS-URL: https://build.opensuse.org/request/show/870967 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=84
2021-02-10 22:14:05 +01:00
%{p_python_sitearch}/numpy/distutils/mingw/*.c
%{p_python_sitearch}/numpy/distutils/checks/*.c
%endif
%{p_python_sitearch}/numpy/f2py/src/
%endif
%changelog