forked from pool/python-statsd
Accepting request 970852 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/970852 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-statsd?expand=0&rev=7
This commit is contained in:
@@ -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>
|
||||||
|
|
||||||
|
@@ -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}
|
||||||
|
Reference in New Issue
Block a user