[Python-modules-commits] r8777 - in packages/mpmath/trunk/debian (5 files)

morph at users.alioth.debian.org morph at users.alioth.debian.org
Thu Jun 11 15:47:16 UTC 2009


    Date: Thursday, June 11, 2009 @ 15:47:16
  Author: morph
Revision: 8777

  - pi calculation precision fixed; Closes: #530381
* debian/{control, rules}
  - added dpatch
* http://bugs.debian.org/532779
  - added to fix test execution (solution provided by upstream author)

Added:
  packages/mpmath/trunk/debian/patches/
  packages/mpmath/trunk/debian/patches/10_fix_test.dpatch
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	2009-06-11 15:34:27 UTC (rev 8776)
+++ packages/mpmath/trunk/debian/changelog	2009-06-11 15:47:16 UTC (rev 8777)
@@ -1,8 +1,13 @@
 mpmath (0.12-1) UNRELEASED; urgency=low
 
   * New upstream release
+    - pi calculation precision fixed; Closes: #530381
+  * debian/{control, rules}
+    - added dpatch
+  * http://bugs.debian.org/532779
+    - added to fix test execution (solution provided by upstream author)
 
- -- Sandro Tosi <morph at debian.org>  Thu, 11 Jun 2009 13:56:20 +0200
+ -- Sandro Tosi <morph at debian.org>  Thu, 11 Jun 2009 17:43:37 +0200
 
 mpmath (0.11-2) unstable; urgency=low
 

Modified: packages/mpmath/trunk/debian/control
===================================================================
--- packages/mpmath/trunk/debian/control	2009-06-11 15:34:27 UTC (rev 8776)
+++ packages/mpmath/trunk/debian/control	2009-06-11 15:47:16 UTC (rev 8777)
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Uploaders: Sandro Tosi <morph at debian.org>, Ondrej Certik <ondrej at certik.cz>
-Build-Depends: debhelper (>= 5), python
+Build-Depends: debhelper (>= 5), python, dpatch
 Build-Depends-Indep: python-support (>= 0.4), python-sphinx (>= 0.5), python-codespeak-lib, texlive-latex-base, dvipng
 Standards-Version: 3.8.0
 Homepage: http://code.google.com/p/mpmath/

Added: packages/mpmath/trunk/debian/patches/10_fix_test.dpatch
===================================================================
--- packages/mpmath/trunk/debian/patches/10_fix_test.dpatch	                        (rev 0)
+++ packages/mpmath/trunk/debian/patches/10_fix_test.dpatch	2009-06-11 15:47:16 UTC (rev 8777)
@@ -0,0 +1,26 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 10_fix_test.dpatch by Sandro Tosi <morph at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad mpmath~/mpmath/tests/test_linalg.py mpmath/mpmath/tests/test_linalg.py
+--- mpmath~/mpmath/tests/test_linalg.py	2009-06-09 20:39:06.000000000 +0200
++++ mpmath/mpmath/tests/test_linalg.py	2009-06-11 17:43:22.000000000 +0200
+@@ -90,6 +90,7 @@
+         assert mnorm(A*inv - eye(A.rows), 1) < 1.e-14
+ 
+ def test_householder():
++    mp.dps = 15
+     A, b = A8, b8
+     H, p, x, r = householder(extend(A, b))
+     assert H == matrix(
+@@ -142,6 +143,7 @@
+     assert norm(residual(A10, qr_solve(A10, b10)[0], b10), 2) < 1.e-10
+ 
+ def test_singular():
++    mp.dps = 15
+     A = [[5.6, 1.2], [7./15, .1]]
+     B = repr(zeros(2))
+     b = [1, 2]


Property changes on: packages/mpmath/trunk/debian/patches/10_fix_test.dpatch
___________________________________________________________________
Added: svn:executable
   + *

Modified: packages/mpmath/trunk/debian/rules
===================================================================
--- packages/mpmath/trunk/debian/rules	2009-06-11 15:34:27 UTC (rev 8776)
+++ packages/mpmath/trunk/debian/rules	2009-06-11 15:47:16 UTC (rev 8777)
@@ -4,8 +4,10 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+include /usr/share/dpatch/dpatch.make
+
 build: build-stamp
-build-stamp:
+build-stamp: patch-stamp
 	dh_testdir
 
 	python setup.py build;
@@ -18,7 +20,7 @@
 	
 	touch $@
 
-clean:
+clean: unpatch
 	dh_testdir
 	dh_testroot
 




More information about the Python-modules-commits mailing list