- Update to 0.17.0:

* [ENHANCEMENT] Add additional typing.
  * [BUGFIX] Fix typo in python_gc_objects_collected metadata.
  * [BUGFIX] Do not include .pyc files in the build wheel.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-prometheus-client?expand=0&rev=14
This commit is contained in:
Matej Cepl 2023-05-24 23:42:08 +00:00 committed by Git OBS Bridge
parent f7d2603595
commit 968f38f483
4 changed files with 25 additions and 10 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed May 24 23:39:52 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Update to 0.17.0:
* [ENHANCEMENT] Add additional typing.
* [BUGFIX] Fix typo in python_gc_objects_collected metadata.
* [BUGFIX] Do not include .pyc files in the build wheel.
-------------------------------------------------------------------
Tue Jan 24 07:59:49 UTC 2023 - Matej Cepl <mcepl@suse.com>

View File

@ -16,10 +16,9 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-prometheus-client
Version: 0.16.0
Version: 0.17.0
Release: 0
Summary: Python client for the Prometheus monitoring system
License: Apache-2.0
@ -30,8 +29,9 @@ Source: https://github.com/prometheus/client_python/archive/v%{version}.
# we disable testing the optional Twisted integration on older versions because that dependency tree is troublesome
BuildRequires: %{python_module Twisted}
%endif
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Recommends: python-Twisted
@ -47,13 +47,19 @@ BuildRequires: python-futures
The official Python 2 and 3 client for Prometheus.
%prep
%setup -q -n client_python-%{version}
%autosetup -p1 -n client_python-%{version}
sed -i -e '1{/\/usr\/bin\/python/d}' \
prometheus_client/__init__.py \
prometheus_client/bridge/graphite.py \
prometheus_client/openmetrics/exposition.py \
prometheus_client/openmetrics/parser.py
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@ -62,6 +68,7 @@ The official Python 2 and 3 client for Prometheus.
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/prometheus_client
%{python_sitelib}/prometheus_client-%{version}*-info
%changelog

BIN
v0.16.0.tar.gz (Stored with Git LFS)

Binary file not shown.

3
v0.17.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e778a8bdc7fcb9932350dafff4221c2368e4dcaee96541eecd0962b1de689ede
size 82848