Upgrade package to version 0.15.0

This commit is contained in:
jxy_git 2022-11-08 16:58:53 +08:00
parent 9f8c644e14
commit ffff979ce3
3 changed files with 8 additions and 39 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,22 +1,14 @@
%global _empty_manifest_terminate_build 0
Name: python-prometheus-client
Version: 0.13.1
Version: 0.15.0
Release: 1
Summary: Python client for the Prometheus monitoring system.
License: Apache-2.0
URL: https://github.com/prometheus/client_python
Source0: https://files.pythonhosted.org/packages/a0/e4/af0c31d69c985e83774f5b3ee1b0e28f129a7606e3cfeb3e08b6a1fe8a12/prometheus_client-0.13.1.tar.gz
Source0: https://files.pythonhosted.org/packages/ae/ae/04b27ea04f67f91f10b1379d8fd6729c41ac0bcefbb0af603850b3fa32e0/prometheus_client-0.15.0.tar.gz
BuildArch: noarch
%description
Prometheus Python ClientThe official Python client for [Prometheus](). Three
Step Demo**One**: Install the client:pip install prometheus-client **Two**:
Paste the following into a Python interpreter: python from prometheus-client
import start_http_server, Summary import random import time Create a metric to
track time spent and requests made. REQUEST_TIME
Summary('request_processing_seconds', 'Time spent processing request') Decorate
function with metric. @REQUEST_TIME.time() def process_request(t): """A dummy
function that takes some time.""" time.sleep(t)if __name__ '__main__': Start up
the server to expose the metrics.
The official Python client for Prometheus.
%package -n python3-prometheus-client
Summary: Python client for the Prometheus monitoring system.
@ -33,39 +25,13 @@ BuildRequires: python3-twisted
# General requires
Requires: python3-twisted
%description -n python3-prometheus-client
Prometheus Python ClientThe official Python client for [Prometheus](). Three
Step Demo**One**: Install the client:pip install prometheus-client **Two**:
Paste the following into a Python interpreter: python from prometheus-client
import start_http_server, Summary import random import time Create a metric to
track time spent and requests made. REQUEST_TIME
# General requires
BuildRequires: python3-twisted
# General requires
Requires: python3-twisted
%description -n python3-prometheus-client
Prometheus Python ClientThe official Python client for [Prometheus](). Three
Step Demo**One**: Install the client:pip install prometheus-client **Two**:
Paste the following into a Python interpreter: python from prometheus-client
import start_http_server, Summary import random import time Create a metric to
track time spent and requests made. REQUEST_TIME
Summary('request_processing_seconds', 'Time spent processing request') Decorate
function with metric. @REQUEST_TIME.time() def process_request(t): """A dummy
function that takes some time.""" time.sleep(t)if __name__ '__main__': Start up
the server to expose the metrics.
The official Python client for Prometheus.
%package help
Summary: Python client for the Prometheus monitoring system.
Provides: python3-prometheus-client-doc
%description help
Prometheus Python ClientThe official Python client for [Prometheus](). Three
Step Demo**One**: Install the client:pip install prometheus-client **Two**:
Paste the following into a Python interpreter: python from prometheus-client
import start_http_server, Summary import random import time Create a metric to
track time spent and requests made. REQUEST_TIME
Summary('request_processing_seconds', 'Time spent processing request') Decorate
function with metric. @REQUEST_TIME.time() def process_request(t): """A dummy
function that takes some time.""" time.sleep(t)if __name__ '__main__': Start up
the server to expose the metrics.
The official Python client for Prometheus.
%prep
%autosetup -n prometheus_client-%{version}
@ -112,6 +78,9 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/*
%changelog
* Tue Nov 08 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 0.15.0-1
- Upgrade package to version 0.15.0
* Mon Jun 06 2022 renliang <renliang@uniontech.com> - 0.13.1-1
- Update package python3-prometheus-client to version 0.13.1