forked from pool/python-statsd
- update to 4.0.1:
* Updated trove classifiers, see #174 - update to 4.0.0: * Updates support to Python 3.7 through 3.11. * Added `close()` method to UDP-based `StatsClient`. * Drops support for Python 2. * Using a timing decorator on an async function should now properly measure the execution time, instead of counting immediately. See #119. * Use pytest for the testsuite, and switch to bare asserts. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-statsd?expand=0&rev=16
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-statsd
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-statsd
|
||||
Version: 3.3.0
|
||||
Version: 4.0.1
|
||||
Release: 0
|
||||
Summary: A simple statsd client
|
||||
License: MIT
|
||||
@@ -26,8 +26,10 @@ Group: Development/Languages/Python
|
||||
URL: https://github.com/jsocol/pystatsd
|
||||
Source: https://files.pythonhosted.org/packages/source/s/statsd/statsd-%{version}.tar.gz
|
||||
Patch0: remove-nose.patch
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
@@ -38,14 +40,13 @@ statsd is a front-end to Graphite. This is a Python client
|
||||
for the statsd daemon.
|
||||
|
||||
%prep
|
||||
%setup -q -n statsd-%{version}
|
||||
%autopatch -p1
|
||||
%autosetup -p1 -n statsd-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@@ -55,7 +56,8 @@ sed -i 's:import mock:from unittest import mock:' statsd/tests.py
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc AUTHORS CHANGES README.rst docs/_build/html
|
||||
%{python_sitelib}/*
|
||||
%doc AUTHORS README.rst
|
||||
%{python_sitelib}/statsd
|
||||
%{python_sitelib}/statsd-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user