Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-Delorean for openSUSE:Factory
checked in at 2022-03-18 16:42:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Delorean (Old)
and /work/SRC/openSUSE:Factory/.python-Delorean.new.25692 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Delorean"
Fri Mar 18 16:42:21 2022 rev:4 rq:962626 version:1.0.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Delorean/python-Delorean.changes
2019-11-06 14:06:06.172785837 +0100
+++
/work/SRC/openSUSE:Factory/.python-Delorean.new.25692/python-Delorean.changes
2022-03-18 16:42:34.181199942 +0100
@@ -1,0 +2,5 @@
+Thu Mar 17 15:10:01 UTC 2022 - [email protected]
+
+- do not require python-mock for build
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-Delorean.spec ++++++
--- /var/tmp/diff_new_pack.jl3k09/_old 2022-03-18 16:42:34.697200312 +0100
+++ /var/tmp/diff_new_pack.jl3k09/_new 2022-03-18 16:42:34.701200315 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-Delorean
#
-# 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
@@ -36,7 +36,7 @@
# SECTION test requirements
BuildRequires: %{python_module Babel >= 2.1.1}
BuildRequires: %{python_module humanize >= 0.5.1}
-BuildRequires: %{python_module mock}
+BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-dateutil >= 2.4.2}
BuildRequires: %{python_module pytz >= 2015.7}
BuildRequires: %{python_module tzlocal >= 1.2}
@@ -58,10 +58,9 @@
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
-%{python_expand export PYTHONDONTWRITEBYTECODE=1
-export PYTHONPATH=%{buildroot}%{$python_sitelib}
-$python tests/delorean_tests.py
-}
+# https://github.com/myusuf3/delorean/issues/113
+sed -i 's:import mock:from unittest import mock:' tests/delorean_tests.py
+%pytest tests/delorean_tests.py
%files %{python_files}
%doc CHANGES.rst README.rst