Hello community,

here is the log from the commit of package python-texttable for 
openSUSE:Factory checked in at 2019-07-22 17:19:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-texttable (Old)
 and      /work/SRC/openSUSE:Factory/.python-texttable.new.4126 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-texttable"

Mon Jul 22 17:19:47 2019 rev:5 rq:717574 version:1.6.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-texttable/python-texttable.changes        
2019-02-19 11:58:03.381213168 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-texttable.new.4126/python-texttable.changes  
    2019-07-22 17:19:49.113903846 +0200
@@ -1,0 +2,6 @@
+Mon Jul 22 12:41:17 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 1.6.2:
+  * Fix auto-formatting NaN
+
+-------------------------------------------------------------------

Old:
----
  texttable-1.6.1.tar.gz

New:
----
  texttable-1.6.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-texttable.spec ++++++
--- /var/tmp/diff_new_pack.KoBtJc/_old  2019-07-22 17:19:49.801903659 +0200
+++ /var/tmp/diff_new_pack.KoBtJc/_new  2019-07-22 17:19:49.805903657 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-texttable
-Version:        1.6.1
+Version:        1.6.2
 Release:        0
 Summary:        Module for creating simple ASCII tables
 License:        MIT
@@ -49,7 +49,7 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-%python_expand py.test-%{$python_bin_suffix} tests.py
+%pytest tests.py
 
 %files %{python_files}
 %license LICENSE

++++++ texttable-1.6.1.tar.gz -> texttable-1.6.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/texttable-1.6.1/CHANGELOG.md 
new/texttable-1.6.2/CHANGELOG.md
--- old/texttable-1.6.1/CHANGELOG.md    2019-02-15 11:16:42.000000000 +0100
+++ new/texttable-1.6.2/CHANGELOG.md    2019-07-01 11:39:46.000000000 +0200
@@ -1,5 +1,8 @@
 # Version History
 
+v1.6.2 (2019-07-01)
+* Fix auto-formatting NaN (https://github.com/foutaise/texttable/pull/60)
+
 v1.6.1 (2019-02-15)
 * Include tests, license in source tarball 
(https://github.com/foutaise/texttable/issues/58)
 * Add changelog
@@ -34,5 +37,30 @@
 * Easier formatting, allow callable as a column datatype (PR 
https://github.com/foutaise/texttable/pull/27)
 
 v1.0.0 (2017-10-14)
-* fix bug in wide chars handling 
(https://github.com/foutaise/texttable/issues/9)
-* avoid use of sys.version to obtain Python version 
(https://github.com/foutaise/texttable/pull/24)
+* Fix bug in wide chars handling 
(https://github.com/foutaise/texttable/issues/9)
+* Avoid use of sys.version to obtain Python version 
(https://github.com/foutaise/texttable/pull/24)
+
+v0.9.1 (2017-06-27)
+* Add support for combining characters 
(https://github.com/foutaise/texttable/pull/19)
+
+v0.9.0 (2017-05-16)
+* Fix width of table exceeds max_width parameter 
(https://github.com/foutaise/texttable/pull/15)
+
+v0.8.8 (2017-03-30)
+* Add east asian support (https://github.com/foutaise/texttable/pull/12)
+* Relative col widths improvements + unit tests 
(https://github.com/foutaise/texttable/pull/13)
+
+v0.8.7 (2016-11-14)
+* Proper handling of unicode in headers 
(https://github.com/foutaise/texttable/issues/9)
+
+v0.8.6 (2016-10-21)
+* Preserve empty lines (https://github.com/foutaise/texttable/pull/8)
+
+v0.8.5 (2016-10-16)
+* Better handling of unicode encodings 
(https://github.com/foutaise/texttable/pull/6)
+
+v0.8.4 (2015-11-16)
+* Fix pypi url
+
+v0.8.3 (2015-11-16)
+* Update README.md
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/texttable-1.6.1/LICENSE new/texttable-1.6.2/LICENSE
--- old/texttable-1.6.1/LICENSE 2019-02-15 07:13:58.000000000 +0100
+++ new/texttable-1.6.2/LICENSE 2019-02-15 13:19:32.000000000 +0100
@@ -1,6 +1,6 @@
 The MIT License (MIT)
 
-Copyright (c) 2018 Gerome Fournier
+Copyright (c) 2019 Gerome Fournier
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/texttable-1.6.1/PKG-INFO new/texttable-1.6.2/PKG-INFO
--- old/texttable-1.6.1/PKG-INFO        2019-02-15 11:23:50.000000000 +0100
+++ new/texttable-1.6.2/PKG-INFO        2019-07-01 11:47:18.000000000 +0200
@@ -1,12 +1,12 @@
 Metadata-Version: 2.1
 Name: texttable
-Version: 1.6.1
+Version: 1.6.2
 Summary: module for creating simple ASCII tables
 Home-page: https://github.com/foutaise/texttable/
 Author: Gerome Fournier
 Author-email: [email protected]
 License: MIT
-Download-URL: https://github.com/foutaise/texttable/archive/v1.6.1.tar.gz
+Download-URL: https://github.com/foutaise/texttable/archive/v1.6.2.tar.gz
 Description: # texttable
         
         Python module for creating simple ASCII tables
@@ -227,10 +227,10 @@
             __author__ = 'Gerome Fournier <jef(at)foutaise.org>'
             __credits__ = 'Jeff Kowalczyk:\n    - textwrap improved import\n 
...at...
             __license__ = 'MIT'
-            __version__ = '1.6.1'
+            __version__ = '1.6.2'
         
         VERSION
-            1.6.1
+            1.6.2
         
         AUTHOR
             Gerome Fournier <jef(at)foutaise.org>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/texttable-1.6.1/README.md 
new/texttable-1.6.2/README.md
--- old/texttable-1.6.1/README.md       2019-02-15 07:13:58.000000000 +0100
+++ new/texttable-1.6.2/README.md       2019-07-01 11:40:25.000000000 +0200
@@ -218,10 +218,10 @@
     __author__ = 'Gerome Fournier <jef(at)foutaise.org>'
     __credits__ = 'Jeff Kowalczyk:\n    - textwrap improved import\n ...at...
     __license__ = 'MIT'
-    __version__ = '1.6.1'
+    __version__ = '1.6.2'
 
 VERSION
-    1.6.1
+    1.6.2
 
 AUTHOR
     Gerome Fournier <jef(at)foutaise.org>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/texttable-1.6.1/setup.py new/texttable-1.6.2/setup.py
--- old/texttable-1.6.1/setup.py        2019-02-15 07:13:58.000000000 +0100
+++ new/texttable-1.6.2/setup.py        2019-07-01 11:40:28.000000000 +0200
@@ -1,7 +1,7 @@
 #!/usr/bin/env python
 #
 # texttable - module for creating simple ASCII tables
-# Copyright (C) 2003-2018 Gerome Fournier <jef(at)foutaise.org>
+# Copyright (C) 2003-2019 Gerome Fournier <jef(at)foutaise.org>
 
 from setuptools import setup
 
@@ -12,11 +12,11 @@
 
 setup(
     name="texttable",
-    version="1.6.1",
+    version="1.6.2",
     author="Gerome Fournier",
     author_email="[email protected]",
     url="https://github.com/foutaise/texttable/";,
-    download_url="https://github.com/foutaise/texttable/archive/v1.6.1.tar.gz";,
+    download_url="https://github.com/foutaise/texttable/archive/v1.6.2.tar.gz";,
     license="MIT",
     py_modules=["texttable"],
     description=DESCRIPTION,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/texttable-1.6.1/tests.py new/texttable-1.6.2/tests.py
--- old/texttable-1.6.1/tests.py        2019-02-15 07:13:58.000000000 +0100
+++ new/texttable-1.6.2/tests.py        2019-06-24 14:19:02.000000000 +0200
@@ -288,3 +288,18 @@
           .add_rows([list('ghi')], False)
           .draw())
     assert s1 == s2
+
+def test_nan():
+    table = Texttable()
+    table.set_cols_align(["l"])
+    table.add_rows([
+        ["A NaN"],
+        ["NaN"],
+    ])
+    assert clean(table.draw()) == u_dedent('''\
+        +-------+
+        | A NaN |
+        +=======+
+        | NaN   |
+        +-------+
+    ''')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/texttable-1.6.1/texttable.egg-info/PKG-INFO 
new/texttable-1.6.2/texttable.egg-info/PKG-INFO
--- old/texttable-1.6.1/texttable.egg-info/PKG-INFO     2019-02-15 
11:23:50.000000000 +0100
+++ new/texttable-1.6.2/texttable.egg-info/PKG-INFO     2019-07-01 
11:47:18.000000000 +0200
@@ -1,12 +1,12 @@
 Metadata-Version: 2.1
 Name: texttable
-Version: 1.6.1
+Version: 1.6.2
 Summary: module for creating simple ASCII tables
 Home-page: https://github.com/foutaise/texttable/
 Author: Gerome Fournier
 Author-email: [email protected]
 License: MIT
-Download-URL: https://github.com/foutaise/texttable/archive/v1.6.1.tar.gz
+Download-URL: https://github.com/foutaise/texttable/archive/v1.6.2.tar.gz
 Description: # texttable
         
         Python module for creating simple ASCII tables
@@ -227,10 +227,10 @@
             __author__ = 'Gerome Fournier <jef(at)foutaise.org>'
             __credits__ = 'Jeff Kowalczyk:\n    - textwrap improved import\n 
...at...
             __license__ = 'MIT'
-            __version__ = '1.6.1'
+            __version__ = '1.6.2'
         
         VERSION
-            1.6.1
+            1.6.2
         
         AUTHOR
             Gerome Fournier <jef(at)foutaise.org>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/texttable-1.6.1/texttable.py 
new/texttable-1.6.2/texttable.py
--- old/texttable-1.6.1/texttable.py    2019-02-15 07:13:58.000000000 +0100
+++ new/texttable-1.6.2/texttable.py    2019-07-01 11:40:33.000000000 +0200
@@ -1,5 +1,5 @@
 # texttable - module for creating simple ASCII tables
-# Copyright (C) 2003-2018 Gerome Fournier <jef(at)foutaise.org>
+# Copyright (C) 2003-2019 Gerome Fournier <jef(at)foutaise.org>
 
 """module for creating simple ASCII tables
 
@@ -62,7 +62,7 @@
 
 __author__ = 'Gerome Fournier <jef(at)foutaise.org>'
 __license__ = 'MIT'
-__version__ = '1.6.1'
+__version__ = '1.6.2'
 __credits__ = """\
 Jeff Kowalczyk:
     - textwrap improved import
@@ -483,11 +483,12 @@
         f = cls._to_float(x)
         if abs(f) > 1e8:
             fn = cls._fmt_exp
+        elif f != f:  # NaN
+            fn = cls._fmt_text
+        elif f - round(f) == 0:
+            fn = cls._fmt_int
         else:
-            if f - round(f) == 0:
-                fn = cls._fmt_int
-            else:
-                fn = cls._fmt_float
+            fn = cls._fmt_float
         return fn(x, **kw)
 
     def _str(self, i, x):


Reply via email to