[med-svn] [Git][med-team/python-matplotlib-venn][master] Fix for numpy 1.14

Andreas Tille gitlab at salsa.debian.org
Thu Jul 5 20:16:07 BST 2018


Andreas Tille pushed to branch master at Debian Med / python-matplotlib-venn


Commits:
a1809a39 by Andreas Tille at 2018-07-05T21:15:47+02:00
Fix for numpy 1.14

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/numpy_1.14.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
 python-matplotlib-venn (0.11.5-5) UNRELEASED; urgency=medium
 
   * Testsuite: autopkgtest-pkg-python
+  * Fix for numpy 1.14
+    Closes: #902516
 
  -- Andreas Tille <tille at debian.org>  Wed, 25 Apr 2018 16:11:56 +0200
 


=====================================
debian/patches/numpy_1.14.patch
=====================================
--- /dev/null
+++ b/debian/patches/numpy_1.14.patch
@@ -0,0 +1,24 @@
+Description: Numpy 1.14 has changed its output format for str and repr,
+ changing whitespace and the number of sig figs. This breaks doctests
+ that include direct numpy output without formatting the values
+ explicitly. 
+Orgigin: https://wiki.debian.org/ContinuousIntegration/TriagingTips/numpy-1.14-doctests
+Bug-Debian: https://bugs.debian.org/902516
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Fri, 06 Jul 2018 02:51:00 +1000
+
+--- a/matplotlib_venn/_venn2.py
++++ b/matplotlib_venn/_venn2.py
+@@ -14,6 +14,12 @@ if 'py.test' in os.path.basename(sys.arg
+     matplotlib.use('Agg')
+ 
+ import numpy as np
++# Whitespace changes between numpy 1.13 and 1.14 will cause the doctests
++# to fail; when doctests are updated to 1.14 format, this can be removed.
++try:    # CRUFT
++    np.set_printoptions(legacy='1.13')
++except TypeError:
++    pass
+ import warnings
+ from collections import Counter
+ 


=====================================
debian/patches/series
=====================================
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 fix_build_time_test.patch
+numpy_1.14.patch



View it on GitLab: https://salsa.debian.org/med-team/python-matplotlib-venn/commit/a1809a398fadb1c2df4355bd9731112b42fc942f

-- 
View it on GitLab: https://salsa.debian.org/med-team/python-matplotlib-venn/commit/a1809a398fadb1c2df4355bd9731112b42fc942f
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20180705/50893f81/attachment-0001.html>


More information about the debian-med-commit mailing list