Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-invocations for openSUSE:Factory checked in at 2022-05-06 18:58:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-invocations (Old) and /work/SRC/openSUSE:Factory/.python-invocations.new.1538 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-invocations" Fri May 6 18:58:58 2022 rev:9 rq:974983 version:2.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-invocations/python-invocations.changes 2022-03-13 20:25:29.363678089 +0100 +++ /work/SRC/openSUSE:Factory/.python-invocations.new.1538/python-invocations.changes 2022-05-06 18:59:13.673349295 +0200 @@ -1,0 +2,8 @@ +Wed May 4 12:25:51 UTC 2022 - [email protected] + +- do not require python-mock for build +- added patches + fix https://github.com/pyinvoke/invocations/issues/31 + + python-invocations-no-mock.patch + +------------------------------------------------------------------- New: ---- python-invocations-no-mock.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-invocations.spec ++++++ --- /var/tmp/diff_new_pack.yGAPkR/_old 2022-05-06 18:59:14.193349863 +0200 +++ /var/tmp/diff_new_pack.yGAPkR/_new 2022-05-06 18:59:14.201349872 +0200 @@ -27,10 +27,11 @@ Source: https://github.com/pyinvoke/invocations/archive/%{version}.tar.gz#/invocations-%{version}.tar.gz Patch0: invocations-no-bundled.patch Patch1: invocations-py3.patch +# https://github.com/pyinvoke/invocations/issues/31 +Patch2: python-invocations-no-mock.patch BuildRequires: %{python_module blessings >= 1.6} BuildRequires: %{python_module invoke >= 1.6} BuildRequires: %{python_module lexicon} -BuildRequires: %{python_module mock} BuildRequires: %{python_module pytest-relaxed} BuildRequires: %{python_module releases >= 1.2} BuildRequires: %{python_module semantic_version >= 2.4} @@ -73,9 +74,7 @@ the Invoke project's communication channels for updates. Thanks! %prep -%setup -q -n invocations-%{version} -%patch0 -p1 -%patch1 -p1 +%autosetup -p1 -n invocations-%{version} %build %python_build ++++++ python-invocations-no-mock.patch ++++++ diff -upr invocations-2.3.0.orig/tests/autodoc/base.py invocations-2.3.0/tests/autodoc/base.py --- invocations-2.3.0.orig/tests/autodoc/base.py 2022-05-04 14:22:40.135321552 +0200 +++ invocations-2.3.0/tests/autodoc/base.py 2022-05-04 14:22:40.143321605 +0200 @@ -3,7 +3,7 @@ import codecs import re import shutil -from mock import Mock, patch +from unittest.mock import Mock, patch from invoke import Context from invocations.autodoc import setup, TaskDocumenter diff -upr invocations-2.3.0.orig/tests/console.py invocations-2.3.0/tests/console.py --- invocations-2.3.0.orig/tests/console.py 2022-05-04 14:22:40.135321552 +0200 +++ invocations-2.3.0/tests/console.py 2022-05-04 14:22:40.143321605 +0200 @@ -2,7 +2,7 @@ from __future__ import unicode_literals import sys -from mock import patch +from unittest.mock import patch from pytest_relaxed import trap from invocations.console import confirm diff -upr invocations-2.3.0.orig/tests/environment.py invocations-2.3.0/tests/environment.py --- invocations-2.3.0.orig/tests/environment.py 2022-05-04 14:22:40.135321552 +0200 +++ invocations-2.3.0/tests/environment.py 2022-05-04 14:22:40.143321605 +0200 @@ -1,4 +1,4 @@ -from mock import patch +from unittest.mock import patch from pytest import mark from invocations.environment import in_ci diff -upr invocations-2.3.0.orig/tests/packaging/release.py invocations-2.3.0/tests/packaging/release.py --- invocations-2.3.0.orig/tests/packaging/release.py 2022-05-04 14:22:40.135321552 +0200 +++ invocations-2.3.0/tests/packaging/release.py 2022-05-04 14:22:40.143321605 +0200 @@ -13,7 +13,7 @@ except ImportError: from lexicon import Lexicon from invoke import MockContext, Result, Config, Exit from docutils.utils import Reporter -from mock import Mock, patch, call +from unittest.mock import Mock, patch, call import pytest from pytest import skip from pytest_relaxed import trap, raises diff -upr invocations-2.3.0.orig/tests/pytest_.py invocations-2.3.0/tests/pytest_.py --- invocations-2.3.0.orig/tests/pytest_.py 2022-05-04 14:22:40.135321552 +0200 +++ invocations-2.3.0/tests/pytest_.py 2022-05-04 14:22:40.143321605 +0200 @@ -2,7 +2,7 @@ from contextlib import contextmanager from invoke import MockContext from invocations.pytest import test, coverage -from mock import Mock, call +from unittest.mock import Mock, call @contextmanager
