Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-releases for openSUSE:Factory
checked in at 2022-04-14 17:23:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-releases (Old)
and /work/SRC/openSUSE:Factory/.python-releases.new.1941 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-releases"
Thu Apr 14 17:23:19 2022 rev:8 rq:969299 version:1.6.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-releases/python-releases.changes
2021-12-16 21:19:33.294526780 +0100
+++
/work/SRC/openSUSE:Factory/.python-releases.new.1941/python-releases.changes
2022-04-14 17:23:29.899125437 +0200
@@ -1,0 +2,7 @@
+Tue Apr 12 02:32:28 UTC 2022 - Steve Kowalik <[email protected]>
+
+- Add patch remove-mock.patch:
+ * Use stdlib mock, not external mock.
+- Drop mock BuildRequires.
+
+-------------------------------------------------------------------
New:
----
remove-mock.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-releases.spec ++++++
--- /var/tmp/diff_new_pack.bQH92h/_old 2022-04-14 17:23:30.791126480 +0200
+++ /var/tmp/diff_new_pack.bQH92h/_new 2022-04-14 17:23:30.795126484 +0200
@@ -1,7 +1,7 @@
#
# spec file
#
-# 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
@@ -34,6 +34,7 @@
Source:
https://files.pythonhosted.org/packages/source/r/releases/releases-%{version}.tar.gz
Patch0: semanticversioning.patch
Patch1: migrate-to-pytest.patch
+Patch2: remove-mock.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -45,7 +46,6 @@
BuildRequires: %{python_module Sphinx >= 1.3}
BuildRequires: %{python_module invocations}
BuildRequires: %{python_module invoke}
-BuildRequires: %{python_module mock >= 1.0.1}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module semantic_version}
BuildRequires: %{python_module six >= 1.4.1}
@@ -70,8 +70,7 @@
overridden on a per-issue basis.
%prep
-%setup -q -n releases-%{version}
-%autopatch -p1
+%autosetup -p1 -n releases-%{version}
%build
%python_build
++++++ remove-mock.patch ++++++
Index: releases-1.6.3/tests/_util.py
===================================================================
--- releases-1.6.3.orig/tests/_util.py
+++ releases-1.6.3/tests/_util.py
@@ -1,7 +1,7 @@
from docutils.nodes import (
list_item, paragraph,
)
-from mock import Mock
+from unittest.mock import Mock
import six
from releases import (