Hello community, here is the log from the commit of package python-genty for openSUSE:Factory checked in at 2020-12-12 20:29:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-genty (Old) and /work/SRC/openSUSE:Factory/.python-genty.new.2328 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-genty" Sat Dec 12 20:29:06 2020 rev:3 rq:853749 version:1.3.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-genty/python-genty.changes 2019-03-15 10:52:37.532966113 +0100 +++ /work/SRC/openSUSE:Factory/.python-genty.new.2328/python-genty.changes 2020-12-12 20:31:26.853794647 +0100 @@ -1,0 +2,5 @@ +Tue Dec 8 07:55:53 UTC 2020 - Matej Cepl <mc...@suse.com> + +- Add remove_mock.patch to remove dependency on the external mock package. + +------------------------------------------------------------------- New: ---- remove_mock.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-genty.spec ++++++ --- /var/tmp/diff_new_pack.AYbboN/_old 2020-12-12 20:31:27.513795336 +0100 +++ /var/tmp/diff_new_pack.AYbboN/_new 2020-12-12 20:31:27.517795341 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-genty # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,9 +25,10 @@ Group: Development/Languages/Python URL: https://github.com/box/genty Source: https://files.pythonhosted.org/packages/source/g/genty/genty-%{version}.tar.gz +# PATCH-FEATURE-UPSTREAM remove_mock.patch bsc#[0-9]+ mc...@suse.com +# Remove dependency on mock +Patch0: remove_mock.patch BuildRequires: %{python_module devel} -BuildRequires: %{python_module mock} -BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} BuildRequires: fdupes @@ -43,7 +44,7 @@ input. Genty makes this a breeze. %prep -%setup -q -n genty-%{version} +%autosetup -p1 -n genty-%{version} %build %python_build @@ -53,7 +54,7 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%pyunittest discover -v %files %{python_files} %license LICENSE ++++++ remove_mock.patch ++++++ --- a/test/test_genty.py +++ b/test/test_genty.py @@ -3,7 +3,7 @@ from __future__ import unicode_literals import functools import inspect -from mock import patch +from unittest.mock import patch import six from genty import genty, genty_args, genty_dataset, genty_repeat, genty_dataprovider from genty.genty import REPLACE_FOR_PERIOD_CHAR _______________________________________________ openSUSE Commits mailing list -- commit@lists.opensuse.org To unsubscribe, email commit-le...@lists.opensuse.org List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette List Archives: https://lists.opensuse.org/archives/list/commit@lists.opensuse.org