#2 Update to 1.1.0
Merged 5 years ago by jussilehtola. Opened 5 years ago by ykarel.
rpms/ ykarel/python-mpmath master  into  master

file modified
+1
@@ -8,3 +8,4 @@ 

  /mpmath-docsrc-0.19.tar.gz

  /mpmath-0.19.tar.gz

  /python-mpmath-1.0.0.tar.gz

+ /python-mpmath-1.1.0.tar.gz

@@ -1,26 +0,0 @@ 

- From 8a5e3bcdb6975d96442f757fdef084cd186a9fdf Mon Sep 17 00:00:00 2001

- From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>

- Date: Fri, 20 Jul 2018 22:10:18 +0200

- Subject: [PATCH] Fix PEP-479 compatibility (python 3.7)

- 

- 'raise StopIteration' is turned into a RuntimeError under python3.7

- when the generator function stack is exited because of it (and causes

- a warning under python3.6). It is equivalent to plain 'return', which

- works under both python2.x and python3.x.

- ---

-  mpmath/functions/qfunctions.py | 2 +-

-  1 file changed, 1 insertion(+), 1 deletion(-)

- 

- diff --git a/mpmath/functions/qfunctions.py b/mpmath/functions/qfunctions.py

- index 7211507d59..5a20e53a8b 100644

- --- a/mpmath/functions/qfunctions.py

- +++ b/mpmath/functions/qfunctions.py

- @@ -123,7 +123,7 @@ def factors():

-              r *= q

-              k += 1

-              if k >= n:

- -                raise StopIteration

- +                return

-              if k > maxterms:

-                  raise ctx.NoConvergence

-      return ctx.mul_accurately(factors)

file modified
+13 -7
@@ -5,8 +5,8 @@ 

  %endif

  

  Name:           python-mpmath

- Version:        1.0.0

- Release:        4%{?dist}

+ Version:        1.1.0

+ Release:        1%{?dist}

  Summary:        A pure Python library for multiprecision floating-point arithmetic

  License:        BSD

  URL:            http://mpmath.org
@@ -15,8 +15,6 @@ 

  

  # Switch to 'traditional' theme in RHEL since 'classic' isn't available

  Patch0:         python-mpmath-1.0.0-sphinx.patch

- # https://github.com/fredrik-johansson/mpmath/pull/398

- Patch1:         0001-Fix-PEP-479-compatibility-python-3.7.patch

  

  BuildArch:      noarch

  
@@ -25,9 +23,11 @@ 

  BuildRequires:  dvipng

  BuildRequires:  python2-sphinx

  BuildRequires:  tex(latex)

+ BuildRequires:  python2-pytest

  

  %if 0%{?with_python3}

  BuildRequires:  python3-devel

+ BuildRequires:  python3-pytest

  %endif

  

  %global _description\
@@ -44,7 +44,9 @@ 

  

  %package -n python2-mpmath

  Summary: %summary

+ %if 0%{?fedora} || 0%{?rhel} > 7

  Recommends: python2-matplotlib

+ %endif

  %{?python_provide:%python_provide python2-mpmath}

  

  %description -n python2-mpmath %_description
@@ -52,7 +54,9 @@ 

  %if 0%{?with_python3}

  %package -n python3-mpmath

  Summary:        A pure Python library for multiprecision floating-point arithmetic

+ %if 0%{?fedora} || 0%{?rhel} > 7

  Recommends: python3-matplotlib

+ %endif

  %{?python_provide:%python_provide python3-mpmath}

  

  %description -n python3-mpmath
@@ -113,11 +117,10 @@ 

  %endif # with _python3

  

  %check

- export PYTHONPATH=`pwd`/build/lib

  cd build/lib/mpmath/tests/

- %{__python2} runtests.py

+ py.test-2

  %if 0%{?with_python3}

- %{__python3} runtests.py

+ py.test-3

  %endif # with _python3

  

  %files -n python2-mpmath
@@ -136,6 +139,9 @@ 

  %doc doc/build/*

  

  %changelog

+ * Mon Feb 18 2019 Yatin Karel <ykarel@redhat.com> - 1.1.0-1

+ - Update to 1.1.0.

+ 

  * Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-4

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

  

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (python-mpmath-1.0.0.tar.gz) = 5b73d7c04313158af0e5a720aec36e66ddbdd5ac20156d96ec4d7fc0992d60fda541b5240464dbb21be7af397a19d7abcd7ee9e20df2fb7c8e45b48707bbbc63

+ SHA512 (python-mpmath-1.1.0.tar.gz) = 628b6c61015825516d983bfcc54fc3a2793f3d9d2b93ba9c5a487a340ddf13eb4e83f17fa35692b22dd8a200a8da3a65ed88091d75abb4c48c9c4e4f2c686bcc

Remove the patch that's already included in 1.1.0
release.

Also use Recommends only on Fedora and RedHat > 7.

Pull-Request has been merged by jussilehtola

5 years ago