diff --git a/python-prometheus-client.changes b/python-prometheus-client.changes index e9b9e32..0e6e078 100644 --- a/python-prometheus-client.changes +++ b/python-prometheus-client.changes @@ -1,3 +1,55 @@ +------------------------------------------------------------------- +Fri Oct 18 10:45:08 UTC 2024 - Dirk Müller + +- update to 0.21.0: + * [CHANGE] Reject invalid (not GET or OPTION) HTTP methods. + #1019 + * [ENHANCEMENT] Allow writing metrics when holding a lock for + the metric in the same thread. #1014 + * [BUGFIX] Check for and error on None label values. #1012 + * [BUGFIX] Fix timestamp comparison. #1038 + +------------------------------------------------------------------- +Tue Mar 19 07:07:45 UTC 2024 - Dirk Müller + +- update to 0.20.0: + * Update OpenMetrics Content Type to 1.0.0. + * Enable graceful shutdown for + start_{http,wsgi}_server by returning the server and thread. + * Allow resetting counter metrics. #1005 + * wsgi server: address family discovery is not quite right + +------------------------------------------------------------------- +Fri Jan 5 18:19:47 UTC 2024 - Dirk Müller + +- update to 0.19.0: + * [FEATURE] support HTTPS/TLS in start_http_server. #946 + * [BUGFIX] fix: error in determining timestamp less than. #979 +- update to 0.18.0: + * [CHANGE] Remove support for Python versions < 3.8. #936 + * [FEATURE] Add `mostrecent` aggregation to Gauge. #967 + * [ENHANCEMENT] Typing improvements. #935, #970 + * [ENHANCEMENT] Allow enabling or disabling `_created` metrics + from code. #973 + * [BUGFIX] Change #!/usr/bin/python to #!/usr/bin/env python in + remaining places. #945 +- update to 0.17.1: + * [BUGFIX] Use #!/usr/bin/env python instead of + #!usr/bin/python in bridge/graphite.py. #928 + +------------------------------------------------------------------- +Tue May 30 08:12:22 UTC 2023 - Daniel Garcia + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Wed May 24 23:39:52 UTC 2023 - Matej Cepl + +- 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 diff --git a/python-prometheus-client.spec b/python-prometheus-client.spec index ff62ca0..dc23ed8 100644 --- a/python-prometheus-client.spec +++ b/python-prometheus-client.spec @@ -1,7 +1,7 @@ # # spec file for package python-prometheus-client # -# Copyright (c) 2023 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 @@ -16,10 +16,9 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 +%{?sle15_python_module_pythons} Name: python-prometheus-client -Version: 0.16.0 +Version: 0.21.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 diff --git a/v0.16.0.tar.gz b/v0.16.0.tar.gz deleted file mode 100644 index e864930..0000000 --- a/v0.16.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4541efd404e34d56303ba9539a41ba3b378c1ab309a2866aafc7a3a26b5589ae -size 82473 diff --git a/v0.21.0.tar.gz b/v0.21.0.tar.gz new file mode 100644 index 0000000..55dd4db --- /dev/null +++ b/v0.21.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:35e39900b4ed06036adb0a6ff938b9b9212d0b807250857d0529be9492c4f059 +size 5564443