forked from pool/python-snimpy
Accepting request 971048 from home:pgajdos:python
- do not require python-mock for build OBS-URL: https://build.opensuse.org/request/show/971048 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-snimpy?expand=0&rev=10
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 20 09:32:37 UTC 2022 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- do not require python-mock for build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Jun 6 12:52:43 UTC 2021 - Martin Hauke <mardnh@gmx.de>
|
Sun Jun 6 12:52:43 UTC 2021 - Martin Hauke <mardnh@gmx.de>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-snimpy
|
# spec file for package python-snimpy
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
# Copyright (c) 2016-2021, Martin Hauke <mardnh@gmx.de>
|
# Copyright (c) 2016-2021, Martin Hauke <mardnh@gmx.de>
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@@ -37,7 +37,6 @@ BuildRequires: libsmi-devel
|
|||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module cffi >= 1.0.0}
|
BuildRequires: %{python_module cffi >= 1.0.0}
|
||||||
BuildRequires: %{python_module mock}
|
|
||||||
BuildRequires: %{python_module pycryptodomex}
|
BuildRequires: %{python_module pycryptodomex}
|
||||||
BuildRequires: %{python_module pysnmp >= 4}
|
BuildRequires: %{python_module pysnmp >= 4}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
@@ -87,6 +86,8 @@ export CFLAGS="%{optflags}"
|
|||||||
%python_clone -a %{buildroot}%{_mandir}/man1/snimpy.1
|
%python_clone -a %{buildroot}%{_mandir}/man1/snimpy.1
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
# https://github.com/vincentbernat/snimpy/issues/98
|
||||||
|
sed -i 's:import mock:from unittest import mock:' tests/test_{basictypes,main}.py
|
||||||
%python_exec -m unittest discover tests -v
|
%python_exec -m unittest discover tests -v
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
Reference in New Issue
Block a user