[med-svn] [Git][med-team/python-biom-format][upstream] New upstream version 2.1.10

Nilesh Patra gitlab at salsa.debian.org
Sat Nov 21 12:49:17 GMT 2020



Nilesh Patra pushed to branch upstream at Debian Med / python-biom-format


Commits:
aecf35b7 by Nilesh Patra at 2020-11-21T18:04:29+05:30
New upstream version 2.1.10
- - - - -


10 changed files:

- ChangeLog.md
- biom/__init__.py
- biom/err.py
- biom/exception.py
- biom/parse.py
- biom/table.py
- biom/tests/test_table.py
- biom/util.py
- doc/conf.py
- setup.py


Changes:

=====================================
ChangeLog.md
=====================================
@@ -1,6 +1,15 @@
 BIOM-Format ChangeLog
 =====================
 
+biom 2.1.10
+-----------
+
+Bug fix, released on 16 November 2020.
+
+Bug fixes:
+
+* During deployment testing for QIIME 2 2020.11, it was observed that certain combinations of hdf5 or h5py dependencies can result in metadata strings parsing as ASCII rather than UTF-8. Parse of BIOM-Format 2.1.0 files now normalize metadata strings as UTF-8, see [PR #853](https://github.com/biocore/biom-format/pull/853).
+
 biom 2.1.9
 ----------
 


=====================================
biom/__init__.py
=====================================
@@ -41,7 +41,7 @@ either in TSV, HDF5, JSON, gzip'd JSON or gzip'd TSV and parse accordingly:
 
 """
 # ----------------------------------------------------------------------------
-# Copyright (c) 2011-2017, The BIOM Format Development Team.
+# Copyright (c) 2011-2020, The BIOM Format Development Team.
 #
 # Distributed under the terms of the Modified BSD License.
 #
@@ -53,7 +53,7 @@ from .parse import parse_biom_table as parse_table, load_table
 from .util import __format_version__, __version__
 
 __author__ = "Daniel McDonald"
-__copyright__ = "Copyright 2011-2017, The BIOM Format Development Team"
+__copyright__ = "Copyright 2011-2020, The BIOM Format Development Team"
 __credits__ = ["Daniel McDonald", "Jai Ram Rideout", "Greg Caporaso",
                "Jose Clemente", "Justin Kuczynski", "Antonio Gonzalez",
                "Yoshiki Vazquez Baeza", "Jose Navas", "Adam Robbins-Pianka",


=====================================
biom/err.py
=====================================
@@ -51,7 +51,7 @@ TableException: Empty table!
 """
 
 # -----------------------------------------------------------------------------
-# Copyright (c) 2011-2017, The BIOM Format Development Team.
+# Copyright (c) 2011-2020, The BIOM Format Development Team.
 #
 # Distributed under the terms of the Modified BSD License.
 #


=====================================
biom/exception.py
=====================================
@@ -2,7 +2,7 @@
 """Define BIOM exceptions"""
 
 # -----------------------------------------------------------------------------
-# Copyright (c) 2011-2017, The BIOM Format Development Team.
+# Copyright (c) 2011-2020, The BIOM Format Development Team.
 #
 # Distributed under the terms of the Modified BSD License.
 #
@@ -10,7 +10,7 @@
 # -----------------------------------------------------------------------------
 
 __author__ = "Daniel McDonald"
-__copyright__ = "Copyright 2011-2017, The BIOM Format Development Team"
+__copyright__ = "Copyright 2011-2020, The BIOM Format Development Team"
 __credits__ = ["Daniel McDonald", "Jai Ram Rideout", "Greg Caporaso",
                "Jose Clemente", "Justin Kuczynski"]
 __license__ = "BSD"


=====================================
biom/parse.py
=====================================
@@ -1,7 +1,7 @@
 #!/usr/bin/env python
 
 # ----------------------------------------------------------------------------
-# Copyright (c) 2011-2017, The BIOM Format Development Team.
+# Copyright (c) 2011-2020, The BIOM Format Development Team.
 #
 # Distributed under the terms of the Modified BSD License.
 #
@@ -23,7 +23,7 @@ from collections import defaultdict, OrderedDict
 
 
 __author__ = "Justin Kuczynski"
-__copyright__ = "Copyright 2011-2017, The BIOM Format Development Team"
+__copyright__ = "Copyright 2011-2020, The BIOM Format Development Team"
 __credits__ = ["Justin Kuczynski", "Daniel McDonald", "Greg Caporaso",
                "Jose Carlos Clemente Litran", "Adam Robbins-Pianka",
                "Jose Antonio Navas Molina"]


=====================================
biom/table.py
=====================================
@@ -165,7 +165,7 @@ Bacteria; Bacteroidetes   1.0 1.0 0.0 1.0
 """
 
 # -----------------------------------------------------------------------------
-# Copyright (c) 2011-2017, The BIOM Format Development Team.
+# Copyright (c) 2011-2020, The BIOM Format Development Team.
 #
 # Distributed under the terms of the Modified BSD License.
 #
@@ -212,7 +212,7 @@ else:
 
 
 __author__ = "Daniel McDonald"
-__copyright__ = "Copyright 2011-2017, The BIOM Format Development Team"
+__copyright__ = "Copyright 2011-2020, The BIOM Format Development Team"
 __credits__ = ["Daniel McDonald", "Jai Ram Rideout", "Greg Caporaso",
                "Jose Clemente", "Justin Kuczynski", "Adam Robbins-Pianka",
                "Joshua Shorenstein", "Jose Antonio Navas Molina",
@@ -257,6 +257,8 @@ def _identify_bad_value(dtype, fields):
 
 
 def general_parser(x):
+    if isinstance(x, bytes):
+        x = x.decode('utf8')
     return x
 
 


=====================================
biom/tests/test_table.py
=====================================
@@ -29,7 +29,7 @@ from biom.table import (Table, prefer_self, index_list, list_nparray_to_sparse,
                         list_dict_to_sparse, dict_to_sparse,
                         coo_arrays_to_sparse, list_list_to_sparse,
                         nparray_to_sparse, list_sparse_to_sparse,
-                        _identify_bad_value)
+                        _identify_bad_value, general_parser)
 from biom.parse import parse_biom_table
 from biom.err import errstate
 
@@ -615,6 +615,19 @@ class TableTests(TestCase):
         obs = self.simple_derived.max('whole')
         npt.assert_equal(obs, exp)
 
+    def test_general_parser(self):
+        test_and_exp = [(b'foo', 'foo'),
+                        ('foo', 'foo'),
+                        (b'', ''),
+                        ('', ''),
+                        (b'10', '10'),
+                        ('10', '10'),
+                        (b'3.14', '3.14'),
+                        ('3.14', '3.14')]
+        for test, exp in test_and_exp:
+            obs = general_parser(test)
+            self.assertEqual(obs, exp)
+
     @npt.dec.skipif(HAVE_H5PY is False, msg='H5PY is not installed')
     def test_from_hdf5_non_hdf5_file_or_group(self):
         with self.assertRaises(ValueError):


=====================================
biom/util.py
=====================================
@@ -1,7 +1,7 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
 # ----------------------------------------------------------------------------
-# Copyright (c) 2011-2017, The BIOM Format Development Team.
+# Copyright (c) 2011-2020, The BIOM Format Development Team.
 #
 # Distributed under the terms of the Modified BSD License.
 #
@@ -37,7 +37,7 @@ except ImportError:
 from numpy import mean, median, min, max
 
 __author__ = "Daniel McDonald"
-__copyright__ = "Copyright 2011-2017, The BIOM Format Development Team"
+__copyright__ = "Copyright 2011-2020, The BIOM Format Development Team"
 __credits__ = ["Daniel McDonald", "Jai Ram Rideout", "Greg Caporaso",
                "Jose Clemente", "Justin Kuczynski", "Jorge Cañardo Alastuey"]
 __license__ = "BSD"
@@ -45,7 +45,7 @@ __url__ = "http://biom-format.org"
 __maintainer__ = "Daniel McDonald"
 __email__ = "daniel.mcdonald at colorado.edu"
 __format_version__ = (2, 1)
-__version__ = "2.1.9"
+__version__ = "2.1.10"
 
 
 def generate_subsamples(table, n, axis='sample', by_id=False):


=====================================
doc/conf.py
=====================================
@@ -66,8 +66,8 @@ copyright = u'2011-2020 The BIOM Format Development Team'
 # built documents.
 #
 # The full version, including alpha/beta/rc tags.
-version = "2.1.9"
-release = "2.1.9"
+version = "2.1.10"
+release = "2.1.10"
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.


=====================================
setup.py
=====================================
@@ -2,7 +2,7 @@
 # -*- coding: utf-8 -*-
 
 # ----------------------------------------------------------------------------
-# Copyright (c) 2011-2017, The BIOM Format Development Team.
+# Copyright (c) 2011-2020, The BIOM Format Development Team.
 #
 # Distributed under the terms of the Modified BSD License.
 #
@@ -29,11 +29,11 @@ for m in ('multiprocessing', 'logging'):
         pass
 
 __author__ = "Daniel McDonald"
-__copyright__ = "Copyright 2011-2017, The BIOM Format Development Team"
+__copyright__ = "Copyright 2011-2020, The BIOM Format Development Team"
 __credits__ = ["Greg Caporaso", "Daniel McDonald", "Jose Clemente",
                "Jai Ram Rideout", "Jorge Cañardo Alastuey", "Michael Hall"]
 __license__ = "BSD"
-__version__ = "2.1.9"
+__version__ = "2.1.10"
 __maintainer__ = "Daniel McDonald"
 __email__ = "mcdonadt at colorado.edu"
 



View it on GitLab: https://salsa.debian.org/med-team/python-biom-format/-/commit/aecf35b7ac1d9307ffd7d495a619675e824c8a00

-- 
View it on GitLab: https://salsa.debian.org/med-team/python-biom-format/-/commit/aecf35b7ac1d9307ffd7d495a619675e824c8a00
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/20201121/1b8a2152/attachment-0001.html>


More information about the debian-med-commit mailing list