Your message dated Sun, 15 Dec 2019 22:00:04 +0000
with message-id <[email protected]>
and subject line Bug#943923: fixed in python-apptools 4.4.0-4
has caused the Debian Bug report #943923,
regarding python-apptools: please stop build-depending on python-pandas
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
943923: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=943923
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-apptools
Version: 4.4.0-3
Control: block 937296 by -1
Control: tags -1 patch

pandas upstream dropped Python 2 support in 0.25 (before adding Python 3.8 support). As further discussed in #937296, the Debian package python-pandas is currently part of a big tangle of circular (build-)dependencies, but can be cut out of that tangle by removing the build-dependencies from python-apptools and matplotlib2.

Hence, please apply the attached patch to drop the python-pandas build dependency and allow the test suite to be run without it.
diff -Nru python-apptools-4.4.0/debian/changelog 
python-apptools-4.4.0/debian/changelog
--- python-apptools-4.4.0/debian/changelog      2019-03-05 20:26:46.000000000 
+0000
+++ python-apptools-4.4.0/debian/changelog      2019-10-31 21:42:13.000000000 
+0000
@@ -1,3 +1,10 @@
+python-apptools (4.4.0-4) UNRELEASED; urgency=medium
+
+  * Stop build-depending on python-pandas,
+    and fix resulting test issues.
+
+ -- Rebecca N. Palmer <[email protected]>  Thu, 31 Oct 2019 21:42:13 
+0000
+
 python-apptools (4.4.0-3) unstable; urgency=medium
 
   * Fixing broken links in python-apptools-doc
diff -Nru python-apptools-4.4.0/debian/control 
python-apptools-4.4.0/debian/control
--- python-apptools-4.4.0/debian/control        2019-03-05 20:26:46.000000000 
+0000
+++ python-apptools-4.4.0/debian/control        2019-10-31 21:33:48.000000000 
+0000
@@ -11,7 +11,6 @@
  python-setuptools,
  python-traits,
  python-tables,
- python-pandas,
  python-nose,
  python-configobj,
  python3-all,
diff -Nru python-apptools-4.4.0/debian/patches/series 
python-apptools-4.4.0/debian/patches/series
--- python-apptools-4.4.0/debian/patches/series 2019-03-05 20:26:46.000000000 
+0000
+++ python-apptools-4.4.0/debian/patches/series 2019-10-31 21:42:13.000000000 
+0000
@@ -4,3 +4,4 @@
 dont_delete_tmp
 skip_test_file_properties
 man_page_section
+test_without_pandas
diff -Nru python-apptools-4.4.0/debian/patches/test_without_pandas 
python-apptools-4.4.0/debian/patches/test_without_pandas
--- python-apptools-4.4.0/debian/patches/test_without_pandas    1970-01-01 
01:00:00.000000000 +0100
+++ python-apptools-4.4.0/debian/patches/test_without_pandas    2019-10-31 
21:42:13.000000000 +0000
@@ -0,0 +1,52 @@
+Description: Allow importing H5TableNode without pandas
+
+Needed to run the test suite without python-pandas.
+
+Author: Rebecca N. Palmer <[email protected]>
+Bug-Debian: https://bugs.debian.org/<bugnumber>
+Forwarded: no
+
+--- python-apptools-4.4.0.orig/apptools/io/h5/table_node.py
++++ python-apptools-4.4.0/apptools/io/h5/table_node.py
+@@ -1,5 +1,8 @@
+ import numpy as np
+-from pandas import DataFrame
++try:
++    from pandas import DataFrame
++except ImportError:
++    DataFrame = None
+ from tables.table import Table as PyTablesTable
+ 
+ 
+@@ -116,6 +119,8 @@ class H5TableNode(object):
+         XXX: This does not work if the table contains a multidimensional 
column
+         """
+         # Slicing rows gives a numpy struct array, which DataFrame 
understands.
++        if DataFrame is None:
++            raise ImportError("to_dataframe requires pandas, which was not 
found")
+         return DataFrame(self.ix[:])
+ 
+     
#--------------------------------------------------------------------------
+--- python-apptools-4.4.0.orig/apptools/io/h5/tests/test_table_node.py
++++ python-apptools-4.4.0/apptools/io/h5/tests/test_table_node.py
+@@ -1,6 +1,10 @@
+ import numpy as np
+ from numpy.testing import assert_allclose
+-from pandas import DataFrame
++from numpy.testing.decorators import skipif
++try:
++    from pandas import DataFrame
++except ImportError:
++    DataFrame = None
+ 
+ from ..table_node import H5TableNode
+ from .utils import temp_h5_file
+@@ -46,7 +50,7 @@ def test_keys():
+         h5table = H5TableNode.add_to_h5file(h5, NODE, description)
+         assert set(h5table.keys()) == keys
+ 
+-
++@skipif(DataFrame == None, "requires pandas")
+ def test_to_dataframe():
+     description = [('a', np.float64)]
+     with temp_h5_file() as h5:

--- End Message ---
--- Begin Message ---
Source: python-apptools
Source-Version: 4.4.0-4

We believe that the bug you reported is fixed in the latest version of
python-apptools, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sandro Tosi <[email protected]> (supplier of updated python-apptools package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sun, 15 Dec 2019 16:08:24 -0500
Source: python-apptools
Architecture: source
Version: 4.4.0-4
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Modules Team 
<[email protected]>
Changed-By: Sandro Tosi <[email protected]>
Closes: 935202 937577 943923
Changes:
 python-apptools (4.4.0-4) unstable; urgency=medium
 .
   [ Ondřej Nový ]
   * d/copyright: Change Format URL to correct one.
   * Bump Standards-Version to 4.4.1.
 .
   [ Sandro Tosi ]
   * Drop python2 support; Closes: #943923, #937577, #935202
Checksums-Sha1:
 915e8e3ec31c3fd056887ee9953c3678c8d651fb 2278 python-apptools_4.4.0-4.dsc
 65c966a7f89d365eb1bad79eab8f422b155f1f50 7160 
python-apptools_4.4.0-4.debian.tar.xz
 48c3d78c42060617f7c837c956df68a8d798dafa 7874 
python-apptools_4.4.0-4_source.buildinfo
Checksums-Sha256:
 be0da31d3b6de254608736be5fc6f6e173d5b0f84f8f973aa4fd766c06640e31 2278 
python-apptools_4.4.0-4.dsc
 154cb4dd395fbd53df52b907c67352e3df134b0e776a29fee0ecbb4bf2f38df7 7160 
python-apptools_4.4.0-4.debian.tar.xz
 e1cdafcee73432d5272069a709078d659a8636d30f0616e0c2a96f3c23d26c27 7874 
python-apptools_4.4.0-4_source.buildinfo
Files:
 283865323ea1dd1c8036859d3d092937 2278 python optional 
python-apptools_4.4.0-4.dsc
 5ee365294a6ec5da44475010f734e607 7160 python optional 
python-apptools_4.4.0-4.debian.tar.xz
 cef1d22b543c6386c48dd5ce4879bf36 7874 python optional 
python-apptools_4.4.0-4_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEufrTGSrz5KUwnZ05h588mTgBqU8FAl32ogMACgkQh588mTgB
qU/Pog//YO3qxyJEEpngPeOqGLvgdiA4QnExLxyoJXTwEBaDvMkpDtZ+7yZ6oBAB
hq+wO9rOAzr4Anqg65AIMKq4in4TNmY1vumcuI7J0iqQXfmbj3xoSDhJFZ4K4svZ
WO1iituTXxZp74/7Eurc+iymJxeu54c5GM570onyUkTSacpjeM7rMCexLIV9WZP3
deou3gXwn3N4lCWbycSA0EISjEDKMFiPvyymKSuo7v68X5VjTTpzrxmkmvCvSHUf
YTmmeVQ8uBvbePLhn4WKNzp+nJl2YaG70oJbJ5PMU9EqR1Rf2BPUwTsbQ7rH+LKZ
OQPOsFLm/xWC1WBSJjqu2Qf26xx1hgOztJr8We2WmVrWdTdnHAPtVyIarSmHfcYu
Ylsg1aWFd2y04SDzEcoWjNXSCBYKTByxaIIpLMv/3rfW+O3IB5b/6cJfY3iobv7W
bStVDpEH2Ne/znPvBQijmzDL8YzIpfeCSeGG5xifbczu/ebxVZFxj/vDqPwwzM1U
/iqHBWipThns00i1nxJmA4DvOmrSHjMH3hkvBjToqgwObK9NCEnx+UNk3Rntfe0f
hyPNA3DJDcN5TlogUqasa3+8W6VgEbyLixBQWN21aOHcH+x5rKLybTuQW/TjaHRJ
lzE9mCyQ53I4DpjjKq8REBigwt5mYyypYosneBspdcQBhINNsZQ=
=LToF
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to