pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/py-mpmath py-mpmath: updated to 1.0.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1652da81a2d4
branches:  trunk
changeset: 373918:1652da81a2d4
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu Jan 11 08:07:44 2018 +0000

description:
py-mpmath: updated to 1.0.0

--1.0.0--
* Bumped to major version number for 10 year anniversary
* Added module for inverse Laplace transforms, including the top level
  function invertlaplace() as well as several different algorithms
  (Talbot, Gaver-Stehfest and de Hoog) implemented in
  mpmath.calculus.inverselaplace (Kris Kuhlman)
* Fixed bugs in elliprg() giving incorrect values for certain input
* Fixed wrong degree 1 nodes for Gaussian quadrature
* Made make acot(0) and acoth(0) return a finite result
* Fixed sieved zeta sum not being used in Python 3, and added cutoff
  for sieved zeta sum on 32-bit systems when too much memory would be used
* Fixed zeta(0,0.5) to return correct value instead of raising
  NoConvergence exception
* Added detection of exact zeros in gammainc(), in particular fixing
  NoConvergence error for gammainc(3,-1+1j)
* Fixed wrong values from besseli() due to improper internal precision
* Fixed bessely(0,1j) to return complex nan instead of raising NameError
  (Paul Masson)
* Changed float() and complex() applied to an mpf or mpc to use rounding
  to nearest (or the context rounding mode) instead truncating
* Fix imaginary part of gammainc(n,x), n negative odd int, x < 0
* Added alternative "phase" color scheme to cplot()
* Better error message for int(inf) or int(nan) (Aaron Meurer)
* Fixed polyroots() with error=True
* Added support to pass optional initial values to polyroots()
  (Michael Kagalenko)
* Rewrote the Python major version selection to make it work if something
  else has redefined xrange (Arne Brys)
* Switched documentation formula rendering to MathJax (Sergey B Kirpichev)
* Fixed documentation TeX build (Sergey B Kirpichev)
* Added PEP8 conformity testing (Sergey B Kirpichev)
* Various fixes for the test code and test infrastructure on different
  platforms and Python versions (Sergey B Kirpichev)
* Fixed module paths in setup.py (Aaron Meurer)
* Documented more options for methods such as nstr() and hyper()
* Miscellaneous corrections to the documentation (various)

diffstat:

 math/py-mpmath/Makefile |  33 ++++++++-------------------------
 math/py-mpmath/PLIST    |   6 +++++-
 math/py-mpmath/distinfo |  10 +++++-----
 3 files changed, 18 insertions(+), 31 deletions(-)

diffs (86 lines):

diff -r b1425f0b0ff0 -r 1652da81a2d4 math/py-mpmath/Makefile
--- a/math/py-mpmath/Makefile   Thu Jan 11 07:59:47 2018 +0000
+++ b/math/py-mpmath/Makefile   Thu Jan 11 08:07:44 2018 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.13 2017/01/19 18:52:18 agc Exp $
+# $NetBSD: Makefile,v 1.14 2018/01/11 08:07:44 adam Exp $
 
-DISTNAME=      mpmath-0.19
+DISTNAME=      mpmath-1.0.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-CATEGORIES=    math
+CATEGORIES=    math python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=m/mpmath/}
 MASTER_SITES+= http://mpmath.org/files/
 
@@ -11,30 +11,13 @@
 COMMENT=       Python library for arbitrary-precision FP arithmetic
 LICENSE=       modified-bsd
 
-USE_LANGUAGES= # none
-PYDISTUTILSPKG=        yes
-
-TEST_ENV+=     PYTHONPATH=${WRKSRC}/build/lib
+# py-gmpy provides faster backend
+DEPENDS+=      ${PYPKGPREFIX}-gmpy-[0-9]*:../../math/py-gmpy
 
-SUBST_CLASSES+=                python
-SUBST_STAGE.python=    post-patch
-SUBST_FILES.python+=   mpmath/matrices/eigen.py mpmath/matrices/eigen_symmetric.py
-SUBST_FILES.python+=   mpmath/tests/test_eigen.py mpmath/tests/test_eigen_symmetric.py
-SUBST_FILES.python+=   mpmath/tests/test_levin.py
-SUBST_MESSAGE.python=  Fixing path to Python interpreter.
-SUBST_SED.python=      -e "s,/usr/bin/python,${PYTHONBIN},g"
-
-SUBST_CLASSES+=                python2
-SUBST_STAGE.python2=   post-patch
-SUBST_FILES.python2+=  mpmath/tests/runtests.py
-SUBST_MESSAGE.python2= Fixing path to Python interpreter.
-SUBST_SED.python2=     -e "s,/usr/bin/env python,${PYTHONBIN},g"
+USE_LANGUAGES= # none
 
 do-test:
-       ${RUN} cd ${WRKSRC}/build/lib/mpmath/tests; \
-       ${SETENV} ${TEST_ENV} ${PYTHONBIN} runtests.py
+       cd ${WRKSRC}/mpmath/tests && ${SETENV} ${TEST_ENV} ${PYTHONBIN} runtests.py
 
-.include "../../lang/python/extension.mk"
-# optional speedup
-#.include "../../math/py-gmpy/buildlink3.mk"
+.include "../../lang/python/distutils.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r b1425f0b0ff0 -r 1652da81a2d4 math/py-mpmath/PLIST
--- a/math/py-mpmath/PLIST      Thu Jan 11 07:59:47 2018 +0000
+++ b/math/py-mpmath/PLIST      Thu Jan 11 08:07:44 2018 +0000
@@ -1,4 +1,5 @@
-@comment $NetBSD: PLIST,v 1.5 2014/06/06 12:11:46 wen Exp $
+@comment $NetBSD: PLIST,v 1.6 2018/01/11 08:07:44 adam Exp $
+${PYSITELIB}/${EGG_FILE}
 ${PYSITELIB}/mpmath/__init__.py
 ${PYSITELIB}/mpmath/__init__.pyc
 ${PYSITELIB}/mpmath/__init__.pyo
@@ -17,6 +18,9 @@
 ${PYSITELIB}/mpmath/calculus/extrapolation.py
 ${PYSITELIB}/mpmath/calculus/extrapolation.pyc
 ${PYSITELIB}/mpmath/calculus/extrapolation.pyo
+${PYSITELIB}/mpmath/calculus/inverselaplace.py
+${PYSITELIB}/mpmath/calculus/inverselaplace.pyc
+${PYSITELIB}/mpmath/calculus/inverselaplace.pyo
 ${PYSITELIB}/mpmath/calculus/odes.py
 ${PYSITELIB}/mpmath/calculus/odes.pyc
 ${PYSITELIB}/mpmath/calculus/odes.pyo
diff -r b1425f0b0ff0 -r 1652da81a2d4 math/py-mpmath/distinfo
--- a/math/py-mpmath/distinfo   Thu Jan 11 07:59:47 2018 +0000
+++ b/math/py-mpmath/distinfo   Thu Jan 11 08:07:44 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.7 2015/11/03 23:33:42 agc Exp $
+$NetBSD: distinfo,v 1.8 2018/01/11 08:07:44 adam Exp $
 
-SHA1 (mpmath-0.19.tar.gz) = 65da0ed4ed01d067f0f5b890ca28ad2f2fb56343
-RMD160 (mpmath-0.19.tar.gz) = 96c4f24528e8785209242cb9c36686c42248213f
-SHA512 (mpmath-0.19.tar.gz) = aeaef19f28b0c8a72d5bb093e23a8b1a8d6843f9087711e646b857c8a7722b11611fda76d3fe03c7fee042d0b69fc8f8bbbbb13a97c116a147346f36cdb4f8bf
-Size (mpmath-0.19.tar.gz) = 498564 bytes
+SHA1 (mpmath-1.0.0.tar.gz) = 1df3f1f930b9b7e752c56857f1ac22a62f25b854
+RMD160 (mpmath-1.0.0.tar.gz) = 89440e75bf0b33b125314bf60d92c5d4279c123b
+SHA512 (mpmath-1.0.0.tar.gz) = e26336ef35719d9a5a7387b9104be4251726bc9753ad4763f1d6041491e9904d9fc97831875cddbfd0b6b0eb641d579fcc3f556bfae7dd8acd1c5c6b10e8cd61
+Size (mpmath-1.0.0.tar.gz) = 511353 bytes



Home | Main Index | Thread Index | Old Index