From b168beb1c0310f491c1d15304ee12c7d00cfe219d215b09d24c213cc6895a0b8 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 6 Apr 2022 14:52:24 +0000 Subject: [PATCH] Accepting request 967321 from home:pgajdos:python - do not require python-mock for build OBS-URL: https://build.opensuse.org/request/show/967321 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyeapi?expand=0&rev=9 --- python-pyeapi.changes | 5 +++++ python-pyeapi.spec | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/python-pyeapi.changes b/python-pyeapi.changes index 422ddbd..4567457 100644 --- a/python-pyeapi.changes +++ b/python-pyeapi.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Apr 6 12:55:49 UTC 2022 - pgajdos@suse.com + +- do not require python-mock for build + ------------------------------------------------------------------- Tue Jan 11 22:08:03 UTC 2022 - Ben Greiner diff --git a/python-pyeapi.spec b/python-pyeapi.spec index 9dd046e..fb199a2 100644 --- a/python-pyeapi.spec +++ b/python-pyeapi.spec @@ -27,7 +27,6 @@ License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/arista-eosplus/pyeapi Source: https://files.pythonhosted.org/packages/source/p/pyeapi/pyeapi-%{version}.tar.gz -BuildRequires: %{python_module mock} BuildRequires: %{python_module netaddr} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} @@ -56,6 +55,8 @@ developing custom implementations. # Deprecated collections usage since Python 3.3 sed -i 's/from collections import/from collections.abc import/' pyeapi/api/abstract.py sed -i 's/collections.Iterable/collections.abc.Iterable/' test/unit/test_utils.py +# https://github.com/arista-eosplus/pyeapi/issues/224 +sed -i 's/from mock/from unittest.mock/' test/*/test*.py %build %python_build