[packages/python3-prometheus-client] - python-prometheus-client.spec updated to 0.25.0 for python 3.9+

qboosh qboosh at pld-linux.org
Mon Apr 20 21:50:16 CEST 2026


commit 6588b11625c527aadf485fbf009fb66ef0e1f1a5
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Apr 20 21:50:55 2026 +0200

    - python-prometheus-client.spec updated to 0.25.0 for python 3.9+

 python-prometheus-client.spec  | 117 -----------------------------------------
 python3-prometheus-client.spec |  64 ++++++++++++++++++++++
 2 files changed, 64 insertions(+), 117 deletions(-)
---
diff --git a/python-prometheus-client.spec b/python-prometheus-client.spec
deleted file mode 100644
index 00bc131..0000000
--- a/python-prometheus-client.spec
+++ /dev/null
@@ -1,117 +0,0 @@
-#
-# Conditional build:
-%bcond_without	tests	# unit tests
-%bcond_without	python2 # CPython 2.x module
-%bcond_with	python3 # CPython 3.x module (built from python3-prometheus-client.spec)
-
-Summary:	Python client for the Prometheus monitoring system
-Summary(pl.UTF-8):	Pythonowy klient systemu monitorowania Prometheus
-Name:		python-prometheus-client
-# keep 0.12.x here for python2 support
-Version:	0.12.0
-Release:	1
-License:	Apache v2.0, BSD
-Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/prometheus-client/
-Source0:	https://files.pythonhosted.org/packages/source/p/prometheus-client/prometheus_client-%{version}.tar.gz
-# Source0-md5:	4439c954aa7bc68b15915c6360967851
-URL:		https://pypi.org/project/prometheus-client/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-pytest
-BuildRequires:	python-twisted
-BuildRequires:	python-unittest2
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.4
-BuildRequires:	python3-setuptools
-%if %{with tests}
-BuildRequires:	python3-asgiref
-BuildRequires:	python3-pytest
-BuildRequires:	python3-twisted
-%endif
-%endif
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-Requires:	python-modules >= 1:2.7
-BuildArch:	noarch
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-The official Python 2 and 3 client for Prometheus
-<http://prometheus.io/>.
-
-%description -l pl.UTF-8
-Oficjalny klient Prometheusa <http://prometheus.io/> dla Pythona 2 i
-3.
-
-%package -n python3-prometheus-client
-Summary:	Python client for the Prometheus monitoring system
-Summary(pl.UTF-8):	Pythonowy klient systemu monitorowania Prometheus
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.4
-
-%description -n python3-prometheus-client
-The official Python 2 and 3 client for Prometheus
-<http://prometheus.io/>.
-
-%description -n python3-prometheus-client -l pl.UTF-8
-Oficjalny klient Prometheusa <http://prometheus.io/> dla Pythona 2 i
-3.
-
-%prep
-%setup -q -n prometheus_client-%{version}
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python} -m pytest tests
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python3} -m pytest tests
-%endif
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc README.md
-%{py_sitescriptdir}/prometheus_client
-%{py_sitescriptdir}/prometheus_client-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-prometheus-client
-%defattr(644,root,root,755)
-%doc README.md
-%{py3_sitescriptdir}/prometheus_client
-%{py3_sitescriptdir}/prometheus_client-%{version}-py*.egg-info
-%endif
diff --git a/python3-prometheus-client.spec b/python3-prometheus-client.spec
new file mode 100644
index 0000000..6131bfa
--- /dev/null
+++ b/python3-prometheus-client.spec
@@ -0,0 +1,64 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+
+Summary:	Python client for the Prometheus monitoring system
+Summary(pl.UTF-8):	Pythonowy klient systemu monitorowania Prometheus
+Name:		python3-prometheus-client
+Version:	0.25.0
+Release:	1
+License:	Apache v2.0, BSD
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/prometheus-client/
+Source0:	https://files.pythonhosted.org/packages/source/p/prometheus-client/prometheus_client-%{version}.tar.gz
+# Source0-md5:	a62e0923bbe5b194492acf2e26004e6b
+URL:		https://pypi.org/project/prometheus-client/
+BuildRequires:	python3-build
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.9
+BuildRequires:	python3-setuptools >= 1:77.0.0
+%if %{with tests}
+BuildRequires:	python3-aiohttp
+BuildRequires:	python3-asgiref
+BuildRequires:	python3-django
+BuildRequires:	python3-pytest
+BuildRequires:	python3-pytest-benchmark
+BuildRequires:	python3-twisted
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 2.044
+Requires:	python3-modules >= 1:3.9
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The official Python client for Prometheus <https://prometheus.io/>.
+
+%description -l pl.UTF-8
+Oficjalny klient Prometheusa <https://prometheus.io/> dla Pythona.
+
+%prep
+%setup -q -n prometheus_client-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_benchmark.plugin \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc NOTICE README.md
+%{py3_sitescriptdir}/prometheus_client
+%{py3_sitescriptdir}/prometheus_client-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-prometheus-client.git/commitdiff/6588b11625c527aadf485fbf009fb66ef0e1f1a5



More information about the pld-cvs-commit mailing list