[Python-modules-commits] r22536 - in packages/mpmath/trunk/debian (changelog control rules)

morph at users.alioth.debian.org morph at users.alioth.debian.org
Sun Aug 19 15:32:26 UTC 2012


    Date: Sunday, August 19, 2012 @ 15:32:24
  Author: morph
Revision: 22536

provide the Python 3 package; Closes: #624101

Modified:
  packages/mpmath/trunk/debian/changelog
  packages/mpmath/trunk/debian/control
  packages/mpmath/trunk/debian/rules

Modified: packages/mpmath/trunk/debian/changelog
===================================================================
--- packages/mpmath/trunk/debian/changelog	2012-08-19 13:57:21 UTC (rev 22535)
+++ packages/mpmath/trunk/debian/changelog	2012-08-19 15:32:24 UTC (rev 22536)
@@ -8,8 +8,9 @@
   * debian/{control, rules}
     - use dh_sphinxdoc
     - convert to dh sequencer
+    - provide the Python 3 package; Closes: #624101
 
- -- Sandro Tosi <morph at debian.org>  Sun, 19 Aug 2012 15:52:09 +0200
+ -- Sandro Tosi <morph at debian.org>  Sun, 19 Aug 2012 17:31:46 +0200
 
 mpmath (0.17-1) unstable; urgency=low
 

Modified: packages/mpmath/trunk/debian/control
===================================================================
--- packages/mpmath/trunk/debian/control	2012-08-19 13:57:21 UTC (rev 22535)
+++ packages/mpmath/trunk/debian/control	2012-08-19 15:32:24 UTC (rev 22536)
@@ -3,8 +3,8 @@
 Priority: optional
 Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Uploaders: Sandro Tosi <morph at debian.org>
-Build-Depends: debhelper (>= 7.0.50~), python-all (>= 2.6.6-3~)
-Build-Depends-Indep: python-support (>= 0.4), python-sphinx (>= 1.0.7+dfsg), python-codespeak-lib, texlive-latex-base, dvipng, texlive-latex-extra, python-pytest
+Build-Depends: debhelper (>= 7.0.50~), python-all (>= 2.6.6-3~), python3-all (>= 3.1.3-3)
+Build-Depends-Indep: python-support (>= 0.4), python-sphinx (>= 1.0.7+dfsg), python-codespeak-lib, texlive-latex-base, dvipng, texlive-latex-extra, python-pytest, python3-py, python3-pytest
 Standards-Version: 3.9.3
 XS-Python-Version: all
 Homepage: http://code.google.com/p/mpmath/
@@ -40,6 +40,37 @@
      half-up, half-even
    * Unlimited exponents -- no overflow or underflow
 
+Package: python3-mpmath
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}
+#Suggests: python-gmpy (>= 1.03), python-matplotlib, python-mpmath-doc
+Description: library for arbitrary-precision floating-point arithmetic (Python3)
+ Mpmath is a pure-Python library for multiprecision floating-point
+ arithmetic. It provides an extensive set of transcendental functions,
+ unlimited exponent sizes, complex numbers, interval arithmetic,
+ numerical integration and differentiation, root-finding, linear
+ algebra, and much more. Almost any calculation can be performed just
+ as well at 10-digit or 1000-digit precision, and in many cases mpmath
+ implements asymptotically fast algorithms that scale well for
+ extremely high precision work.
+ .
+ If available, mpmath will (optionally) use gmpy to speed up high
+ precision operations. If matplotlib is available, mpmath also
+ provides a convenient plotting interface.
+ .
+ Its features include:
+ .
+   * Fair performance -- typically 10-100x faster than Python's
+     decimal library
+   * Transcendental functions -- all functions from Python's math and
+     cmath modules, plus a few more like gamma, factorial, erf
+   * Complex numbers -- with support for transcendental functions
+   * Directed rounding -- floor, ceiling, down, up, half-down,
+     half-up, half-even
+   * Unlimited exponents -- no overflow or underflow
+ .
+ This package contains the Python 3 version of mpmath.
+
 Package: python-mpmath-doc
 Architecture: all
 Section: doc

Modified: packages/mpmath/trunk/debian/rules
===================================================================
--- packages/mpmath/trunk/debian/rules	2012-08-19 13:57:21 UTC (rev 22535)
+++ packages/mpmath/trunk/debian/rules	2012-08-19 15:32:24 UTC (rev 22536)
@@ -5,21 +5,22 @@
 #export DH_VERBOSE=1
 
 PY2VERS := $(shell pyversions -s)
+PY3VERS := $(shell py3versions -s)
 
 %:
-	dh $@ --with sphinxdoc
+	dh $@ --with sphinxdoc,python3
 
 override_dh_auto_test:
 ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
 	#set -e ; \
-	for python in $(PY2VERS); do \
+	for python in $(PY2VERS) $(PY3VERS); do \
 		$$python mpmath/tests/runtests.py -strict -py -local ; \
 	done
 endif
 
 override_dh_auto_build:
 	set -e ; \
-	for python in $(PY2VERS); do \
+	for python in $(PY2VERS) $(PY3VERS); do \
 		$$python setup.py build; \
 	done
 
@@ -27,19 +28,25 @@
 	
 override_dh_auto_clean:
 	set -e ; \
-	for python in $(PY2VERS); do \
+	for python in $(PY2VERS) $(PY3VERS); do \
 		$$python setup.py clean; \
 	done
 	find . -name '*\.py[co]' -delete
 	dh_clean
 
 override_dh_auto_install:
-	# Add here commands to install the package into debian/python-mpmath.
 	set -e ; \
 	for python in $(PY2VERS); do \
 		$$python setup.py install --root=debian/python-mpmath --install-layout=deb; \
 	done
+	set -e ; \
+	for python in $(PY3VERS); do \
+		$$python setup.py install --root=debian/python3-mpmath --install-layout=deb; \
+	done
 
+	# remove files not compatible with Python 3.x
+	find debian/python3-mpmath -name "exec_py2.py" -delete
+
 	# move generated documentation under subdir to keep doc/ dir clean
 	cp -arp doc/build/* $(CURDIR)/debian/python-mpmath-doc/usr/share/doc/python-mpmath-doc/html/
 	cp -arp doc/source/* $(CURDIR)/debian/python-mpmath-doc/usr/share/doc/python-mpmath-doc/txt/




More information about the Python-modules-commits mailing list