Compare commits
159 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
138e3931a6 | ||
|
d411bdc4f2 | ||
|
6b3a6c9407 | ||
|
94c45e83c5 | ||
|
803fd0655e | ||
|
de8cee97b4 | ||
|
f9718c404a | ||
|
3d2d3e1fed | ||
|
8b264e22b8 | ||
|
77fd7b5f42 | ||
|
87b7e4491e | ||
|
3b286e1db7 | ||
|
8bfea1df6b | ||
|
5b99b78e2c | ||
|
9c18ea8292 | ||
|
6ac9ed170a | ||
|
567bfb565c | ||
|
e73966d9bf | ||
|
0516e73d2e | ||
|
70ed1cdf04 | ||
|
76ca11c616 | ||
|
b2dc08c359 | ||
|
0d2dfdebae | ||
|
a36526471b | ||
|
bf2f2311a1 | ||
|
5dd1dba41f | ||
|
33637a11cb | ||
|
a07631500b | ||
|
180d9017e2 | ||
|
0bf871d600 | ||
|
1d12442e10 | ||
|
32c93448e8 | ||
|
98a80e211d | ||
|
b491c27147 | ||
|
4b0880421d | ||
|
36f81adb49 | ||
|
2b99813d54 | ||
|
33f8ec88d1 | ||
|
c1994df3a0 | ||
|
1a96b4ae2f | ||
|
a9751d7ccc | ||
|
14a650a68a | ||
|
23c4ce0904 | ||
|
dd19a3061b | ||
|
dc3fd840b8 | ||
|
4e4627bca5 | ||
|
c6f0b45631 | ||
|
e5a2f382bb | ||
|
ebde6f766b | ||
|
f274f16327 | ||
|
dc61a2567a | ||
|
69c9877242 | ||
|
0c4a65d090 | ||
|
4711749435 | ||
|
da5496b1f9 | ||
|
76d012b321 | ||
|
45bf650856 | ||
|
ba99478fc6 | ||
|
71b9eae69b | ||
|
8451813298 | ||
|
31c3835604 | ||
|
c76585c7ca | ||
|
4cadcb8b14 | ||
|
c455ea8dfd | ||
|
c7c5da3cf8 | ||
|
8aa891e674 | ||
|
18ceb44c58 | ||
|
ddba47081d | ||
|
710e508b37 | ||
|
00f3bf430f | ||
|
70915da16b | ||
|
a8274e72b2 | ||
|
cedb64bec2 | ||
|
f7432686a4 | ||
|
d8479b3994 | ||
|
96711f1bd3 | ||
|
51297cd8c7 | ||
|
d73d1a8ede | ||
|
7283e39887 | ||
|
6261a33ce8 | ||
|
b734e1ae99 | ||
|
9b671c4026 | ||
|
95dcd63c92 | ||
|
fcd463d948 | ||
|
5873af2f8d | ||
|
91f6f57a2a | ||
|
31201f9df7 | ||
|
331d60bd97 | ||
|
dcc6bb8251 | ||
|
b51885ba54 | ||
|
17734bb24b | ||
|
76638c401e | ||
|
4efd573255 | ||
|
9b629baeb9 | ||
|
77ee388800 | ||
|
5c2f06c5bd | ||
|
e4dd00140d | ||
|
1841cbdf01 | ||
|
24b28cfd3a | ||
|
bc63288290 | ||
|
4ae597be53 | ||
|
744eba3525 | ||
|
73b75412df | ||
|
a4411919fe | ||
|
ebed38b9cd | ||
|
8f15b9cef8 | ||
|
a5f59efebd | ||
|
31c9813094 | ||
|
37b1fd0ac4 | ||
|
019d6dcd99 | ||
|
db1d7ef062 | ||
|
e2c5ca9e08 | ||
|
5ad567d7ee | ||
|
e451a6b988 | ||
|
86c67932b9 | ||
|
aec9c686b5 | ||
|
b7b47ac0f0 | ||
|
e1be8b80d5 | ||
|
cb69bd06f0 | ||
|
e6c765d642 | ||
|
6b9083af7b | ||
|
9c928fe078 | ||
|
efc71de7f4 | ||
|
6f9862fdac | ||
|
6d72b80f05 | ||
|
091f260f01 | ||
|
1954540f50 | ||
|
50c7e098db | ||
|
7f7243164d | ||
|
617a6d6ca1 | ||
|
ea9002fdcc | ||
|
cc9bd4735b | ||
|
4e33955ab8 | ||
|
f1fe393adc | ||
|
0df300c16e | ||
|
1ac1354f50 | ||
|
0a5d812cd3 | ||
|
c64752573a | ||
|
0453f820e4 | ||
|
939fe3da41 | ||
|
237f3022d2 | ||
|
7005ef5ab3 | ||
|
873f0a8b31 | ||
|
44bbb294f6 | ||
|
0c70af6d96 | ||
|
25529951df | ||
|
895adeccfe | ||
|
2a42dbb52e | ||
|
2a3713a7d4 | ||
|
ea45f092ed | ||
|
0eaafacb8e | ||
|
aad8285ff1 | ||
|
d298e1842a | ||
|
8971371032 | ||
|
80f1d0c9bb | ||
|
26099264e1 | ||
|
2e6656edff | ||
|
e42f289bad | ||
|
6e804cd344 |
@ -1 +0,0 @@
|
||||
scipy-0.5.1.tar.gz
|
34
.gitignore
vendored
Normal file
34
.gitignore
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
scipy-0.7.2.tar.gz
|
||||
/scipy-0.9.0.tar.gz
|
||||
/scipy-0.10.0.tar.gz
|
||||
/scipy-0.10.1.tar.gz
|
||||
/scipy-0.11.0rc2.tar.gz
|
||||
/scipy-0.11.0.tar.gz
|
||||
/scipy-0.12.0b1.tar.gz
|
||||
/scipy-0.12.0.tar.gz
|
||||
/scipy-0.13.0b1.tar.gz
|
||||
/scipy-0.13.0rc1.tar.gz
|
||||
/scipy-0.13.0.tar.gz
|
||||
/scipy-0.13.1.tar.gz
|
||||
/scipy-0.13.2.tar.gz
|
||||
/scipy-0.13.3.tar.gz
|
||||
/scipy-0.14.0b1.tar.gz
|
||||
/scipy-0.14.0.tar.gz
|
||||
/scipy-0.14.1.tar.gz
|
||||
/scipy-0.15.1.tar.gz
|
||||
/scipy-0.16.0.tar.gz
|
||||
/scipy-0.16.1.tar.gz
|
||||
/scipy-0.17.0.tar.gz
|
||||
/scipy-0.18.0.tar.xz
|
||||
/scipy-0.19.0.tar.xz
|
||||
/scipy-0.19.1.tar.xz
|
||||
/scipy-1.0.0.tar.xz
|
||||
/scipy-1.1.0.tar.gz
|
||||
/scipy-1.2.0.tar.gz
|
||||
/scipy-1.2.1.tar.gz
|
||||
/scipy-1.3.1.tar.gz
|
||||
/scipy-1.4.1.tar.gz
|
||||
/scipy-1.5.0.tar.gz
|
||||
/scipy-1.5.2.tar.gz
|
||||
/scipy-1.5.3.tar.gz
|
||||
/scipy-1.5.4.tar.gz
|
21
Makefile
21
Makefile
@ -1,21 +0,0 @@
|
||||
# Makefile for source rpm: scipy
|
||||
# $Id$
|
||||
NAME := scipy
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
597
scipy.spec
597
scipy.spec
@ -1,60 +1,590 @@
|
||||
%define python_sitearch %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1)')
|
||||
# without means enabled
|
||||
%bcond_with doc
|
||||
|
||||
Summary: Scipy: array processing for numbers, strings, records, and objects
|
||||
Name: scipy
|
||||
Version: 0.5.1
|
||||
Release: 4%{?dist}
|
||||
# Set to pre-release version suffix if building pre-release, else %%{nil}
|
||||
%global rcver %{nil}
|
||||
|
||||
Group: Development/Libraries
|
||||
License: BSD
|
||||
Url: http://numeric.scipy.org
|
||||
Source0: http://prdownloads.sourceforge.net/scipy/%{name}-%{version}.tar.gz
|
||||
%if 0%{?fedora} >= 33 || 0%{?rhel} >= 9
|
||||
%global blaslib flexiblas
|
||||
%global blasvar %{nil}
|
||||
%else
|
||||
%global blaslib openblas
|
||||
%global blasvar p
|
||||
%endif
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
Summary: Scientific Tools for Python
|
||||
Name: scipy
|
||||
Version: 1.5.4
|
||||
Release: 2%{?dist}
|
||||
|
||||
BuildRequires: numpy, python-devel
|
||||
BuildRequires: fftw-devel, blas-devel, lapack-devel, gcc-gfortran
|
||||
# BSD -- whole package except:
|
||||
# Boost -- scipy/special/cephes/scipy_iv.c
|
||||
# Public Domain -- scipy/odr/__odrpack.c
|
||||
License: BSD and Boost and Public Domain
|
||||
Url: http://www.scipy.org/scipylib/index.html
|
||||
Source0: https://github.com/scipy/scipy/releases/download/v%{version}/scipy-%{version}.tar.gz
|
||||
|
||||
Requires: numpy, python
|
||||
# https://github.com/scipy/scipy/pull/12899
|
||||
Patch0: skip-certain-tests-on-32-bit-arches.patch
|
||||
# https://github.com/scipy/scipy/pull/13130
|
||||
Patch1: skip-factorial-float-tests-on-py310.patch
|
||||
|
||||
BuildRequires: fftw-devel, suitesparse-devel
|
||||
BuildRequires: %{blaslib}-devel
|
||||
BuildRequires: gcc-gfortran, swig, gcc-c++
|
||||
BuildRequires: qhull-devel
|
||||
BuildRequires: /usr/bin/pathfix.py
|
||||
|
||||
%description
|
||||
Scipy 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. Scipy 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.
|
||||
BuildRequires: pybind11-devel
|
||||
BuildRequires: python3-pybind11 >= 2.4.0
|
||||
BuildRequires: python3-numpy, python3-devel, python3-numpy-f2py
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-Cython
|
||||
BuildRequires: python3-pytest
|
||||
BuildRequires: python3-pytest-xdist
|
||||
BuildRequires: python3-pytest-timeout
|
||||
|
||||
There are also basic facilities for discrete fourier transform,
|
||||
basic linear algebra and random number generation.
|
||||
%if %{with doc}
|
||||
BuildRequires: python3-sphinx
|
||||
BuildRequires: python3-matplotlib
|
||||
BuildRequires: python3-numpydoc
|
||||
%endif
|
||||
|
||||
%global _description %{expand:
|
||||
Scipy is open-source software for mathematics, science, and
|
||||
engineering. The core library is NumPy which provides convenient and
|
||||
fast N-dimensional array manipulation. The SciPy library is built to
|
||||
work with NumPy arrays, and provides many user-friendly and efficient
|
||||
numerical routines such as routines for numerical integration and
|
||||
optimization. Together, they run on all popular operating systems, are
|
||||
quick to install, and are free of charge. NumPy and SciPy are easy to
|
||||
use, but powerful enough to be depended upon by some of the world's
|
||||
leading scientists and engineers.}
|
||||
|
||||
%description %_description
|
||||
|
||||
%package -n python3-scipy
|
||||
Summary: Scientific Tools for Python
|
||||
Requires: python3-numpy, python3-f2py
|
||||
%{?python_provide:%python_provide python3-scipy}
|
||||
%description -n python3-scipy %_description
|
||||
|
||||
%if %{with doc}
|
||||
%package -n python3-scipy-doc
|
||||
Summary: Scientific Tools for Python - documentation
|
||||
Requires: python3-scipy = %{version}-%{release}
|
||||
%description -n python3-scipy-doc
|
||||
HTML documentation for Scipy
|
||||
%endif
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%autosetup -p1 -n %{name}-%{version}%{?rcver}
|
||||
cat > site.cfg << EOF
|
||||
|
||||
[amd]
|
||||
library_dirs = %{_libdir}
|
||||
include_dirs = /usr/include/suitesparse
|
||||
amd_libs = amd
|
||||
|
||||
[umfpack]
|
||||
library_dirs = %{_libdir}
|
||||
include_dirs = /usr/include/suitesparse
|
||||
umfpack_libs = umfpack
|
||||
|
||||
[openblas]
|
||||
libraries = %{blaslib}%{blasvar}
|
||||
library_dirs = %{_libdir}
|
||||
EOF
|
||||
|
||||
# Docs won't build unless the .dat files are specified here
|
||||
sed -i 's/metadata = dict(/metadata = dict(package_data={"": ["*.dat"]},/' setup.py
|
||||
|
||||
# remove bundled numpydoc
|
||||
rm doc/sphinxext -r
|
||||
|
||||
rm $(grep -rl '/\* Generated by Cython') PKG-INFO
|
||||
|
||||
%build
|
||||
env CFLAGS="$RPM_OPT_FLAGS" ATLAS=%{_libdir} FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} python setup.py config_fc --fcompiler=gnu95 build
|
||||
for PY in %{python3_version}; do
|
||||
# Adding -fallow-argument-mismatch workaround for https://github.com/scipy/scipy/issues/11611
|
||||
env CFLAGS="$RPM_OPT_FLAGS -lm" \
|
||||
%if 0%{?fedora} >= 32 || 0%{?rhel} >= 9
|
||||
FFLAGS="$RPM_OPT_FLAGS -fPIC -fallow-argument-mismatch" \
|
||||
%else
|
||||
FFLAGS="$RPM_OPT_FLAGS -fPIC" \
|
||||
%endif
|
||||
OPENBLAS=%{_libdir} \
|
||||
FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} \
|
||||
%{_bindir}/python$PY setup.py config_fc \
|
||||
--fcompiler=gnu95 --noarch \
|
||||
build
|
||||
|
||||
%if %{with doc}
|
||||
pushd doc
|
||||
export PYTHONPATH=$(echo ../build/lib.linux-*-$PY/)
|
||||
make html SPHINXBUILD=sphinx-build-$PY
|
||||
rm -rf build/html/.buildinfo
|
||||
mv build build-$PY
|
||||
popd
|
||||
%endif
|
||||
done
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
env CFLAGS="$RPM_OPT_FLAGS" ATLAS=%{_libdir} FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} python setup.py config_fc --fcompiler=gnu95 install --root=$RPM_BUILD_ROOT
|
||||
%py3_install
|
||||
# Some files got ambiguous python shebangs, we fix them after everything else is done
|
||||
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{python3_sitearch}
|
||||
|
||||
%check
|
||||
# check against the reference BLAS/LAPACK
|
||||
export FLEXIBLAS=netlib
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%ifarch s390x
|
||||
# skip failing tests on s390x for now
|
||||
export PYTEST_ADDOPTS="-k '\
|
||||
not (TestNoData and test_nodata) and \
|
||||
not test_fortranfile_read_mixed_record and \
|
||||
not test_kde_1d and \
|
||||
not test_kde_1d_weighted and \
|
||||
not test_kde_2d and \
|
||||
not test_kde_2d_weighted and \
|
||||
not test_gaussian_kde_subclassing and \
|
||||
not test_gaussian_kde_covariance_caching and \
|
||||
not test_kde_integer_input and \
|
||||
not test_pdf_logpdf and \
|
||||
not test_pdf_logpdf_weighted'"
|
||||
%endif
|
||||
|
||||
pushd %{buildroot}/%{python3_sitearch}
|
||||
%{pytest} --timeout=500 scipy --numprocesses=auto
|
||||
# Remove test remnants
|
||||
rm -rf gram{A,B}
|
||||
popd
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%files -n python3-scipy
|
||||
%doc LICENSE.txt
|
||||
%{python_sitearch}/scipy
|
||||
|
||||
%{python3_sitearch}/scipy/
|
||||
%{python3_sitearch}/*.egg-info
|
||||
|
||||
%if %{with doc}
|
||||
%files -n python3-scipy-doc
|
||||
%license LICENSE.txt
|
||||
%doc doc/build-%{python3_version}/html
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Wed Nov 25 2020 Nikola Forró <nforro@redhat.com> - 1.5.4-2
|
||||
- Skip factorial() float tests on Python 3.10
|
||||
resolves: #1898157
|
||||
|
||||
* Thu Nov 05 2020 Nikola Forró <nforro@redhat.com> - 1.5.4-1
|
||||
- New upstream release 1.5.4
|
||||
- Increase test timeout, 300 seconds is not always enough
|
||||
for test_logpdf_overflow on s390x
|
||||
resolves: #1894887
|
||||
|
||||
* Mon Oct 19 2020 Nikola Forró <nforro@redhat.com> - 1.5.3-1
|
||||
- New upstream release 1.5.3
|
||||
resolves: #1889132
|
||||
|
||||
* Wed Sep 30 2020 Nikola Forró <nforro@redhat.com> - 1.5.2-2
|
||||
- Skip one more test expected to fail on 32-bit architectures
|
||||
|
||||
* Mon Aug 31 2020 Nikola Forró <nforro@redhat.com> - 1.5.2-1
|
||||
- New upstream release 1.5.2
|
||||
resolves: #1853871 and #1840077
|
||||
|
||||
* Sun Aug 16 2020 Iñaki Úcar <iucar@fedoraproject.org> - 1.5.0-4
|
||||
- https://fedoraproject.org/wiki/Changes/FlexiBLAS_as_BLAS/LAPACK_manager
|
||||
|
||||
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-3
|
||||
- Second attempt - Rebuilt for
|
||||
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Tue Jun 23 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.5.0-1
|
||||
- Update to latest version
|
||||
|
||||
* Mon May 25 2020 Miro Hrončok <mhroncok@redhat.com> - 1.4.1-2
|
||||
- Rebuilt for Python 3.9
|
||||
|
||||
* Sun Mar 01 2020 Orion Poplawski <orion@nwra.com> - 1.4.1-1
|
||||
- Update to 1.4.1 (bz#1771154)
|
||||
- Workaround FTBFS with gcc 10 (bz#1800078)
|
||||
|
||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Fri Oct 18 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.1-1
|
||||
- Update to 1.3.1 (#1674101)
|
||||
- Drop Python 2 packages (not supported by SciPy >= 1.3)
|
||||
- Backported upstream patch for cKDTree (fixes FTBFS)
|
||||
|
||||
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-8
|
||||
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||
|
||||
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-7
|
||||
- Rebuilt for Python 3.8
|
||||
|
||||
* Tue Jul 30 2019 Petr Viktorin <pviktori@redhat.com> - 1.2.1-6
|
||||
- Remove build dependency on python2-pytest-xdist and python2-pytest-timeout
|
||||
- Enable parallel tests in Python 3 %%check
|
||||
- Use macros for Python interpreter in tests
|
||||
|
||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Mon Jun 10 2019 Marcel Plch <mplch@redhat.com> - 1.2.1-4
|
||||
- Fix FTBFS with Py3.8 (#1606315)
|
||||
|
||||
* Thu May 16 2019 Orion Poplawski <orion@nwra.com> - 1.2.1-3
|
||||
- Build only against openblasp (bugz#1709161)
|
||||
|
||||
* Fri Apr 26 2019 Orion Poplawski <orion@nwra.com> - 1.2.1-2
|
||||
- Do not create *-PYTEST.pyc files
|
||||
|
||||
* Tue Apr 23 2019 Orion Poplawski <orion@nwra.com> - 1.2.1-1
|
||||
- Update to 1.2.1
|
||||
- Drop scipy2-doc
|
||||
|
||||
* Wed Feb 06 2019 Charalampos Stratakis <cstratak@redhat.com> - 1.2.0-1
|
||||
- Update to 1.2.0
|
||||
|
||||
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Sat Jun 23 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-2
|
||||
- Don't ignore the tests results but rather have a tolerance rate
|
||||
- Skip test_decomp on ppc64le as it currently segfaults
|
||||
|
||||
* Fri Jun 22 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-1
|
||||
- Update to 1.1.0 (#1560265, #1594355)
|
||||
|
||||
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-8
|
||||
- Rebuilt for Python 3.7
|
||||
|
||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Fri Feb 02 2018 Petr Viktorin <pviktori@redhat.com> - 1.0.0-6
|
||||
- Link with -lm to build with new stricter Fedora flags
|
||||
https://bugzilla.redhat.com/show_bug.cgi?id=1541416
|
||||
|
||||
* Wed Jan 31 2018 Christian Dersch <lupinix@mailbox.org> - 1.0.0-5
|
||||
- rebuilt for GCC 8.x (gfortran soname bump)
|
||||
|
||||
* Mon Dec 11 2017 Lumír Balhar <lbalhar@redhat.com> - 1.0.0-4
|
||||
- Disable tests on s390x
|
||||
|
||||
* Mon Nov 20 2017 Lumír Balhar <lbalhar@redhat.com> - 1.0.0-3
|
||||
- New subpackages with HTML documentation
|
||||
|
||||
* Tue Oct 31 2017 Christian Dersch <lupinix@mailbox.org> - 1.0.0-2
|
||||
- Use openblas where available https://fedoraproject.org/wiki/Changes/OpenBLAS_as_default_BLAS
|
||||
- Remove ppc64 hackery for OpenBLAS
|
||||
- Don't run tests in parallel as pytest crashes
|
||||
- Don't run test_denormals as it tends to stuck
|
||||
|
||||
* Thu Oct 26 2017 Thomas Spura <tomspur@fedoraproject.org> - 1.0.0-1
|
||||
- update to 1.0.0 and use pytest instead of nose
|
||||
- use timeout during parallel %%check
|
||||
|
||||
* Wed Oct 04 2017 Christian Dersch <lupinix@mailbox.org> - 0.19.1-5
|
||||
- Use openblas where available (except ppc64), to use same as numpy (BZ 1472318)
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.19.1-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.19.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Fri Jul 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.19.1-2
|
||||
- Rebuild due to bug in RPM (RHBZ #1468476)
|
||||
|
||||
* Tue Jun 27 2017 Christian Dersch <lupinix@mailbox.org> - 0.19.1-1
|
||||
- new version
|
||||
|
||||
* Wed Jun 07 2017 Christian Dersch <lupinix@mailbox.org> - 0.19.0-1
|
||||
- new version
|
||||
|
||||
* Tue Jan 31 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.18.0-3
|
||||
- Rebuild for libgfortran.so.3
|
||||
|
||||
* Mon Dec 12 2016 Stratakis Charalampos <cstratak@redhat.com> - 0.18.0-2
|
||||
- Rebuild for Python 3.6
|
||||
|
||||
* Tue Jul 26 2016 Than Ngo <than@redhat.com> - 0.18.0-1
|
||||
- 0.18.0
|
||||
- %%check: make non-fatal as temporary workaround for scipy build on arm
|
||||
|
||||
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17.0-2
|
||||
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
||||
|
||||
* Tue May 31 2016 Nils Philippsen <nils@redhat.com>
|
||||
- fix source URL
|
||||
|
||||
* Mon Feb 15 2016 Orion Poplawski <orion@cora.nwra.com> - 0.17.0-1
|
||||
- Update to 0.17.0
|
||||
- Drop ctypes patch applied upstream
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.1-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Sat Nov 21 2015 Kalev Lember <klember@redhat.com> - 0.16.1-6
|
||||
- Add provides to satisfy scipy%%{_isa} requires in other packages
|
||||
|
||||
* Sun Nov 15 2015 Björn Esser <fedora@besser82.io> - 0.16.1-5
|
||||
- Revert "Discard results of testsuite on %%{arm} for now"
|
||||
|
||||
* Sat Nov 14 2015 Björn Esser <besser82@fedoraproject.org> - 0.16.1-4
|
||||
- Discard results of testsuite on %%{arm} for now
|
||||
Segfaults on non-aligned memory test (expected for arm)
|
||||
|
||||
* Sat Nov 14 2015 Thomas Spura <tomspur@fedoraproject.org> - 0.16.1-3
|
||||
- Add patch to fix ctypes test
|
||||
- Move requires to correct python2 subpackage
|
||||
- Add FFLAGS also in %%install
|
||||
|
||||
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
||||
|
||||
* Mon Oct 26 2015 Orion Poplawski <orion@cora.nwra.com> - 0.16.1-1
|
||||
- Update to 0.16.1
|
||||
|
||||
* Wed Oct 14 2015 Thomas Spura <tomspur@fedoraproject.org> - 0.16.0-1
|
||||
- Update to 0.16.0
|
||||
- Use python_provide macro
|
||||
|
||||
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Tue Mar 31 2015 Orion Poplawski <orion@cora.nwra.com> - 0.15.1-1
|
||||
- Update to 0.15.1
|
||||
|
||||
* Sun Jan 4 2015 Orion Poplawski <orion@cora.nwra.com> - 0.14.1-1
|
||||
- Update to 0.14.1
|
||||
|
||||
* Wed Aug 20 2014 Kevin Fenzi <kevin@scrye.com> - 0.14.0-5
|
||||
- Rebuild for rpm bug 1131892
|
||||
|
||||
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Sat May 10 2014 Orion Poplawski <orion@cora.nwra.com> - 0.14-2
|
||||
- Rebuild with Python 3.4
|
||||
|
||||
* Tue May 6 2014 Orion Poplawski <orion@cora.nwra.com> - 0.14-1
|
||||
- Update to 0.14
|
||||
- Do not use system python-six (bug #1046817)
|
||||
|
||||
* Thu Feb 20 2014 Thomas Spura <tomspur@fedoraproject.org> - 0.13.3-2
|
||||
- use python2 macros everywhere (Requested by Han Boetes)
|
||||
|
||||
* Tue Feb 4 2014 Thomas Spura <tomspur@fedoraproject.org> - 0.13.3-1
|
||||
- Update to 0.13.3
|
||||
|
||||
* Mon Dec 9 2013 Orion Poplwski <orion@cora.nwra.com> - 0.13.2-1
|
||||
- Update to 0.13.2
|
||||
|
||||
* Fri Dec 06 2013 Nils Philippsen <nils@redhat.com> - 0.13.1-2
|
||||
- rebuild (suitesparse)
|
||||
|
||||
* Sun Nov 17 2013 Orion Poplwski <orion@cora.nwra.com> - 0.13.1-1
|
||||
- Update to 0.13.1
|
||||
|
||||
* Wed Oct 23 2013 Tomas Tomecek <ttomecek@redhat.com> - 0.13.0-2
|
||||
- Update to 0.13.0 final
|
||||
|
||||
* Tue Oct 15 2013 Orion Poplwski <orion@cora.nwra.com> - 0.13.0-0.4.rc1
|
||||
- Update to 0.13.0rc1
|
||||
|
||||
* Tue Oct 01 2013 Tomas Tomecek <ttomecek@redhat.com> - 0.13.0-0.3.b1
|
||||
- rebuilt with atlas 3.10
|
||||
|
||||
* Mon Sep 9 2013 Orion Poplwski <orion@cora.nwra.com> - 0.13.0-0.2.b1
|
||||
- Unbundle python-six (bug #1005350)
|
||||
|
||||
* Thu Aug 29 2013 Orion Poplwski <orion@cora.nwra.com> - 0.13.0-0.1.b1
|
||||
- Update to 0.13.0b1
|
||||
- Drop patches applied upstream
|
||||
- Fixup changelog and summary
|
||||
|
||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Tue Jul 30 2013 Tomas Tomecek <ttomecek@redhat.com> - 0.12.0-4
|
||||
- Fix rpmlint warnings
|
||||
- License update
|
||||
- Add patch to use build_dir argument in build_extension
|
||||
|
||||
* Wed May 15 2013 Orion Poplawski <orion@cora.nwra.com> - 0.12.0-3
|
||||
- Remove old ufsparse references, use suitesparse
|
||||
- Spec cleanup
|
||||
|
||||
* Mon Apr 15 2013 Orion Poplawski <orion@cora.nwra.com> - 0.12.0-2
|
||||
- Add patch to fix segfaul in test of sgeqrf
|
||||
|
||||
* Wed Apr 10 2013 Orion Poplawski <orion@cora.nwra.com> - 0.12.0-1
|
||||
- Update to 0.12.0 final
|
||||
- No longer remove weave from python3 build
|
||||
|
||||
* Sat Feb 16 2013 Orion Poplawski <orion@cora.nwra.com> - 0.12.0-0.1.b1
|
||||
- Update to 0.12.0b1
|
||||
- Drop upstreamed linalg patch
|
||||
|
||||
* Wed Feb 13 2013 Orion Poplawski <orion@cora.nwra.com> - 0.11.0-4
|
||||
- Add patch from upstream to fix python3.3 issues in linalg routines
|
||||
|
||||
* Tue Feb 12 2013 Orion Poplawski <orion@cora.nwra.com> - 0.11.0-3
|
||||
- Disable python3 tests for now
|
||||
|
||||
* Mon Oct 8 2012 Orion Poplawski <orion@cora.nwra.com> - 0.11.0-2
|
||||
- Add requires python3-numpy, python3-f2py for python3-scipy (bug 863755)
|
||||
|
||||
* Sun Sep 30 2012 Orion Poplawski <orion@cora.nwra.com> - 0.11.0-1
|
||||
- Update to 0.11.0 final
|
||||
|
||||
* Thu Aug 23 2012 Orion Poplawski <orion@cora.nwra.com> - 0.11.0-0.1.rc2
|
||||
- Update to 0.11.0rc2
|
||||
|
||||
* Mon Aug 6 2012 Orion Poplawski <orion@cora.nwra.com> - 0.10.1-4
|
||||
- Rebuild for python 3.3
|
||||
|
||||
* Fri Aug 3 2012 David Malcolm <dmalcolm@redhat.com> - 0.10.1-3
|
||||
- remove rhel logic from with_python3 conditional
|
||||
|
||||
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Fri Mar 16 2012 Orion Poplawski <orion@cora.nwra.com> - 0.10.1-1
|
||||
- Update to 0.10.1
|
||||
|
||||
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Mon Nov 14 2011 Orion Poplawski <orion@cora.nwra.com> - 0.10.0-1
|
||||
- Update to 0.10.0
|
||||
|
||||
* Sat Sep 3 2011 Thomas Spura <tomspur@fedoraproject.org> - 0.9.0-2
|
||||
- little cosmetic changes
|
||||
- filter provides in python_sitearch
|
||||
|
||||
* Fri Sep 02 2011 Andrew McNabb <amcnabb@mcnabbs.org>
|
||||
- add python3 subpackage
|
||||
|
||||
* Fri Apr 1 2011 Orion Poplawski <orion@cora.nwra.com> - 0.9.0-1
|
||||
- Update to 0.9.0
|
||||
- Drop all stsci sources and patches, dropped from upstream
|
||||
- Drop gcc and py27 patches fixed upstream
|
||||
- Add %%check section to run tests
|
||||
|
||||
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Sat Jul 31 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.7.2-3
|
||||
- Fix scipy build on python-2.7
|
||||
|
||||
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.7.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
||||
|
||||
* Thu Jul 1 2010 Jef Spaleta <jspaleta@fedoraproject.org> - 0.7.2-1
|
||||
- New upstream release
|
||||
|
||||
* Sun Apr 11 2010 Jef Spaleta <jspaleta@fedoraproject.org> - 0.7.1-3
|
||||
- Bump for rebuild against numpy 1.3
|
||||
|
||||
* Thu Apr 1 2010 Jef Spaleta <jspaleta@fedoraproject.org> - 0.7.1-2
|
||||
- Bump for rebuild against numpy 1.4.0
|
||||
|
||||
* Thu Dec 10 2009 Jon Ciesla <limb@jcomserv.net> - 0.7.1-1
|
||||
- Update to 0.7.1.
|
||||
|
||||
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
* Sun Jun 14 2009 Jef Spaleta <jspaleta@fedoraproject.org> - 0.7.0-4
|
||||
- Fix for gcc34 weave blitz bug #505379
|
||||
|
||||
* Tue Apr 7 2009 Jef Spaleta <jspaleta@fedoraproject.org> - 0.7.0-3
|
||||
- Add f2py requires to prepared for numpy packaging split
|
||||
|
||||
* Sun Mar 1 2009 Jef Spaleta <jspaleta@fedoraproject.org> - 0.7.0-2
|
||||
- Patch for stsci image function syntax fix.
|
||||
|
||||
* Thu Feb 26 2009 Jef Spaleta <jspaleta@fedoraproject.org> - 0.7.0-1
|
||||
- Update to final 0.7 release
|
||||
|
||||
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-0.3.b1
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
* Mon Dec 15 2008 Deji Akingunola <dakingun@gmail.com> - 0.7.0-0.2.b1
|
||||
- Rebuild for atlas-3.8.2
|
||||
|
||||
* Mon Dec 01 2008 Jef Spaleta <jspaleta@fedoraproject.org> - 0.7.0-0.1.b1
|
||||
- Update to latest beta which lists python 2.6 support
|
||||
|
||||
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.6.0-8
|
||||
- Rebuild for Python 2.6
|
||||
|
||||
* Fri Oct 03 2008 Jef Spaleta <jspaleta@fedoraproject.org> - 0.6.0-7
|
||||
- fix the stsci fix
|
||||
|
||||
* Thu Oct 02 2008 Jef Spaleta <jspaleta@fedoraproject.org> - 0.6.0-6
|
||||
- include missing setup files for stsci module
|
||||
|
||||
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.6.0-5
|
||||
- Autorebuild for GCC 4.3
|
||||
|
||||
* Fri Jan 04 2008 Jef Spaleta <jspaleta@fedoraproject.org> - 0.6.0-4
|
||||
- fix for egg-info file creation
|
||||
|
||||
* Wed Oct 03 2007 Jef Spaleta <jspaleta@gmail.com> - 0.6.0-3
|
||||
- include_dirs changes for ufsparse change in development
|
||||
|
||||
* Tue Oct 02 2007 Jef Spaleta <jspaleta@gmail.com> - 0.6.0-2
|
||||
- Fix licensing to match Fedora packaging guidance
|
||||
- Remove unnecessary library deps
|
||||
|
||||
* Tue Sep 25 2007 Jarrod Millman <millman@berkeley.edu> - 0.6.0-1
|
||||
- update to new upstream source
|
||||
- update Summary, License, Url, and description
|
||||
- added extra dependencies
|
||||
- remove symlink since Lib has been renamed scipy
|
||||
|
||||
* Tue Aug 21 2007 Jef Spaleta <jspaleta@gmail.com> - 0.5.2.1-1
|
||||
- Update to new upstream source
|
||||
|
||||
* Tue Aug 21 2007 Jef Spaleta <jspaleta@gmail.com> - 0.5.2-3
|
||||
- fix licensing tag and bump for buildid rebuild
|
||||
|
||||
* Wed Apr 18 2007 Jef Spaleta <jspaleta@gmail.com> - 0.5.2-2.2
|
||||
- go back to using gfortran now that numpy is patched
|
||||
|
||||
* Sat Apr 14 2007 Jef Spaleta <jspaleta@gmail.com> - 0.5.2-2.1
|
||||
- minor correction for f77 usage
|
||||
|
||||
* Sat Apr 14 2007 Jef Spaleta <jspaleta@gmail.com> - 0.5.2-2
|
||||
- revert to f77 due to issue with numpy in development
|
||||
|
||||
* Sat Apr 14 2007 Jef Spaleta <jspaleta@gmail.com> - 0.5.2-1.1
|
||||
- remove arch specific optimizations
|
||||
|
||||
* Wed Feb 21 2007 Jef Spaleta <jspaleta@gmail.com> - 0.5.2-1
|
||||
- Update for new upstream release
|
||||
|
||||
* Mon Dec 11 2006 Jef Spaleta <jspaleta@gmail.com> - 0.5.1-5
|
||||
- Bump for rebuild against python 2.5 in devel tree
|
||||
|
||||
* Sun Dec 3 2006 Jef Spaleta <jspaleta@gmail.com> - 0.5.1-4
|
||||
- Minor adjustments to specfile for packaging guidelines.
|
||||
- Minor adjustments to specfile for packaging guidelines.
|
||||
- Changed buildrequires fftw version 3 from fftw2
|
||||
|
||||
* Sat Dec 2 2006 Jef Spaleta <jspaleta@gmail.com> - 0.5.1-2
|
||||
@ -80,4 +610,3 @@ rm -rf $RPM_BUILD_ROOT
|
||||
- Add changelog
|
||||
- Removed Prefix, Vendor
|
||||
- Fix Source0
|
||||
|
||||
|
47
skip-certain-tests-on-32-bit-arches.patch
Normal file
47
skip-certain-tests-on-32-bit-arches.patch
Normal file
@ -0,0 +1,47 @@
|
||||
From ea0a77cf8761a8b8636b93314139ed0fc0a9d1db Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Nikola=20Forr=C3=B3?= <nforro@redhat.com>
|
||||
Date: Wed, 30 Sep 2020 11:44:25 +0200
|
||||
Subject: [PATCH] TST: make a couple of tests expected to fail on 32-bit
|
||||
architectures
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
In TestConstructUtils.test_concatenate_int32_overflow
|
||||
and test_nnz_overflow, on a 32-bit architecture, in case
|
||||
check_free_memory() passes, ValueError is raised on an attempt
|
||||
to create a numpy array too large for a 32-bit architecture.
|
||||
|
||||
Signed-off-by: Nikola Forró <nforro@redhat.com>
|
||||
---
|
||||
scipy/sparse/tests/test_construct.py | 1 +
|
||||
scipy/sparse/tests/test_sparsetools.py | 1 +
|
||||
2 files changed, 2 insertions(+)
|
||||
|
||||
diff --git a/scipy/sparse/tests/test_construct.py b/scipy/sparse/tests/test_construct.py
|
||||
index 3a882c6cc..5a2b92667 100644
|
||||
--- a/scipy/sparse/tests/test_construct.py
|
||||
+++ b/scipy/sparse/tests/test_construct.py
|
||||
@@ -378,6 +378,7 @@ class TestConstructUtils(object):
|
||||
excinfo.match(r'Got blocks\[0,1\]\.shape\[0\] == 1, expected 2')
|
||||
|
||||
@pytest.mark.slow
|
||||
+ @pytest.mark.xfail_on_32bit("Can't create large array for test")
|
||||
def test_concatenate_int32_overflow(self):
|
||||
""" test for indptr overflow when concatenating matrices """
|
||||
check_free_memory(30000)
|
||||
diff --git a/scipy/sparse/tests/test_sparsetools.py b/scipy/sparse/tests/test_sparsetools.py
|
||||
index 0c208ef44..e95df1ba0 100644
|
||||
--- a/scipy/sparse/tests/test_sparsetools.py
|
||||
+++ b/scipy/sparse/tests/test_sparsetools.py
|
||||
@@ -61,6 +61,7 @@ def test_regression_std_vector_dtypes():
|
||||
|
||||
|
||||
@pytest.mark.slow
|
||||
+@pytest.mark.xfail_on_32bit("Can't create large array for test")
|
||||
def test_nnz_overflow():
|
||||
# Regression test for gh-7230 / gh-7871, checking that coo_todense
|
||||
# with nnz > int32max doesn't overflow.
|
||||
--
|
||||
2.26.2
|
||||
|
40
skip-factorial-float-tests-on-py310.patch
Normal file
40
skip-factorial-float-tests-on-py310.patch
Normal file
@ -0,0 +1,40 @@
|
||||
From eabd8ea25fe291665f37fd069a1c574cd30d12cc Mon Sep 17 00:00:00 2001
|
||||
From: Victor Stinner <vstinner@python.org>
|
||||
Date: Wed, 25 Nov 2020 11:41:15 +0100
|
||||
Subject: [PATCH] GH-13122: Skip factorial() float tests on Python 3.10
|
||||
|
||||
special.factorial() argument should be an array of integers.
|
||||
On Python 3.10, math.factorial() reject float.
|
||||
On Python 3.9, a DeprecationWarning is emitted.
|
||||
A numpy array casts all integers to float if the array contains a
|
||||
single NaN.
|
||||
---
|
||||
scipy/special/tests/test_basic.py | 8 ++++++++
|
||||
1 file changed, 8 insertions(+)
|
||||
|
||||
diff --git a/scipy/special/tests/test_basic.py b/scipy/special/tests/test_basic.py
|
||||
index 9b7260e8435..e2ae29812a5 100644
|
||||
--- a/scipy/special/tests/test_basic.py
|
||||
+++ b/scipy/special/tests/test_basic.py
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
import itertools
|
||||
import platform
|
||||
+import sys
|
||||
|
||||
import numpy as np
|
||||
from numpy import (array, isnan, r_, arange, finfo, pi, sin, cos, tan, exp,
|
||||
@@ -1822,6 +1823,13 @@ def test_nan_inputs(self, x, exact):
|
||||
result = special.factorial(x, exact=exact)
|
||||
assert_(np.isnan(result))
|
||||
|
||||
+ # GH-13122: special.factorial() argument should be an array of integers.
|
||||
+ # On Python 3.10, math.factorial() reject float.
|
||||
+ # On Python 3.9, a DeprecationWarning is emitted.
|
||||
+ # A numpy array casts all integers to float if the array contains a
|
||||
+ # single NaN.
|
||||
+ @pytest.mark.skipif(sys.version_info >= (3, 10),
|
||||
+ reason="Python 3.10+ math.factorial() requires int")
|
||||
def test_mixed_nan_inputs(self):
|
||||
x = np.array([np.nan, 1, 2, 3, np.nan])
|
||||
with suppress_warnings() as sup:
|
Loading…
Reference in New Issue
Block a user