Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-click-spinner for
openSUSE:Factory checked in at 2021-05-18 18:27:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-click-spinner (Old)
and /work/SRC/openSUSE:Factory/.python-click-spinner.new.2988 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-click-spinner"
Tue May 18 18:27:10 2021 rev:3 rq:894006 version:0.1.10
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-click-spinner/python-click-spinner.changes
2019-08-05 10:41:43.995296408 +0200
+++
/work/SRC/openSUSE:Factory/.python-click-spinner.new.2988/python-click-spinner.changes
2021-05-18 18:27:38.878648915 +0200
@@ -1,0 +2,8 @@
+Tue May 18 07:54:22 UTC 2021 - [email protected]
+
+- version update to 0.1.10
+ * Support for configurable streams
+- deleted sources
+ - LICENSE (not needed)
+
+-------------------------------------------------------------------
Old:
----
LICENSE
click-spinner-0.1.8.tar.gz
New:
----
click-spinner-0.1.10.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-click-spinner.spec ++++++
--- /var/tmp/diff_new_pack.7QcLUp/_old 2021-05-18 18:27:39.278647181 +0200
+++ /var/tmp/diff_new_pack.7QcLUp/_new 2021-05-18 18:27:39.278647181 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-click-spinner
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,26 +12,26 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
+#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-click-spinner
# tests and LICENSE included in sdist 0.1.9 not yet released
-Version: 0.1.8
+Version: 0.1.10
Release: 0
License: MIT
Summary: Spinner for Click
-Url: https://github.com/click-contrib/click-spinner
+URL: https://github.com/click-contrib/click-spinner
Group: Development/Languages/Python
Source:
https://github.com/click-contrib/click-spinner/archive/v%{version}.tar.gz#/click-spinner-%{version}.tar.gz
-Source1:
https://raw.githubusercontent.com/click-contrib/click-spinner/master/LICENSE
-BuildRequires: python-rpm-macros
BuildRequires: %{python_module click}
+BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
-BuildRequires: %{python_module pytest-runner}
BuildRequires: fdupes
+BuildRequires: python-rpm-macros
Requires: python-click
BuildArch: noarch
@@ -42,7 +42,6 @@
%prep
%setup -q -n click-spinner-%{version}
-cp %{SOURCE1} .
%build
export LANG=en_US.UTF-8
@@ -55,7 +54,7 @@
%check
export LANG=en_US.UTF-8
-%python_exec setup.py pytest
+%pytest
%files %{python_files}
%license LICENSE
++++++ click-spinner-0.1.8.tar.gz -> click-spinner-0.1.10.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/click-spinner-0.1.8/.travis.yml
new/click-spinner-0.1.10/.travis.yml
--- old/click-spinner-0.1.8/.travis.yml 2018-05-09 21:11:35.000000000 +0200
+++ new/click-spinner-0.1.10/.travis.yml 2020-04-24 09:11:16.000000000
+0200
@@ -21,3 +21,4 @@
tags: true
distributions: sdist bdist_wheel
repo: click-contrib/click-spinner
+ python: '3.6'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/click-spinner-0.1.8/LICENSE
new/click-spinner-0.1.10/LICENSE
--- old/click-spinner-0.1.8/LICENSE 1970-01-01 01:00:00.000000000 +0100
+++ new/click-spinner-0.1.10/LICENSE 2020-04-24 09:11:16.000000000 +0200
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2016 Yoav Ram
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/click-spinner-0.1.8/MANIFEST.in
new/click-spinner-0.1.10/MANIFEST.in
--- old/click-spinner-0.1.8/MANIFEST.in 2018-05-09 21:11:35.000000000 +0200
+++ new/click-spinner-0.1.10/MANIFEST.in 2020-04-24 09:11:16.000000000
+0200
@@ -1,3 +1,4 @@
include versioneer.py
include click_spinner/_version.py
include README.md
+include tests/test_spinner.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/click-spinner-0.1.8/click_spinner/__init__.py
new/click-spinner-0.1.10/click_spinner/__init__.py
--- old/click-spinner-0.1.8/click_spinner/__init__.py 2018-05-09
21:11:35.000000000 +0200
+++ new/click-spinner-0.1.10/click_spinner/__init__.py 2020-04-24
09:11:16.000000000 +0200
@@ -7,17 +7,18 @@
class Spinner(object):
spinner_cycle = itertools.cycle(['-', '/', '|', '\\'])
- def __init__(self, beep=False, disable=False, force=False):
+ def __init__(self, beep=False, disable=False, force=False,
stream=sys.stdout):
self.disable = disable
self.beep = beep
self.force = force
+ self.stream = stream
self.stop_running = None
self.spin_thread = None
def start(self):
if self.disable:
return
- if sys.stdout.isatty() or self.force:
+ if self.stream.isatty() or self.force:
self.stop_running = threading.Event()
self.spin_thread = threading.Thread(target=self.init_spin)
self.spin_thread.start()
@@ -29,11 +30,11 @@
def init_spin(self):
while not self.stop_running.is_set():
- sys.stdout.write(next(self.spinner_cycle))
- sys.stdout.flush()
+ self.stream.write(next(self.spinner_cycle))
+ self.stream.flush()
time.sleep(0.25)
- sys.stdout.write('\b')
- sys.stdout.flush()
+ self.stream.write('\b')
+ self.stream.flush()
def __enter__(self):
self.start()
@@ -44,12 +45,12 @@
return False
self.stop()
if self.beep:
- sys.stdout.write('\7')
- sys.stdout.flush()
+ self.stream.write('\7')
+ self.stream.flush()
return False
-def spinner(beep=False, disable=False, force=False):
+def spinner(beep=False, disable=False, force=False, stream=sys.stdout):
"""This function creates a context manager that is used to display a
spinner on stdout as long as the context has not exited.
@@ -73,7 +74,7 @@
do_something_else()
"""
- return Spinner(beep, disable, force)
+ return Spinner(beep, disable, force, stream)
from ._version import get_versions
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/click-spinner-0.1.8/click_spinner/_version.py
new/click-spinner-0.1.10/click_spinner/_version.py
--- old/click-spinner-0.1.8/click_spinner/_version.py 2018-05-09
21:11:35.000000000 +0200
+++ new/click-spinner-0.1.10/click_spinner/_version.py 2020-04-24
09:11:16.000000000 +0200
@@ -23,8 +23,8 @@
# setup.py/versioneer.py will grep for the variable names, so they must
# each be defined on a line of their own. _version.py will just call
# get_keywords().
- git_refnames = " (tag: v0.1.8)"
- git_full = "28bb4816df7d7eb2897a9fb9347ff2e28519178e"
+ git_refnames = " (tag: v0.1.10)"
+ git_full = "7cadb31e3e257c64a47a67255547f0a746e1a465"
keywords = {"refnames": git_refnames, "full": git_full}
return keywords
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/click-spinner-0.1.8/setup.py
new/click-spinner-0.1.10/setup.py
--- old/click-spinner-0.1.8/setup.py 2018-05-09 21:11:35.000000000 +0200
+++ new/click-spinner-0.1.10/setup.py 2020-04-24 09:11:16.000000000 +0200
@@ -1,8 +1,9 @@
+from io import open
from setuptools import setup
import versioneer
-with open('README.md') as f:
+with open('README.md', encoding="utf8") as f:
readme = f.read()
setup(
@@ -10,6 +11,7 @@
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
long_description=readme,
+ long_description_content_type="text/markdown",
packages=['click_spinner'],
package_data={'click-spinner': ['README.md']},
url='https://github.com/click-contrib/click-spinner',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/click-spinner-0.1.8/tests/test_spinner.py
new/click-spinner-0.1.10/tests/test_spinner.py
--- old/click-spinner-0.1.8/tests/test_spinner.py 2018-05-09
21:11:35.000000000 +0200
+++ new/click-spinner-0.1.10/tests/test_spinner.py 2020-04-24
09:11:16.000000000 +0200
@@ -63,13 +63,10 @@
@click.command()
def cli():
stdout_io = StringIO()
- saved_stdout = sys.stdout
- sys.stdout = stdout_io # redirect stdout to a string buffer
- spinner = click_spinner.Spinner(force=True)
+ spinner = click_spinner.Spinner(force=True, stream=stdout_io)
spinner.start()
time.sleep(1) # allow time for a few spins
spinner.stop()
- sys.stdout = saved_stdout
stdout_io.flush()
stdout_str = stdout_io.getvalue()
assert len(stdout_str) > 0