python3-gmpy2: update to 2.2.0.
This commit is contained in:
parent
3a5c960448
commit
b5acc5e531
|
@ -1,22 +0,0 @@
|
|||
Skip mpmath test if module not available
|
||||
|
||||
diff --git a/test/test_mpfr.py b/test/test_mpfr.py
|
||||
index 03f0a44..e9deb79 100644
|
||||
--- a/test/test_mpfr.py
|
||||
+++ b/test/test_mpfr.py
|
||||
@@ -3,7 +3,6 @@ from decimal import Decimal
|
||||
import pytest
|
||||
from hypothesis import given, example, settings
|
||||
from hypothesis.strategies import floats
|
||||
-import mpmath
|
||||
|
||||
import gmpy2
|
||||
from gmpy2 import (gamma_inc, mpfr, cmp, cmp_abs, zero, nan, mpz, mpq,
|
||||
@@ -123,6 +122,7 @@ def test_mpfr_nrandom():
|
||||
|
||||
|
||||
def test_mpfr_mpmath():
|
||||
+ mpmath = pytest.importorskip("mpmath")
|
||||
a, b, c, d = '1.1', '-1.1', '-3.14', '0'
|
||||
assert mpfr(a)._mpf_ == (0, mpz(4953959590107546), -52, 53)
|
||||
assert mpmath.mpf(mpfr(a)) == mpmath.mpf(a)
|
|
@ -1,6 +1,7 @@
|
|||
# Template file for 'python3-gmpy2'
|
||||
pkgname=python3-gmpy2
|
||||
version=2.2.0a1
|
||||
# need $version > 2.2.0a1 which we shipped before by necessity
|
||||
version=2.2.0r
|
||||
revision=1
|
||||
build_style=python3-pep517
|
||||
hostmakedepends="python3-setuptools python3-wheel"
|
||||
|
@ -12,14 +13,10 @@ maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
|
|||
license="LGPL-3.0-or-later"
|
||||
homepage="https://github.com/aleaxit/gmpy"
|
||||
changelog="https://github.com/aleaxit/gmpy/releases"
|
||||
distfiles="${PYPI_SITE}/g/gmpy2/gmpy2-${version}.tar.gz"
|
||||
checksum=3b8acc939a40411a8ad5541ed178ff866dd1759e667ee26fe34c9291b6b350c3
|
||||
distfiles="${PYPI_SITE}/g/gmpy2/gmpy2-${version%r}.tar.gz"
|
||||
checksum=e19e62dfeb1e4a57079f0bf51c51dec30633d9fe9e89cb9a083e05e4823afa70
|
||||
|
||||
if [ "$XBPS_CHECK_PKGS" = full ]; then
|
||||
# this would cause a build-time circular dependency
|
||||
checkdepends+=" python3-mpmath"
|
||||
fi
|
||||
|
||||
do_check() {
|
||||
( cd test && PYTHONPATH="$(cd ../build/lib* && pwd)" python3 runtests.py )
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue