Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-easydev for openSUSE:Factory checked in at 2022-03-17 17:01:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-easydev (Old) and /work/SRC/openSUSE:Factory/.python-easydev.new.25692 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-easydev" Thu Mar 17 17:01:31 2022 rev:6 rq:962275 version:0.12.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-easydev/python-easydev.changes 2021-09-16 23:17:23.207966951 +0200 +++ /work/SRC/openSUSE:Factory/.python-easydev.new.25692/python-easydev.changes 2022-03-17 17:01:39.253692514 +0100 @@ -1,0 +2,8 @@ +Wed Mar 16 13:50:05 UTC 2022 - pgaj...@suse.com + +- do not require python-mock for build +- added patches + fix https://github.com/cokelaer/easydev/issues/20 + + python-easydev-no-mock.patch + +------------------------------------------------------------------- New: ---- python-easydev-no-mock.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-easydev.spec ++++++ --- /var/tmp/diff_new_pack.xgYSJs/_old 2022-03-17 17:01:39.785692921 +0100 +++ /var/tmp/diff_new_pack.xgYSJs/_new 2022-03-17 17:01:39.793692927 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-easydev # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,6 +24,8 @@ License: BSD-3-Clause URL: https://github.com/cokelaer/easydev Source: https://files.pythonhosted.org/packages/source/e/easydev/easydev-%{version}.tar.gz +# https://github.com/cokelaer/easydev/issues/20 +Patch0: python-easydev-no-mock.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -39,7 +41,6 @@ BuildRequires: %{python_module colorama} BuildRequires: %{python_module colorlog} BuildRequires: %{python_module line_profiler} -BuildRequires: %{python_module mock} BuildRequires: %{python_module pexpect} BuildRequires: %{python_module pytest-cov} BuildRequires: %{python_module pytest-mock} @@ -54,7 +55,7 @@ also as an incubator for other packages and is stable. %prep -%setup -q -n easydev-%{version} +%autosetup -p1 -n easydev-%{version} sed -i -e '/^#!\//, 1d' easydev/appdirs.py %build ++++++ python-easydev-no-mock.patch ++++++ Index: easydev-0.12.0/test/test_appdirs.py =================================================================== --- easydev-0.12.0.orig/test/test_appdirs.py 2020-06-03 19:27:51.000000000 +0200 +++ easydev-0.12.0/test/test_appdirs.py 2022-03-16 14:45:51.220342072 +0100 @@ -1,4 +1,7 @@ -import mock +try: + from unittest.mock import patch +except: + from mock import patch def test_app(): @@ -10,17 +13,17 @@ def test_app(): app.user_cache_dir app.user_log_dir - with mock.patch("sys.platform", "darwin"): + with patch("sys.platform", "darwin"): from easydev import appdirs app = appdirs.AppDirs("test") getter(app) - with mock.patch("sys.platform", "win32"): + with patch("sys.platform", "win32"): from easydev import appdirs app = appdirs.AppDirs("test") getter(app) - with mock.patch("sys.platform", "linux"): + with patch("sys.platform", "linux"): from easydev import appdirs app = appdirs.AppDirs("test") getter(app)