Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-subprocrunner for 
openSUSE:Factory checked in at 2021-05-17 18:45:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-subprocrunner (Old)
 and      /work/SRC/openSUSE:Factory/.python-subprocrunner.new.2988 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-subprocrunner"

Mon May 17 18:45:01 2021 rev:6 rq:893494 version:1.2.2

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-subprocrunner/python-subprocrunner.changes    
    2020-04-07 10:28:42.562322011 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-subprocrunner.new.2988/python-subprocrunner.changes
      2021-05-17 18:45:15.356638565 +0200
@@ -1,0 +2,13 @@
+Sun May 16 18:30:07 UTC 2021 - Matej Cepl <[email protected]>
+
+- Don't require pytest-runner, when we don't need it.
+
+-------------------------------------------------------------------
+Thu May 13 16:40:31 UTC 2021 - Martin Hauke <[email protected]>
+
+- Update to version 1.2.2
+  * Add support for Python 3.10
+  * Modify type annotations
+  * Add subprocrunner.typing
+
+-------------------------------------------------------------------

Old:
----
  subprocrunner-1.2.1.tar.gz

New:
----
  subprocrunner-1.2.2.tar.gz

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

Other differences:
------------------
++++++ python-subprocrunner.spec ++++++
--- /var/tmp/diff_new_pack.cvKalP/_old  2021-05-17 18:45:16.188635035 +0200
+++ /var/tmp/diff_new_pack.cvKalP/_new  2021-05-17 18:45:16.192635018 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-subprocrunner
 #
-# Copyright (c) 2020 SUSE LLC
+# 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
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:           python-subprocrunner
-Version:        1.2.1
+Version:        1.2.2
 Release:        0
 Summary:        A Python wrapper library for subprocess module
 License:        MIT
@@ -29,18 +29,18 @@
 BuildRequires:  %{python_module setuptools >= 38.3.0}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires:       python-loguru >= 0.4.1
+Requires:       python-mbstrdecoder >= 1.0.0
+Requires:       python-six
+Requires:       python-typepy
+BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module loguru >= 0.4.1}
 BuildRequires:  %{python_module mbstrdecoder >= 1.0.0}
-BuildRequires:  %{python_module pytest-runner}
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module six}
 BuildRequires:  %{python_module typepy}
 # /SECTION
-Requires:       python-loguru >= 0.4.1
-Requires:       python-mbstrdecoder >= 1.0.0
-Requires:       python-six
-Requires:       python-typepy
-BuildArch:      noarch
 %python_subpackages
 
 %description

++++++ subprocrunner-1.2.1.tar.gz -> subprocrunner-1.2.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/subprocrunner-1.2.1/PKG-INFO 
new/subprocrunner-1.2.2/PKG-INFO
--- old/subprocrunner-1.2.1/PKG-INFO    2020-04-04 11:26:26.678303700 +0200
+++ new/subprocrunner-1.2.2/PKG-INFO    2021-05-05 09:10:08.561095700 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: subprocrunner
-Version: 1.2.1
+Version: 1.2.2
 Summary: A Python wrapper library for subprocess module.
 Home-page: https://github.com/thombashi/subprocrunner
 Author: Tsuyoshi Hombashi
@@ -147,21 +147,14 @@
         
         Dependencies
         ============
-        Python 3.5+
-        
-        - `mbstrdecoder <https://github.com/thombashi/mbstrdecoder>`__
+        - Python 3.5+
+        - `Python package dependencies (automatically installed) 
<https://github.com/thombashi/subprocrunner/network/dependencies>`__
         
         Optional dependencies
         ----------------------------------
         - `loguru <https://github.com/Delgan/loguru>`__
             - Used for logging if the package installed
         
-        Test dependencies
-        -----------------
-        - `pytest <https://docs.pytest.org/en/latest/>`__
-        - `tox <https://testrun.org/tox/latest/>`__
-        - `typepy <https://github.com/thombashi/typepy>`__
-        
 Keywords: library,subprocess
 Platform: UNKNOWN
 Classifier: Development Status :: 5 - Production/Stable
@@ -178,6 +171,7 @@
 Classifier: Programming Language :: Python :: 3.7
 Classifier: Programming Language :: Python :: 3.8
 Classifier: Programming Language :: Python :: 3.9
+Classifier: Programming Language :: Python :: 3.10
 Classifier: Programming Language :: Python :: 3 :: Only
 Classifier: Programming Language :: Python :: Implementation :: CPython
 Classifier: Programming Language :: Python :: Implementation :: PyPy
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/subprocrunner-1.2.1/README.rst 
new/subprocrunner-1.2.2/README.rst
--- old/subprocrunner-1.2.1/README.rst  2020-02-11 07:56:06.000000000 +0100
+++ new/subprocrunner-1.2.2/README.rst  2021-03-20 05:14:16.000000000 +0100
@@ -137,17 +137,10 @@
 
 Dependencies
 ============
-Python 3.5+
-
-- `mbstrdecoder <https://github.com/thombashi/mbstrdecoder>`__
+- Python 3.5+
+- `Python package dependencies (automatically installed) 
<https://github.com/thombashi/subprocrunner/network/dependencies>`__
 
 Optional dependencies
 ----------------------------------
 - `loguru <https://github.com/Delgan/loguru>`__
     - Used for logging if the package installed
-
-Test dependencies
------------------
-- `pytest <https://docs.pytest.org/en/latest/>`__
-- `tox <https://testrun.org/tox/latest/>`__
-- `typepy <https://github.com/thombashi/typepy>`__
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/subprocrunner-1.2.1/pyproject.toml 
new/subprocrunner-1.2.2/pyproject.toml
--- old/subprocrunner-1.2.1/pyproject.toml      2020-02-11 06:26:11.000000000 
+0100
+++ new/subprocrunner-1.2.2/pyproject.toml      2021-03-21 07:59:14.000000000 
+0100
@@ -1,3 +1,6 @@
+[build-system]
+requires = ["setuptools", "wheel"]
+
 [tool.black]
 line-length = 100
 exclude = '''
@@ -17,7 +20,6 @@
 '''
 
 [tool.isort]
-dont_skip = '*/**/__init__.py'
 known_third_party = [
     'pytest',
     'readmemaker',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/subprocrunner-1.2.1/setup.py 
new/subprocrunner-1.2.2/setup.py
--- old/subprocrunner-1.2.1/setup.py    2020-04-04 11:18:47.000000000 +0200
+++ new/subprocrunner-1.2.2/setup.py    2021-05-05 08:26:07.000000000 +0200
@@ -38,7 +38,6 @@
 with open(os.path.join(REQUIREMENT_DIR, "test_requirements.txt")) as f:
     tests_requires = [line.strip() for line in f if line.strip()]
 
-SETUPTOOLS_REQUIRES = ["setuptools>=38.3.0"]
 LOGGING_REQUIRES = ["loguru>=0.4.1,<1"]
 
 setuptools.setup(
@@ -57,7 +56,7 @@
     package_data={MODULE_NAME: ["py.typed"]},
     project_urls={"Source": REPOSITORY_URL, "Tracker": 
"{:s}/issues".format(REPOSITORY_URL)},
     python_requires=">=3.5",
-    install_requires=SETUPTOOLS_REQUIRES + install_requires,
+    install_requires=install_requires,
     extras_require={"logging": LOGGING_REQUIRES, "test": tests_requires + 
LOGGING_REQUIRES},
     classifiers=[
         "Development Status :: 5 - Production/Stable",
@@ -74,6 +73,7 @@
         "Programming Language :: Python :: 3.7",
         "Programming Language :: Python :: 3.8",
         "Programming Language :: Python :: 3.9",
+        "Programming Language :: Python :: 3.10",
         "Programming Language :: Python :: 3 :: Only",
         "Programming Language :: Python :: Implementation :: CPython",
         "Programming Language :: Python :: Implementation :: PyPy",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/subprocrunner-1.2.1/subprocrunner/__version__.py 
new/subprocrunner-1.2.2/subprocrunner/__version__.py
--- old/subprocrunner-1.2.1/subprocrunner/__version__.py        2020-04-04 
11:24:20.000000000 +0200
+++ new/subprocrunner-1.2.2/subprocrunner/__version__.py        2021-05-05 
08:33:26.000000000 +0200
@@ -1,6 +1,6 @@
 __author__ = "Tsuyoshi Hombashi"
 __copyright__ = "Copyright 2016, {}".format(__author__)
 __license__ = "MIT License"
-__version__ = "1.2.1"
+__version__ = "1.2.2"
 __maintainer__ = __author__
 __email__ = "[email protected]"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/subprocrunner-1.2.1/subprocrunner/_subprocess_runner.py 
new/subprocrunner-1.2.2/subprocrunner/_subprocess_runner.py
--- old/subprocrunner-1.2.1/subprocrunner/_subprocess_runner.py 2020-04-04 
11:01:14.000000000 +0200
+++ new/subprocrunner-1.2.2/subprocrunner/_subprocess_runner.py 2021-05-05 
07:59:09.000000000 +0200
@@ -16,9 +16,7 @@
 from ._logger import DEFAULT_ERROR_LOG_LEVEL, get_logging_method
 from ._which import Which
 from .error import CalledProcessError, CommandError
-
-
-Command = Union[str, Sequence[str]]
+from .typing import Command
 
 
 class SubprocessRunner:
@@ -56,7 +54,7 @@
     def __init__(
         self,
         command: Command,
-        error_log_level: None = None,
+        error_log_level: Optional[str] = None,
         ignore_stderr_regexp: Optional[Pattern] = None,
         dry_run: Optional[bool] = None,
     ) -> None:
@@ -229,7 +227,7 @@
 
         return process
 
-    def __verify_command(self):
+    def __verify_command(self) -> None:
         if not self.command:
             raise CommandError(
                 "invalid command: {}".format(self.command), 
cmd=self.command_str, errno=errno.EINVAL
@@ -255,7 +253,7 @@
 
         return os.environ
 
-    def __debug_print_command(self):
+    def __debug_print_command(self) -> None:
         message_list = [self.command_str]
 
         if self.is_output_stacktrace:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/subprocrunner-1.2.1/subprocrunner/_which.py 
new/subprocrunner-1.2.2/subprocrunner/_which.py
--- old/subprocrunner-1.2.1/subprocrunner/_which.py     2020-04-02 
14:47:04.000000000 +0200
+++ new/subprocrunner-1.2.2/subprocrunner/_which.py     2021-05-05 
07:59:43.000000000 +0200
@@ -8,17 +8,21 @@
 from typing import Optional
 
 from .error import CommandError
+from .typing import Command
 
 
 class Which:
     @property
-    def command(self):
+    def command(self) -> Command:
         return self.__command
 
     def __init__(self, command: str, follow_symlinks: bool = False) -> None:
         if not command:
             raise ValueError("require a command")
 
+        if not command:
+            raise ValueError("require a command")
+
         self.__command = command
         self.__follow_symlinks = follow_symlinks
         self.__abspath = None  # type: Optional[str]
@@ -48,7 +52,7 @@
         if self.__abspath:
             return self.__abspath
 
-        self.__abspath = shutil.which(self.command)
+        self.__abspath = shutil.which(self.command)  # type: ignore
         if self.__abspath is None:
             return self.__abspath
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/subprocrunner-1.2.1/subprocrunner/error.py 
new/subprocrunner-1.2.2/subprocrunner/error.py
--- old/subprocrunner-1.2.1/subprocrunner/error.py      2020-02-11 
07:45:41.000000000 +0100
+++ new/subprocrunner-1.2.2/subprocrunner/error.py      2021-05-05 
07:59:36.000000000 +0200
@@ -5,15 +5,18 @@
 
 import subprocess
 import sys
+from typing import Optional
+
+from .typing import Command
 
 
 class CommandError(Exception):
     @property
-    def cmd(self):
+    def cmd(self) -> Optional[Command]:
         return self.__cmd
 
     @property
-    def errno(self):
+    def errno(self) -> Optional[int]:
         return self.__errno
 
     def __init__(self, *args, **kwargs) -> None:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/subprocrunner-1.2.1/subprocrunner/typing.py 
new/subprocrunner-1.2.2/subprocrunner/typing.py
--- old/subprocrunner-1.2.1/subprocrunner/typing.py     1970-01-01 
01:00:00.000000000 +0100
+++ new/subprocrunner-1.2.2/subprocrunner/typing.py     2021-05-05 
07:59:43.000000000 +0200
@@ -0,0 +1,4 @@
+from typing import Sequence, Union
+
+
+Command = Union[str, Sequence[str]]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/subprocrunner-1.2.1/subprocrunner.egg-info/PKG-INFO 
new/subprocrunner-1.2.2/subprocrunner.egg-info/PKG-INFO
--- old/subprocrunner-1.2.1/subprocrunner.egg-info/PKG-INFO     2020-04-04 
11:26:26.000000000 +0200
+++ new/subprocrunner-1.2.2/subprocrunner.egg-info/PKG-INFO     2021-05-05 
09:10:08.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: subprocrunner
-Version: 1.2.1
+Version: 1.2.2
 Summary: A Python wrapper library for subprocess module.
 Home-page: https://github.com/thombashi/subprocrunner
 Author: Tsuyoshi Hombashi
@@ -147,21 +147,14 @@
         
         Dependencies
         ============
-        Python 3.5+
-        
-        - `mbstrdecoder <https://github.com/thombashi/mbstrdecoder>`__
+        - Python 3.5+
+        - `Python package dependencies (automatically installed) 
<https://github.com/thombashi/subprocrunner/network/dependencies>`__
         
         Optional dependencies
         ----------------------------------
         - `loguru <https://github.com/Delgan/loguru>`__
             - Used for logging if the package installed
         
-        Test dependencies
-        -----------------
-        - `pytest <https://docs.pytest.org/en/latest/>`__
-        - `tox <https://testrun.org/tox/latest/>`__
-        - `typepy <https://github.com/thombashi/typepy>`__
-        
 Keywords: library,subprocess
 Platform: UNKNOWN
 Classifier: Development Status :: 5 - Production/Stable
@@ -178,6 +171,7 @@
 Classifier: Programming Language :: Python :: 3.7
 Classifier: Programming Language :: Python :: 3.8
 Classifier: Programming Language :: Python :: 3.9
+Classifier: Programming Language :: Python :: 3.10
 Classifier: Programming Language :: Python :: 3 :: Only
 Classifier: Programming Language :: Python :: Implementation :: CPython
 Classifier: Programming Language :: Python :: Implementation :: PyPy
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/subprocrunner-1.2.1/subprocrunner.egg-info/SOURCES.txt 
new/subprocrunner-1.2.2/subprocrunner.egg-info/SOURCES.txt
--- old/subprocrunner-1.2.1/subprocrunner.egg-info/SOURCES.txt  2020-04-04 
11:26:26.000000000 +0200
+++ new/subprocrunner-1.2.2/subprocrunner.egg-info/SOURCES.txt  2021-05-05 
09:10:08.000000000 +0200
@@ -12,6 +12,7 @@
 subprocrunner/_which.py
 subprocrunner/error.py
 subprocrunner/py.typed
+subprocrunner/typing.py
 subprocrunner.egg-info/PKG-INFO
 subprocrunner.egg-info/SOURCES.txt
 subprocrunner.egg-info/dependency_links.txt
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/subprocrunner-1.2.1/subprocrunner.egg-info/requires.txt 
new/subprocrunner-1.2.2/subprocrunner.egg-info/requires.txt
--- old/subprocrunner-1.2.1/subprocrunner.egg-info/requires.txt 2020-04-04 
11:26:26.000000000 +0200
+++ new/subprocrunner-1.2.2/subprocrunner.egg-info/requires.txt 2021-05-05 
09:10:08.000000000 +0200
@@ -1,4 +1,3 @@
-setuptools>=38.3.0
 mbstrdecoder<2,>=1.0.0
 
 [logging]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/subprocrunner-1.2.1/test/test_subproc_runner.py 
new/subprocrunner-1.2.2/test/test_subproc_runner.py
--- old/subprocrunner-1.2.1/test/test_subproc_runner.py 2020-03-20 
15:32:33.000000000 +0100
+++ new/subprocrunner-1.2.2/test/test_subproc_runner.py 2021-05-05 
07:06:24.000000000 +0200
@@ -89,6 +89,7 @@
     )
     def test_stderr(self, capsys, command, ignore_stderr_regexp, out_regexp, 
expected):
         from loguru import logger
+
         import subprocrunner
 
         logger.remove()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/subprocrunner-1.2.1/test/test_which.py 
new/subprocrunner-1.2.2/test/test_which.py
--- old/subprocrunner-1.2.1/test/test_which.py  2020-03-20 15:37:33.000000000 
+0100
+++ new/subprocrunner-1.2.2/test/test_which.py  2021-03-21 11:58:24.000000000 
+0100
@@ -16,7 +16,12 @@
 
 class Test_Which_constructor:
     @pytest.mark.parametrize(
-        ["value", "expected"], [[0, ValueError], ["", ValueError], [None, 
ValueError],],
+        ["value", "expected"],
+        [
+            [0, ValueError],
+            ["", ValueError],
+            [None, ValueError],
+        ],
     )
     def test_exception(self, value, expected):
         with pytest.raises(expected):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/subprocrunner-1.2.1/tox.ini 
new/subprocrunner-1.2.2/tox.ini
--- old/subprocrunner-1.2.1/tox.ini     2020-04-04 03:38:04.000000000 +0200
+++ new/subprocrunner-1.2.2/tox.ini     2021-05-05 08:29:55.000000000 +0200
@@ -1,13 +1,12 @@
 [tox]
 envlist =
-    py{35,36,37,38,py39}
+    py{35,36,37,38,39,310}
     pypy3
     build
     clean
     cov
     fmt
     lint
-    release
 
 [testenv]
 deps =
@@ -22,10 +21,11 @@
     wheel
 commands =
     python setup.py sdist bdist_wheel
-    twine check dist/*
+    twine check dist/*.whl dist/*.tar.gz
     python setup.py clean --all
 
 [testenv:clean]
+skip_install = true
 deps =
     cleanpy
 commands =
@@ -35,23 +35,25 @@
 deps =
     .[test]
     coverage[toml]
-    pytest-cov
 commands =
-    pytest --cov {posargs:-vv}
+    coverage run -m pytest {posargs:-vv}
+    coverage report -m
 
 [testenv:fmt]
 basepython = python3.8
+skip_install = true
 deps =
     autoflake
     black
-    isort[pyproject]
+    isort>=5
 commands =
     autoflake --in-place --recursive --remove-all-unused-imports 
--ignore-init-module-imports --exclude ".pytype" .
-    isort --apply --recursive
+    isort .
     black setup.py examples test subprocrunner
 
 [testenv:lint]
-basepython = python3.7
+basepython = python3.8
+skip_install = true
 deps =
     codespell
     mypy
@@ -59,14 +61,7 @@
     pytype
 commands =
     python setup.py check
-    mypy subprocrunner --ignore-missing-imports --show-error-context 
--show-error-codes --python-version 3.6
+    mypy subprocrunner
     pytype --keep-going --jobs 2 --disable import-error subprocrunner
     codespell subprocrunner examples test README.rst -q 2 --check-filenames
     pylama
-
-[testenv:release]
-basepython = python3.8
-deps =
-    releasecmd>=0.3.1,<1
-commands =
-    python setup.py release --sign {posargs}

Reply via email to