Package: release.debian.org
Severity: normal
User: release.debian....@packages.debian.org
Usertags: unblock

Dear release team,

please unblock spectral-cube 0.4.0-2

This fixes RC bug #860620, "spectral-cube: FTBFS on i386: Test failures".

Relevant changelog:

spectral-cube (0.4.0-2) unstable; urgency=medium

  * Add ASCL Id and reference to d/u/metadata
  * Use assert_almost_equal instead of assert_equal in test_twod_numpy
    (Closes: #860620)

 -- Ole Streicher <oleb...@debian.org>  Wed, 19 Apr 2017 10:27:20 +0200

The debdiff is attached. Relevant command:

unblock spectral-cube/0.4.0-2

Thank you very much

Ole


diff -Nru spectral-cube-0.4.0/debian/changelog 
spectral-cube-0.4.0/debian/changelog
--- spectral-cube-0.4.0/debian/changelog        2016-09-07 09:04:35.000000000 
+0200
+++ spectral-cube-0.4.0/debian/changelog        2017-04-19 10:27:20.000000000 
+0200
@@ -1,3 +1,11 @@
+spectral-cube (0.4.0-2) unstable; urgency=medium
+
+  * Add ASCL Id and reference to d/u/metadata
+  * Use assert_almost_equal instead of assert_equal in test_twod_numpy
+    (Closes: #860620)
+
+ -- Ole Streicher <oleb...@debian.org>  Wed, 19 Apr 2017 10:27:20 +0200
+
 spectral-cube (0.4.0-1) unstable; urgency=low
 
   * New upstream version 0.4.0
diff -Nru spectral-cube-0.4.0/debian/patches/series 
spectral-cube-0.4.0/debian/patches/series
--- spectral-cube-0.4.0/debian/patches/series   2016-09-07 09:04:35.000000000 
+0200
+++ spectral-cube-0.4.0/debian/patches/series   2017-04-19 10:25:32.000000000 
+0200
@@ -1,2 +1,3 @@
 Use-astropy_helpers-provided-by-the-system.patch
 Use-LooseVersion-instead-of-StrictVersion.patch
+Use-assert_almost_equal-instead-of-assert_equal-in-test_t.patch
diff -Nru 
spectral-cube-0.4.0/debian/patches/Use-assert_almost_equal-instead-of-assert_equal-in-test_t.patch
 
spectral-cube-0.4.0/debian/patches/Use-assert_almost_equal-instead-of-assert_equal-in-test_t.patch
--- 
spectral-cube-0.4.0/debian/patches/Use-assert_almost_equal-instead-of-assert_equal-in-test_t.patch
  1970-01-01 01:00:00.000000000 +0100
+++ 
spectral-cube-0.4.0/debian/patches/Use-assert_almost_equal-instead-of-assert_equal-in-test_t.patch
  2017-04-19 10:26:11.000000000 +0200
@@ -0,0 +1,22 @@
+From: Ole Streicher <oleb...@debian.org>
+Date: Wed, 19 Apr 2017 10:24:00 +0200
+Subject: Use assert_almost_equal instead of assert_equal in test_twod_numpy
+
+Closes: #860620
+---
+ spectral_cube/tests/test_spectral_cube.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/spectral_cube/tests/test_spectral_cube.py 
b/spectral_cube/tests/test_spectral_cube.py
+index 4dce3bb..f758dd5 100644
+--- a/spectral_cube/tests/test_spectral_cube.py
++++ b/spectral_cube/tests/test_spectral_cube.py
+@@ -961,7 +961,7 @@ def test_twod_numpy(func, how, axis):
+     # data has a redundant 1st axis
+     dproj = getattr(data,func)(axis=(0,axis+1)).squeeze()
+     assert isinstance(proj, Projection)
+-    np.testing.assert_equal(proj.value, dproj)
++    np.testing.assert_almost_equal(proj.value, dproj)
+     assert cube.unit == proj.unit
+ 
+ @pytest.mark.parametrize('func',('sum','std','max','min','mean'))
diff -Nru spectral-cube-0.4.0/debian/upstream/metadata 
spectral-cube-0.4.0/debian/upstream/metadata
--- spectral-cube-0.4.0/debian/upstream/metadata        2016-07-12 
17:11:26.000000000 +0200
+++ spectral-cube-0.4.0/debian/upstream/metadata        2016-10-28 
12:04:21.000000000 +0200
@@ -1,3 +1,14 @@
+ASCL-Id: 1609.017
 Bug-Database: https://github.com/radio-astro-tools/spectral-cube/issues
 Name: spectral-cube
+Reference:
+ author: >
+      Ginsburg, A. and Robitaille, T. and Beaumont, C. and Rosolowsky, E. and
+      Leroy, A. and Brogan, C. and Hunter, T. and Teuben, P. and Brisbin, D.
+ title: "Radio Astronomy Tools in Python: Spectral-cube, pvextractor, and more"
+ journal: "Revolution in Astronomy with ALMA: The Third Year"
+ year: 2015
+ pages: 363
+ URL: http://adsabs.harvard.edu/abs/2015ASPC..499..363G
+ eprint: http://aspbooks.org/publications/499/363.pdf
 Repository: https://github.com/radio-astro-tools/spectral-cube

Reply via email to