Hello community,

here is the log from the commit of package python-subprocrunner for 
openSUSE:Factory checked in at 2020-03-17 13:12:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-subprocrunner (Old)
 and      /work/SRC/openSUSE:Factory/.python-subprocrunner.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-subprocrunner"

Tue Mar 17 13:12:20 2020 rev:3 rq:785907 version:1.1.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-subprocrunner/python-subprocrunner.changes    
    2020-02-18 10:37:38.536606241 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-subprocrunner.new.3160/python-subprocrunner.changes
      2020-03-17 13:12:24.865903506 +0100
@@ -1,0 +2,6 @@
+Tue Mar 17 11:27:31 UTC 2020 - [email protected]
+
+- version update to 1.1.0
+  * no upstream changelog this time
+
+-------------------------------------------------------------------

Old:
----
  subprocrunner-1.0.0.tar.gz

New:
----
  subprocrunner-1.1.0.tar.gz

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

Other differences:
------------------
++++++ python-subprocrunner.spec ++++++
--- /var/tmp/diff_new_pack.e70SNP/_old  2020-03-17 13:12:26.621904855 +0100
+++ /var/tmp/diff_new_pack.e70SNP/_new  2020-03-17 13:12:26.625904857 +0100
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:           python-subprocrunner
-Version:        1.0.0
+Version:        1.1.0
 Release:        0
 Summary:        A Python wrapper library for subprocess module
 License:        MIT

++++++ subprocrunner-1.0.0.tar.gz -> subprocrunner-1.1.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/subprocrunner-1.0.0/PKG-INFO 
new/subprocrunner-1.1.0/PKG-INFO
--- old/subprocrunner-1.0.0/PKG-INFO    2020-02-11 08:49:07.976968500 +0100
+++ new/subprocrunner-1.1.0/PKG-INFO    2020-02-15 15:40:19.317512000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: subprocrunner
-Version: 1.0.0
+Version: 1.1.0
 Summary: A Python wrapper library for subprocess module.
 Home-page: https://github.com/thombashi/subprocrunner
 Author: Tsuyoshi Hombashi
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/subprocrunner-1.0.0/subprocrunner/__version__.py 
new/subprocrunner-1.1.0/subprocrunner/__version__.py
--- old/subprocrunner-1.0.0/subprocrunner/__version__.py        2020-02-11 
08:08:17.000000000 +0100
+++ new/subprocrunner-1.1.0/subprocrunner/__version__.py        2020-02-15 
03:20:37.000000000 +0100
@@ -1,6 +1,6 @@
 __author__ = "Tsuyoshi Hombashi"
 __copyright__ = "Copyright 2016, {}".format(__author__)
 __license__ = "MIT License"
-__version__ = "1.0.0"
+__version__ = "1.1.0"
 __maintainer__ = __author__
 __email__ = "[email protected]"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/subprocrunner-1.0.0/subprocrunner/_logger/_logger.py 
new/subprocrunner-1.1.0/subprocrunner/_logger/_logger.py
--- old/subprocrunner-1.0.0/subprocrunner/_logger/_logger.py    2020-02-11 
06:29:36.000000000 +0100
+++ new/subprocrunner-1.1.0/subprocrunner/_logger/_logger.py    2020-02-15 
02:36:15.000000000 +0100
@@ -30,8 +30,11 @@
         log_level = "DEBUG"
 
     method_table = {
+        "QUIET": lambda _x: None,
+        "TRACE": logger.trace,
         "DEBUG": logger.debug,
         "INFO": logger.info,
+        "SUCCESS": logger.success,
         "WARNING": logger.warning,
         "ERROR": logger.error,
         "CRITICAL": logger.critical,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/subprocrunner-1.0.0/subprocrunner/_logger/_null_logger.py 
new/subprocrunner-1.1.0/subprocrunner/_logger/_null_logger.py
--- old/subprocrunner-1.0.0/subprocrunner/_logger/_null_logger.py       
2020-02-11 06:20:02.000000000 +0100
+++ new/subprocrunner-1.1.0/subprocrunner/_logger/_null_logger.py       
2020-02-14 12:27:31.000000000 +0100
@@ -1,38 +1,41 @@
 class NullLogger:
     level_name = None
 
-    def catch_exceptions(self, *args, **kwargs):  # pragma: no cover
+    def remove(self, handler_id=None):  # pragma: no cover
         pass
 
-    def critical(self, *args, **kwargs):  # pragma: no cover
+    def add(self, **kwargs):  # pragma: no cover
         pass
 
-    def debug(self, *args, **kwargs):  # pragma: no cover
+    def disable(self, name):  # pragma: no cover
         pass
 
-    def disable(self):  # pragma: no cover
+    def enable(self, name):  # pragma: no cover
         pass
 
-    def enable(self):  # pragma: no cover
+    def critical(self, __message, *args, **kwargs):  # pragma: no cover
         pass
 
-    def error(self, *args, **kwargs):  # pragma: no cover
+    def debug(self, __message, *args, **kwargs):  # pragma: no cover
         pass
 
-    def exception(self, *args, **kwargs):  # pragma: no cover
+    def error(self, __message, *args, **kwargs):  # pragma: no cover
         pass
 
-    def info(self, *args, **kwargs):  # pragma: no cover
+    def exception(self, __message, *args, **kwargs):  # pragma: no cover
         pass
 
-    def log(self, level, *args, **kwargs):  # pragma: no cover
+    def info(self, __message, *args, **kwargs):  # pragma: no cover
         pass
 
-    def notice(self, *args, **kwargs):  # pragma: no cover
+    def log(self, __level, __message, *args, **kwargs):  # pragma: no cover
         pass
 
-    def warn(self, *args, **kwargs):  # pragma: no cover
+    def success(self, __message, *args, **kwargs):  # pragma: no cover
         pass
 
-    def warning(self, *args, **kwargs):  # pragma: no cover
+    def trace(self, __message, *args, **kwargs):  # pragma: no cover
+        pass
+
+    def warning(self, __message, *args, **kwargs):  # pragma: no cover
         pass
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/subprocrunner-1.0.0/subprocrunner/_subprocess_runner.py 
new/subprocrunner-1.1.0/subprocrunner/_subprocess_runner.py
--- old/subprocrunner-1.0.0/subprocrunner/_subprocess_runner.py 2020-02-11 
07:49:50.000000000 +0100
+++ new/subprocrunner-1.1.0/subprocrunner/_subprocess_runner.py 2020-02-15 
01:20:41.000000000 +0100
@@ -126,7 +126,7 @@
         raise NotImplementedError()
 
     @error_log_level.setter
-    def error_log_level(self, log_level):
+    def error_log_level(self, log_level: Optional[str]):
         self.__error_logging_method = get_logging_method(log_level)
 
     def run(self, **kwargs) -> Optional[int]:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/subprocrunner-1.0.0/subprocrunner.egg-info/PKG-INFO 
new/subprocrunner-1.1.0/subprocrunner.egg-info/PKG-INFO
--- old/subprocrunner-1.0.0/subprocrunner.egg-info/PKG-INFO     2020-02-11 
08:49:07.000000000 +0100
+++ new/subprocrunner-1.1.0/subprocrunner.egg-info/PKG-INFO     2020-02-15 
15:40:19.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: subprocrunner
-Version: 1.0.0
+Version: 1.1.0
 Summary: A Python wrapper library for subprocess module.
 Home-page: https://github.com/thombashi/subprocrunner
 Author: Tsuyoshi Hombashi
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/subprocrunner-1.0.0/test/test_logger.py 
new/subprocrunner-1.1.0/test/test_logger.py
--- old/subprocrunner-1.0.0/test/test_logger.py 2020-02-11 06:20:02.000000000 
+0100
+++ new/subprocrunner-1.1.0/test/test_logger.py 2020-02-14 12:27:31.000000000 
+0100
@@ -6,9 +6,17 @@
 import pytest
 
 from subprocrunner import set_logger
+from subprocrunner._logger._null_logger import NullLogger
 
 
 class Test_set_logger:
     @pytest.mark.parametrize(["value"], [[True], [False]])
     def test_smoke(self, value):
         set_logger(value)
+
+
+class Test_NullLogger:
+    @pytest.mark.parametrize(["value"], [[True], [False]])
+    def test_smoke(self, value, monkeypatch):
+        monkeypatch.setattr("subprocrunner._logger._logger.logger", 
NullLogger())
+        set_logger(value)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/subprocrunner-1.0.0/test/test_subproc_runner.py 
new/subprocrunner-1.1.0/test/test_subproc_runner.py
--- old/subprocrunner-1.0.0/test/test_subproc_runner.py 2020-02-11 
06:20:14.000000000 +0100
+++ new/subprocrunner-1.1.0/test/test_subproc_runner.py 2020-02-14 
12:29:55.000000000 +0100
@@ -15,6 +15,7 @@
 from typepy import is_not_null_string, is_null_string
 
 from subprocrunner import SubprocessRunner
+from subprocrunner._logger._null_logger import NullLogger
 
 
 os_type = platform.system()
@@ -41,7 +42,7 @@
             [list_command + " __not_exist_dir__", True, [0]],
         ],
     )
-    def test_normal(self, command, dry_run, expected):
+    def test_normal(self, monkeypatch, command, dry_run, expected):
         r = SubprocessRunner(command, dry_run=dry_run)
         r.run()
 
@@ -50,7 +51,10 @@
 
         assert r.returncode in expected
 
-    @pytest.mark.skipif("platform.system() == 'Windows'")
+        monkeypatch.setattr("subprocrunner._logger._logger.logger", 
NullLogger())
+        r.run()
+
+    @pytest.mark.skipif(platform.system() == "Windows", reason="platform 
dependent tests")
     @pytest.mark.parametrize(
         ["command", "expected"], [[list_command + " -l", 0], [[list_command, 
"-l"], 0]]
     )
@@ -70,7 +74,7 @@
         assert runner.stdout.strip() == expected
         assert is_null_string(runner.stderr)
 
-    @pytest.mark.skipif("platform.system() == 'Windows'")
+    @pytest.mark.skipif(platform.system() == "Windows", reason="platform 
dependent tests")
     @pytest.mark.parametrize(
         ["command", "ignore_stderr_regexp", "out_regexp", "expected"],
         [
@@ -108,7 +112,7 @@
         actual = out_regexp.search(err) is not None
         assert actual == expected
 
-    @pytest.mark.skipif("platform.system() == 'Windows'")
+    @pytest.mark.skipif(platform.system() == "Windows", reason="platform 
dependent tests")
     @pytest.mark.parametrize(
         ["command", "ignore_stderr_regexp", "expected"],
         [
@@ -147,7 +151,7 @@
         assert is_null_string(ret_stderr)
         assert proc.returncode == expected
 
-    @pytest.mark.skipif("platform.system() == 'Windows'")
+    @pytest.mark.skipif(platform.system() == "Windows", reason="platform 
dependent tests")
     @pytest.mark.parametrize(["command", "pipe_input", "expected"], [["grep 
a", b"aaa", 0]])
     def test_normal_stdin(self, command, pipe_input, expected):
         proc = SubprocessRunner(command).popen(PIPE)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/subprocrunner-1.0.0/test/test_which.py 
new/subprocrunner-1.1.0/test/test_which.py
--- old/subprocrunner-1.0.0/test/test_which.py  2020-02-11 06:20:02.000000000 
+0100
+++ new/subprocrunner-1.1.0/test/test_which.py  2020-02-12 07:54:18.000000000 
+0100
@@ -3,7 +3,7 @@
 """
 
 
-import platform  # noqa: W0611
+import platform
 import re
 
 import pytest
@@ -28,7 +28,7 @@
 
 
 class Test_Which_repr:
-    @pytest.mark.skipif("platform.system() == 'Windows'")
+    @pytest.mark.skipif(platform.system() == "Windows", reason="platform 
dependent tests")
     @pytest.mark.parametrize(
         ["value", "expected_regexp"],
         [
@@ -44,14 +44,14 @@
 
 
 class Test_Which_is_exist:
-    @pytest.mark.skipif("platform.system() == 'Windows'")
+    @pytest.mark.skipif(platform.system() == "Windows", reason="platform 
dependent tests")
     @pytest.mark.parametrize(
         ["value", "expected"], [["ls", True], ["/bin/ls", True], 
["__not_exist_command__", False]]
     )
     def test_normal_linux(self, value, expected):
         assert Which(value).is_exist() == expected
 
-    @pytest.mark.skipif("platform.system() != 'Windows'")
+    @pytest.mark.skipif(platform.system() != "Windows", reason="platform 
dependent tests")
     @pytest.mark.parametrize(
         ["value", "expected"], [["ping", True], ["__not_exist_command__", 
False]]
     )
@@ -61,12 +61,12 @@
 
 
 class Test_Which_verify:
-    @pytest.mark.skipif("platform.system() == 'Windows'")
+    @pytest.mark.skipif(platform.system() == "Windows", reason="platform 
dependent tests")
     @pytest.mark.parametrize(["value"], [["ls"]])
     def test_normal_linux(self, value):
         Which(value).verify()
 
-    @pytest.mark.skipif("platform.system() != 'Windows'")
+    @pytest.mark.skipif(platform.system() != "Windows", reason="platform 
dependent tests")
     @pytest.mark.parametrize(["value"], [["ping"]])
     def test_normal_windows(self, value):
         Which(value).verify()
@@ -80,12 +80,12 @@
 
 
 class Test_Which_abspath:
-    @pytest.mark.skipif("platform.system() == 'Windows'")
+    @pytest.mark.skipif(platform.system() == "Windows", reason="platform 
dependent tests")
     @pytest.mark.parametrize(["value"], [["ls"]])
     def test_normal_linux(self, value):
         assert is_not_null_string(Which(value).abspath())
 
-    @pytest.mark.skipif("platform.system() != 'Windows'")
+    @pytest.mark.skipif(platform.system() != "Windows", reason="platform 
dependent tests")
     @pytest.mark.parametrize(["value"], [["ping"]])
     def test_normal_windows(self, value):
         assert is_not_null_string(Which(value).abspath())
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/subprocrunner-1.0.0/tox.ini 
new/subprocrunner-1.1.0/tox.ini
--- old/subprocrunner-1.0.0/tox.ini     2020-02-11 08:03:08.000000000 +0100
+++ new/subprocrunner-1.1.0/tox.ini     2020-02-14 13:40:57.000000000 +0100
@@ -13,7 +13,7 @@
 deps =
     .[test]
 commands =
-    pytest
+    pytest {posargs}
 
 [testenv:build]
 basepython = python3.8
@@ -38,7 +38,7 @@
     coverage[toml]
     pytest-cov
 commands =
-    pytest -vv --cov
+    pytest --cov {posargs:-vv}
 
 [testenv:fmt]
 basepython = python3.8
@@ -61,13 +61,13 @@
 commands =
     python setup.py check
     mypy subprocrunner --ignore-missing-imports --show-error-context 
--show-error-codes --python-version 3.6
-    pytype --disable import-error subprocrunner
-       codespell subprocrunner examples test README.rst -q 2 --check-filenames
+    pytype --keep-going --jobs 2 --disable import-error subprocrunner
+    codespell subprocrunner examples test README.rst -q 2 --check-filenames
     pylama
 
 [testenv:release]
-basepython = python3.7
+basepython = python3.8
 deps =
     releasecmd>=0.2.0
 commands =
-    python setup.py release --sign
+    python setup.py release --sign {posargs}


Reply via email to