[Python-modules-commits] [python-brainstorm] 02/06: change version to 0.5-3 (UNRELEASED) add fix-tests-for-numpy-1.12.patch.

Daniel Stender danstender-guest at moszumanska.debian.org
Thu Jan 19 19:37:42 UTC 2017


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

danstender-guest pushed a commit to branch master
in repository python-brainstorm.

commit 56de57096b20c85d8a3290f25cf77e14be42f85c
Merge: d73ca71 6fb0fd9
Author: Daniel Stender <stender at debian.org>
Date:   Thu Jan 19 20:25:59 2017 +0100

    change version to 0.5-3 (UNRELEASED)
    add fix-tests-for-numpy-1.12.patch.

 brainstorm.egg-info/PKG-INFO                       | 77 ----------------------
 brainstorm.egg-info/SOURCES.txt                    | 72 --------------------
 brainstorm.egg-info/dependency_links.txt           |  1 -
 brainstorm.egg-info/requires.txt                   | 27 --------
 brainstorm.egg-info/top_level.txt                  |  1 -
 brainstorm/tests/test_handler_operations.py        |  4 +-
 brainstorm/tests/test_weight_modifiers.py          |  2 +-
 debian/.git-dpm                                    |  4 +-
 debian/changelog                                   |  6 ++
 debian/patches/0001-fix-tests-for-numpy-1.12.patch | 42 ++++++++++++
 debian/patches/series                              |  1 +
 11 files changed, 54 insertions(+), 183 deletions(-)

diff --cc debian/.git-dpm
index dd70425,0000000..87622d4
mode 100644,000000..100644
--- a/debian/.git-dpm
+++ b/debian/.git-dpm
@@@ -1,11 -1,0 +1,11 @@@
 +# see git-dpm(1) from git-dpm package
- 99c4696b1fef72329a6ddde3a21239456d6346b2
- 99c4696b1fef72329a6ddde3a21239456d6346b2
++6fb0fd984637c08e16f00e736d387a8c9e33dc08
++6fb0fd984637c08e16f00e736d387a8c9e33dc08
 +99c4696b1fef72329a6ddde3a21239456d6346b2
 +99c4696b1fef72329a6ddde3a21239456d6346b2
 +python-brainstorm_0.5.orig.tar.xz
 +7b507ca7b0ab8e3099ca310dceeb28522e1a80fd
 +114968
 +debianTag="debian/%e%v"
 +patchedTag="patched/%e%v"
 +upstreamTag="upstream/%e%u"
diff --cc debian/changelog
index f8415f6,0000000..cde31a2
mode 100644,000000..100644
--- a/debian/changelog
+++ b/debian/changelog
@@@ -1,22 -1,0 +1,28 @@@
++python-brainstorm (0.5-3) UNRELEASED; urgency=medium
++
++  * add fix-tests-for-numpy-1.12.patch.
++
++ -- Daniel Stender <stender at debian.org>  Thu, 19 Jan 2017 20:25:59 +0100
++
 +python-brainstorm (0.5-2) unstable; urgency=medium
 +
 +  * Uploaded to unstable.
 +  * deb/control:
 +    + put team into Maintainer field (unconfirmed team uploads).
 +    + bumped Standards-Version to 3.9.8 (no changes needed).
 +    + short description made more precise.
 +    + added description text on GPU accelerated computation.
 +  * deb/rules:
 +    + added DEB_BUILD_MAINT_OPTIONS export for BINDNOW.
 +    + dropped failsafe for dh_auto_test.
 +    + sorted overrides into build log order.
 +    + added override for dh_gencontrol to run dh_numpy3.
 +  * Set up DEP-8 tests.
 +
 + -- Daniel Stender <stender at debian.org>  Tue, 24 May 2016 20:52:02 +0200
 +
 +python-brainstorm (0.5-1) experimental; urgency=medium
 +
 +  * Initial release (Closes: #817890).
 +
 + -- Daniel Stender <stender at debian.org>  Sun, 13 Mar 2016 17:02:17 +0100
diff --cc debian/patches/0001-fix-tests-for-numpy-1.12.patch
index 0000000,0000000..c60d852
new file mode 100644
--- /dev/null
+++ b/debian/patches/0001-fix-tests-for-numpy-1.12.patch
@@@ -1,0 -1,0 +1,42 @@@
++From 6fb0fd984637c08e16f00e736d387a8c9e33dc08 Mon Sep 17 00:00:00 2001
++From: Daniel Stender <stender at debian.org>
++Date: Thu, 19 Jan 2017 20:24:51 +0100
++Subject: fix tests for numpy 1.12
++
++Description: fixes tests for Numpy 1.12.0.
++Bug-Debian: https://bugs.debian.org/849232
++Author: Graham Inggs <ginggs at debian.org>
++Forwarded: no
++---
++ brainstorm/tests/test_handler_operations.py | 4 ++--
++ brainstorm/tests/test_weight_modifiers.py   | 2 +-
++ 2 files changed, 3 insertions(+), 3 deletions(-)
++
++diff --git a/brainstorm/tests/test_handler_operations.py b/brainstorm/tests/test_handler_operations.py
++index 783281d..20cc1e8 100644
++--- a/brainstorm/tests/test_handler_operations.py
+++++ b/brainstorm/tests/test_handler_operations.py
++@@ -81,8 +81,8 @@ def test_conv2d_forward_batch_numpy():
++                                      kernel_shape[1]) / stride[1] + 1
++ 
++                                 outputs = np.zeros((nr_images,
++-                                                    output_height,
++-                                                    output_width,
+++                                                    int(output_height),
+++                                                    int(output_width),
++                                                     nr_filters), dtype=dtype)
++                                 true_outputs = np.zeros_like(outputs)
++ 
++diff --git a/brainstorm/tests/test_weight_modifiers.py b/brainstorm/tests/test_weight_modifiers.py
++index dae512c..2254156 100644
++--- a/brainstorm/tests/test_weight_modifiers.py
+++++ b/brainstorm/tests/test_weight_modifiers.py
++@@ -17,7 +17,7 @@ if has_pycuda:
++ def test_limit_incoming_weights_squared():
++     for orig in (np.random.rand(4, 5), np.random.randn(3, 5, 4, 6)):
++         for limit in [0.00001, 1, 10, 10000]:
++-            x = orig.reshape(orig.shape[0], orig.size / orig.shape[0]).copy()
+++            x = orig.reshape(orig.shape[0], int(orig.size / orig.shape[0])).copy()
++             divisor = (x * x).sum(axis=1, keepdims=True) ** 0.5 / limit
++             divisor[divisor < 1] = 1
++             out = (x / divisor).reshape(orig.shape)
diff --cc debian/patches/series
index 0000000,0000000..a9abf30
new file mode 100644
--- /dev/null
+++ b/debian/patches/series
@@@ -1,0 -1,0 +1,1 @@@
++0001-fix-tests-for-numpy-1.12.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-brainstorm.git



More information about the Python-modules-commits mailing list