14
0
forked from pool/python-statsd

Accepting request 970834 from home:pgajdos:python

- do not require python-mock for build

OBS-URL: https://build.opensuse.org/request/show/970834
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-statsd?expand=0&rev=14
This commit is contained in:
2022-04-19 14:09:45 +00:00
committed by Git OBS Bridge
parent 6003d33f9a
commit cb4cbf36aa
2 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Apr 19 10:54:18 UTC 2022 - pgajdos@suse.com
- do not require python-mock for build
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Oct 5 04:43:33 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com> Tue Oct 5 04:43:33 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-statsd # spec file for package python-statsd
# #
# Copyright (c) 2021 SUSE LLC # Copyright (c) 2022 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -26,7 +26,6 @@ Group: Development/Languages/Python
URL: https://github.com/jsocol/pystatsd URL: https://github.com/jsocol/pystatsd
Source: https://files.pythonhosted.org/packages/source/s/statsd/statsd-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/s/statsd/statsd-%{version}.tar.gz
Patch0: remove-nose.patch Patch0: remove-nose.patch
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
@@ -50,6 +49,8 @@ for the statsd daemon.
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
# https://github.com/jsocol/pystatsd/pull/150
sed -i 's:import mock:from unittest import mock:' statsd/tests.py
%pytest statsd/tests.py %pytest statsd/tests.py
%files %{python_files} %files %{python_files}