Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pytest-reorder for
openSUSE:Factory checked in at 2022-03-21 20:11:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-reorder (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-reorder.new.25692 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-reorder"
Mon Mar 21 20:11:10 2022 rev:4 rq:963385 version:0.1.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-pytest-reorder/python-pytest-reorder.changes
2019-02-25 17:51:38.290743945 +0100
+++
/work/SRC/openSUSE:Factory/.python-pytest-reorder.new.25692/python-pytest-reorder.changes
2022-03-21 20:11:18.560396846 +0100
@@ -1,0 +2,7 @@
+Mon Mar 21 03:56:03 UTC 2022 - Steve Kowalik <[email protected]>
+
+- Add patch remove-mock.patch:
+ * Use stdlib unittest.mock
+- Drop mock BuildRequires.
+
+-------------------------------------------------------------------
New:
----
remove-mock.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-reorder.spec ++++++
--- /var/tmp/diff_new_pack.Klpkzb/_old 2022-03-21 20:11:19.660397979 +0100
+++ /var/tmp/diff_new_pack.Klpkzb/_new 2022-03-21 20:11:19.664397983 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-pytest-reorder
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# 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
@@ -25,13 +25,13 @@
Group: Development/Languages/Python
URL: https://github.com/not-raspberry/pytest_reorder
Source:
https://github.com/not-raspberry/pytest_reorder/archive/v%{version}.tar.gz
+Patch0: remove-mock.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pytest >= 2.8.5
BuildArch: noarch
# SECTION test requirements
-BuildRequires: %{python_module mock >= 1.3.0}
BuildRequires: %{python_module pylama >= 7.0.6}
BuildRequires: %{python_module pytest >= 2.8.5}
# /SECTION
@@ -57,7 +57,7 @@
nested**. You can also specify your custom order.
%prep
-%setup -q -n pytest_reorder-%{version}
+%autosetup -p1 -n pytest_reorder-%{version}
%build
%python_build
++++++ remove-mock.patch ++++++
Index: pytest_reorder-0.1.1/tests/test_pytest_reorder.py
===================================================================
--- pytest_reorder-0.1.1.orig/tests/test_pytest_reorder.py
+++ pytest_reorder-0.1.1/tests/test_pytest_reorder.py
@@ -3,7 +3,7 @@ import re
import pytest
import subprocess
-from mock import Mock
+from unittest.mock import Mock
from pytest_reorder import (
default_reordering_hook, unpack_test_ordering, make_reordering_hook,
DEFAULT_ORDER