[pytables] 01/02: New 0007-allow-for-long-type-in-nextafter.patch

Antonio Valentino a_valentino-guest at moszumanska.debian.org
Sat Dec 3 21:24:45 UTC 2016


This is an automated email from the git hooks/post-receive script.

a_valentino-guest pushed a commit to branch master
in repository pytables.

commit 22f380f9bacd4db67bd1fd4393ded7b22e535167
Author: Antonio Valentino <antonio.valentino at tiscali.it>
Date:   Sat Dec 3 19:39:08 2016 +0000

    New 0007-allow-for-long-type-in-nextafter.patch
---
 debian/changelog                                   |  4 +++
 .../0007-allow-for-long-type-in-nextafter.patch    | 29 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 3 files changed, 34 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 15cb655..72b640c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,10 @@ pytables (3.3.0-5) UNRELEASED; urgency=medium
 
   * debian/rules
     - typo in BUILD_DATE
+  * debian/patches
+    - new 0007-allow-for-long-type-in-nextafter.patch.
+      Imported from upstream  (see also
+      https://github.com/PyTables/PyTables/pull/587)
 
  -- Antonio Valentino <antonio.valentino at tiscali.it>  Sun, 06 Nov 2016 08:25:24 +0100
 
diff --git a/debian/patches/0007-allow-for-long-type-in-nextafter.patch b/debian/patches/0007-allow-for-long-type-in-nextafter.patch
new file mode 100644
index 0000000..6617afc
--- /dev/null
+++ b/debian/patches/0007-allow-for-long-type-in-nextafter.patch
@@ -0,0 +1,29 @@
+From: Antonio Valentino <antonio.valentino at tiscali.it>
+Date: Sat, 3 Dec 2016 19:34:28 +0000
+Subject: allow for long type in nextafter
+
+---
+ tables/idxutils.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/tables/idxutils.py b/tables/idxutils.py
+index 99d85d1..470ea4c 100644
+--- a/tables/idxutils.py
++++ b/tables/idxutils.py
+@@ -13,6 +13,7 @@
+ """Utilities to be used mainly by the Index class."""
+ from __future__ import absolute_import
+ 
++import six
+ import sys
+ import math
+ import numpy
+@@ -471,7 +472,7 @@ def nextafter(x, direction, dtype, itemsize):
+     direction."""
+ 
+     assert direction in [-1, 0, +1]
+-    assert dtype.kind == "S" or type(x) in (bool, int, float)
++    assert dtype.kind == "S" or type(x) in (bool, float) + six.integer_types
+ 
+     if direction == 0:
+         return x
diff --git a/debian/patches/series b/debian/patches/series
index 81c50ae..04e32a6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@
 0004-fix-compatibility-with-HDF5-1.10.patch
 0005-Ignore-cpuinfo-on-unsupported-archs.patch
 0006-Disable-tests-on-bitshuffle.patch
+0007-allow-for-long-type-in-nextafter.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytables.git



More information about the debian-science-commits mailing list