Hello community,

here is the log from the commit of package python-yaspin for openSUSE:Factory 
checked in at 2020-02-06 13:18:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-yaspin (Old)
 and      /work/SRC/openSUSE:Factory/.python-yaspin.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-yaspin"

Thu Feb  6 13:18:27 2020 rev:5 rq:769610 version:0.16.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-yaspin/python-yaspin.changes      
2019-08-14 11:36:55.340701694 +0200
+++ /work/SRC/openSUSE:Factory/.python-yaspin.new.26092/python-yaspin.changes   
2020-02-06 13:18:28.480650155 +0100
@@ -1,0 +2,7 @@
+Mon Feb  3 13:54:16 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- update to 0.16.0
+  * Allow use inside zip bundled package
+  * Code improvements
+
+-------------------------------------------------------------------

Old:
----
  yaspin-0.15.0.tar.gz

New:
----
  yaspin-0.16.0.tar.gz

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

Other differences:
------------------
++++++ python-yaspin.spec ++++++
--- /var/tmp/diff_new_pack.p6Xh3C/_old  2020-02-06 13:18:29.120650468 +0100
+++ /var/tmp/diff_new_pack.p6Xh3C/_new  2020-02-06 13:18:29.128650472 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-yaspin
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-yaspin
-Version:        0.15.0
+Version:        0.16.0
 Release:        0
 Summary:        Yet Another Terminal Spinner
 License:        MIT

++++++ yaspin-0.15.0.tar.gz -> yaspin-0.16.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yaspin-0.15.0/HISTORY.rst 
new/yaspin-0.16.0/HISTORY.rst
--- old/yaspin-0.15.0/HISTORY.rst       2019-08-09 15:09:48.000000000 +0200
+++ new/yaspin-0.16.0/HISTORY.rst       2020-01-11 21:52:31.000000000 +0100
@@ -1,6 +1,13 @@
 Release History
 ===============
 
+0.16.0 / 2020-01-11
+-------------------
+
+* Allow use inside zip bundled package
+* Code improvements
+
+
 0.15.0 / 2019-08-09
 -------------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yaspin-0.15.0/PKG-INFO new/yaspin-0.16.0/PKG-INFO
--- old/yaspin-0.15.0/PKG-INFO  2019-08-09 15:27:52.000000000 +0200
+++ new/yaspin-0.16.0/PKG-INFO  2020-01-11 21:59:09.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: yaspin
-Version: 0.15.0
+Version: 0.16.0
 Summary: Yet Another Terminal Spinner
 Home-page: https://github.com/pavdmyt/yaspin
 Author: Pavlo Dmytrenko
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yaspin-0.15.0/setup.cfg new/yaspin-0.16.0/setup.cfg
--- old/yaspin-0.15.0/setup.cfg 2019-08-09 15:27:52.000000000 +0200
+++ new/yaspin-0.16.0/setup.cfg 2020-01-11 21:59:09.000000000 +0100
@@ -1,5 +1,5 @@
 [bumpversion]
-current_version = 0.15.0
+current_version = 0.16.0
 
 [metadata]
 description-file = README.rst
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yaspin-0.15.0/tests/test_spinners.py 
new/yaspin-0.16.0/tests/test_spinners.py
--- old/yaspin-0.15.0/tests/test_spinners.py    2019-04-27 22:31:42.000000000 
+0200
+++ new/yaspin-0.16.0/tests/test_spinners.py    2020-01-11 20:51:20.000000000 
+0100
@@ -9,18 +9,16 @@
 
 from __future__ import absolute_import
 
-import codecs
 import json
 from collections import OrderedDict
 
 import pytest
 
 from yaspin.compat import iteritems
-from yaspin.spinners import SPINNERS_PATH, Spinners
+from yaspin.spinners import SPINNERS_DATA, Spinners
 
 
-with codecs.open(SPINNERS_PATH, encoding="utf-8") as f:
-    spinners_dict = OrderedDict(json.load(f))
+spinners_dict = OrderedDict(json.loads(SPINNERS_DATA))
 
 
 test_cases = [
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yaspin-0.15.0/yaspin/__version__.py 
new/yaspin-0.16.0/yaspin/__version__.py
--- old/yaspin-0.15.0/yaspin/__version__.py     2019-08-09 15:09:48.000000000 
+0200
+++ new/yaspin-0.16.0/yaspin/__version__.py     2020-01-11 21:52:31.000000000 
+0100
@@ -1 +1 @@
-__version__ = "0.15.0"
+__version__ = "0.16.0"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yaspin-0.15.0/yaspin/core.py 
new/yaspin-0.16.0/yaspin/core.py
--- old/yaspin-0.15.0/yaspin/core.py    2019-05-12 15:28:48.000000000 +0200
+++ new/yaspin-0.16.0/yaspin/core.py    2020-01-11 21:31:35.000000000 +0100
@@ -452,9 +452,6 @@
 
     @staticmethod
     def _set_spinner(spinner):
-        if not spinner:
-            sp = default_spinner
-
         if hasattr(spinner, "frames") and hasattr(spinner, "interval"):
             if not spinner.frames or not spinner.interval:
                 sp = default_spinner
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yaspin-0.15.0/yaspin/spinners.py 
new/yaspin-0.16.0/yaspin/spinners.py
--- old/yaspin-0.15.0/yaspin/spinners.py        2019-04-27 22:31:42.000000000 
+0200
+++ new/yaspin-0.16.0/yaspin/spinners.py        2020-01-11 21:31:35.000000000 
+0100
@@ -7,8 +7,7 @@
 A collection of cli spinners.
 """
 
-import codecs
-import os
+import pkgutil
 from collections import namedtuple
 
 try:
@@ -17,13 +16,11 @@
     import json
 
 
-THIS_DIR = os.path.dirname(os.path.realpath(__file__))
-SPINNERS_PATH = os.path.join(THIS_DIR, "data/spinners.json")
+SPINNERS_DATA = pkgutil.get_data(__name__, 
"data/spinners.json").decode("utf-8")
 
 
 def _hook(dct):
     return namedtuple("Spinner", dct.keys())(*dct.values())
 
 
-with codecs.open(SPINNERS_PATH, encoding="utf-8") as f:
-    Spinners = json.load(f, object_hook=_hook)
+Spinners = json.loads(SPINNERS_DATA, object_hook=_hook)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yaspin-0.15.0/yaspin.egg-info/PKG-INFO 
new/yaspin-0.16.0/yaspin.egg-info/PKG-INFO
--- old/yaspin-0.15.0/yaspin.egg-info/PKG-INFO  2019-08-09 15:27:52.000000000 
+0200
+++ new/yaspin-0.16.0/yaspin.egg-info/PKG-INFO  2020-01-11 21:59:09.000000000 
+0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: yaspin
-Version: 0.15.0
+Version: 0.16.0
 Summary: Yet Another Terminal Spinner
 Home-page: https://github.com/pavdmyt/yaspin
 Author: Pavlo Dmytrenko


Reply via email to