Files
python-mpmath/python-mpmath.spec
Dirk Mueller 8d57866d59 Accepting request 1113840 from home:ecsos:python
- Update to 1.3.0
  * Security issues:
    - Fixed ReDOS vulnerability in mpmathify() (CVE-2021-29063)
  * Features:
    - Added quadsubdiv() for numerical integration with adaptive path splitting
    - Added the Cohen algorithm for inverse Laplace transforms
    - Some speedup of matrix multiplication
    - Optimizations to Carlson elliptic integrals
    - Added signal functions (squarew(), trianglew(), sawtoothw(), unit_triangle()
    sigmoidw())
  * Bug fixes:
    - Correct mpf initialization from tuple for finf and fninf
    - Support QR decomposition for matrices of width 0 and 1
    - Fixed some cases where elliprj() gave inaccurate results
    - Fixed cases where digamma() hangs for complex input
    - Fixed cases of polylog() with integer-valued parameter with complex type
    - Fixed fp.nsum() with Euler-Maclaurin algorithm
  * Maintenance:
    - Dropped support for Python 3.4
    - Documentation cleanup
    - Removed obsolete files
    - Added options to runtests.py to skip tests and exit on failure
- Add %{?sle15_python_module_pythons}

OBS-URL: https://build.opensuse.org/request/show/1113840
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-mpmath?expand=0&rev=13
2023-09-28 07:41:07 +00:00

75 lines
2.6 KiB
RPMSpec

#
# spec file for package python-mpmath
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# 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/
#
%{?sle15_python_module_pythons}
Name: python-mpmath
Version: 1.3.0
Release: 0
Summary: Python library for arbitrary-precision floating-point arithmetic
License: BSD-3-Clause
Group: Development/Libraries/Python
URL: https://github.com/fredrik-johansson/mpmath
Source: https://files.pythonhosted.org/packages/source/m/mpmath/mpmath-%{version}.tar.gz
BuildRequires: %{python_module devel >= 3.8}
BuildRequires: %{python_module gmpy2 >= 2.1.0a4}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python >= 3.8
Requires: python-gmpy2 >= 2.1.0a4
BuildArch: noarch
%python_subpackages
%description
Mpmath is a pure-Python library for multiprecision floating-point
arithmetic. It provides a set of transcendental functions,
unlimited exponent sizes, complex numbers, interval arithmetic,
numerical integration and differentiation, root-finding, linear
algebra, and others. Almost any calculation can be performed just
as well at 10-digit or 1000-digit precision, and in many cases, mpmath
implements algorithms that scale well for high precision work.
If available, mpmath will (optionally) use gmpy to speed up high
precision operations.
%prep
%setup -q -n mpmath-%{version}
sed -i 's/\r//' mpmath/tests/runtests.py # fix wrong-script-end-of-line-encoding rpmlint warning
sed -i '1d' mpmath/tests/runtests.py # fix non-executable-script rpmlint warning
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export PYTHONDONTWRITEBYTECODE=1
%python_expand PYTHONPATH="%{buildroot}%{$python_sitelib}" py.test-%{$python_bin_suffix} -v --pyargs mpmath
%files %{python_files}
%license LICENSE
%doc README.rst
%dir %{python_sitelib}/mpmath
%{python_sitelib}/mpmath
%{python_sitelib}/mpmath-%{version}-py*.egg-info
%changelog