%global _empty_manifest_terminate_build 0
%global pypi_name prometheus_client
Name: python-prometheus-client
Version: 0.25.0
Release: 1
Summary: Python client for the Prometheus monitoring system.
License: Apache-2.0
URL: https://github.com/prometheus/client_python
Source0: %{pypi_source %{pypi_name}}
BuildArch: noarch
%description
The official Python client for Prometheus.
%package -n python3-prometheus-client
Summary: Python client for the Prometheus monitoring system.
Provides: python-prometheus-client = %{version}-%{release}
Obsoletes: %{name}-help <= %{version}-%{release}
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-pytest
BuildRequires: python3-pytest-benchmark
# General requires
BuildRequires: python3-twisted
# General requires
Requires: python3-twisted
%description -n python3-prometheus-client
The official Python client for Prometheus.
%prep
%autosetup -n %{pypi_name}-%{version} -p1
%build
%pyproject_build
%install
%pyproject_install
%check
export PYTEST_ADDOPTS="--ignore=tests/test_asgi.py"
%pytest
%files -n python3-prometheus-client
%{python3_sitelib}/*
%changelog
* Fri Apr 10 2026 YangengLiu <dev01202@linx-info.com> - 0.25.0-1
- update version to 0.25.0
* Fix spaces in grouping key values for push_to_gateway.
* Support MultiProcessCollector in RestrictedRegistry.
* Fri Feb 27 2026 zhang_jian <zhang_jian7@hoperun.com> - 0.24.1-1
- update version to 0.24.1
* Pass correct registry to MultiProcessCollector
* Tue Jan 13 2026 YangengLiu <dev01202@linx-info.com> - 0.24.0-1
- update version to 0.24.0
* Add an AIOHTTP exporter
* Add remove_matching() method for metric label deletion
* fix(multiprocess): avoid double-building child metric names
* Don't interleave histogram metrics in multi-process collector
* Relax registry type annotations for exposition
* Added compression support in pushgateway
* Add Django exporter
* Thu Nov 06 2025 liutao <liutao1@kylinos.cn> - 0.23.1-1
- Update package to version 0.23.1
- fix: use tuples instead of packaging Version
* Mon Sep 15 2025 xiejing <xiejing@kylinos.cn> - 0.23.0-1
- Update to 0.23.0
Add support to write_to_textfile for custom tmpdir
Fix bug which caused metric publishing to not accept query string parameters in ASGI app
Fix issue parsing double spaces after # HELP/# TYPE
* Wed Jul 16 2025 wangkai <13474090681@163.com> - 0.22.1-1
- Update to 0.22.1
- Switch to pyproject macros
- Obsolete empty help package
* Thu Feb 29 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 0.20.0-1
- Update package to version 0.20.0
wsgi server: address family discovery is not quite right
* Tue Aug 01 2023 chenzixuan <chenzixuan@kylinos.cn> - 0.17.1-1
- Update package to version 0.17.1
* Thu Jun 01 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 0.17.0-1
- Update package to version 0.17.0
* Fri Feb 24 2023 wubijie <wubijie@kylinos.cn> - 0.16.0-1
- Update package to version 0.16.0
* 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
* Fri Jul 09 2021 openstack-sig <openstack@openeuler.org>
- Package Spec generated