From 1ee59fb3583b36c8754d284679c87c5fd4e3961fe1898424e4913349ce388e03 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 27 Aug 2021 18:54:59 +0000 Subject: [PATCH] Accepting request 914670 from home:mcepl:branches:devel:languages:python - Rename back to the correct package name (with dashes; jsc#SLE-20812). OBS-URL: https://build.opensuse.org/request/show/914670 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-prometheus-client?expand=0&rev=1 --- .gitattributes | 23 ++++++ .gitignore | 1 + python-prometheus-client.changes | 138 +++++++++++++++++++++++++++++++ python-prometheus-client.spec | 67 +++++++++++++++ v0.11.0.tar.gz | 3 + 5 files changed, 232 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-prometheus-client.changes create mode 100644 python-prometheus-client.spec create mode 100644 v0.11.0.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-prometheus-client.changes b/python-prometheus-client.changes new file mode 100644 index 0000000..7ae6f8f --- /dev/null +++ b/python-prometheus-client.changes @@ -0,0 +1,138 @@ +------------------------------------------------------------------- +Fri Aug 27 18:40:02 UTC 2021 - Matej Cepl + +- Rename back to the correct package name (with dashes; + jsc#SLE-20812). + +------------------------------------------------------------------- +Wed Jun 2 13:19:47 UTC 2021 - Michael Ströder + +- Update to upstream 0.11.0 release + * [CHANGE] Specify that the labelvalues argument on metric constructors + is internal by renaming it to _labelvalues. If you are affected by this + change, it is likely that the metric was not being registered. #660 + * [BUGFIX] write_to_textfile will overwrite files in windows. If using + python 3.4 or newer the replace will be atomic. #650 + +------------------------------------------------------------------- +Thu Apr 8 17:16:38 UTC 2021 - Michael Ströder + +- Update to upstream 0.10.1 release + * [BUGFIX] Support lowercase prometheus_multiproc_dir environment + variable in mark_process_dead. + +------------------------------------------------------------------- +Mon Apr 5 23:44:20 UTC 2021 - Michael Ströder + +- Update to upstream 0.10.0 release + * [CHANGE] Python 2.6 is no longer supported. #592 + * [CHANGE] The prometheus_multiproc_dir environment variable is + deprecated in favor of PROMETHEUS_MULTIPROC_DIR. #624 + * [FEATURE] Follow redirects when pushing to Pushgateway using + passthrough_redirect_handler. #622 + * [FEATURE] Metrics support a clear() method to remove all children. #642 + * [ENHANCEMENT] Tag support in GraphiteBridge. #618 + +------------------------------------------------------------------- +Fri Nov 20 12:56:42 UTC 2020 - Stefano Torresi + +- Update to upstream 0.9.0 release + * [ENHANCEMENT] Add support for python3.9 (#600) + * [ENHANCEMENT] Various updates for latest OpenMetrics draft spec (#576 #577) + +------------------------------------------------------------------- +Tue May 26 08:30:50 UTC 2020 - Stefano Torresi + +- Update to upstream 0.8.0 release + * Also disable Twisted build requirement on older code streams due to dependency issues + +------------------------------------------------------------------- +Mon Apr 20 10:53:52 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + +------------------------------------------------------------------- +Thu Feb 27 12:57:33 UTC 2020 - Stefano Torresi + +- Temporarily skip some tests failing on ppc64le due to upstream issues + See bsc#1164604 + +------------------------------------------------------------------- +Mon Feb 17 14:57:12 UTC 2020 - Stefano Torresi + +- Add Provides and Obsoletes fields to correctly supersede SUSE:SLE-15-SP2:GA/python-prometheus-client + +------------------------------------------------------------------- +Mon Jul 29 11:39:05 UTC 2019 - Ayoub Belarbi + +- Require python-futures instead of python2-futures for building for both sle12 and sle15 + +------------------------------------------------------------------- +Tue Jul 23 11:11:01 UTC 2019 - Tomáš Chvátal + +- Update to 0.7.1: + * [BUGFIX] multiprocess: don't crash on missing gauge_live/sum files (#424) + * [BUGFIX] correctly bind method on Python 2.x (#403) + +------------------------------------------------------------------- +Thu Jun 20 14:57:11 UTC 2019 - Matej Cepl + +- Remove forgotten v0.6.0.tar.gz tarball. + +------------------------------------------------------------------- +Wed Jun 19 13:59:15 UTC 2019 - pgajdos@suse.com + +- version update to 0.7.0 + * Multiprocess exposition speed boost (#421) + * optimize openmetrics text parsing (~4x perf) (#402) + * Add python3.7 support (#418) + * Change exemplar length limit to be only for label names+values (#397) + * Disable gcCollector for pypy (#380) + +------------------------------------------------------------------- +Thu May 23 12:32:36 UTC 2019 - Marketa Calabkova + +- update to version 0.6.0 + * Better exceptions on exposition failure + * Fix deadlock in gcCollector, metrics are now different + * Fix thread leak in Python 3.7 + * parser: ensure samples are of type Sample + 0.5.0 + * Be more resilient to certain file corruptions + * Permit subclassing of MetricsHandler + * Updates based on latest OpenMetrics draft spec discussions + * In multiprocess mode, ensure that metrics initialise to the + correct file + * Avoid re-entrant calls to GC collector's callback + 0.4.? + * Disable GCCollector in multiprocess mode to prevent a deadlock + * Fix OpenMetrics http negotiation handling + * Counter time series will now always be exposed with _total, and + counter metrics will have a _total suffix stripped. This is as + the internal data model is now OpenMetrics, rather than + Prometheus Text Format + * Samples now use a namedtuple + * Add OpenMetrics exposition and parser + * Add Info, Stateset, Enum, GaugeHistogram support for OpenMetrics + * Add timestamp support for Prometheus text format exposition + * Add garbage collection metrics + * If reading multiprocess file, open it readonly. + * Fix bug in WSGI app code. + * Write to multiprocess files directly + 0.3.? + * Fix handing of escaping in parser + * Fix concurrency issues with timers + * 4.5x speedup in parser + * Performance improvements for multiproc mode + * Fix FD leak in multiproc mode +- Taking tarball from git because of the tests + +------------------------------------------------------------------- +Tue Dec 4 12:51:44 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Fri May 4 05:38:19 UTC 2018 - tbechtold@suse.com + +- Initial packaging (version 0.2.0) diff --git a/python-prometheus-client.spec b/python-prometheus-client.spec new file mode 100644 index 0000000..1a2ab9c --- /dev/null +++ b/python-prometheus-client.spec @@ -0,0 +1,67 @@ +# +# spec file for package python-prometheus-client +# +# Copyright (c) 2021 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 +Name: python-prometheus-client +Version: 0.11.0 +Release: 0 +Summary: Python client for the Prometheus monitoring system +License: Apache-2.0 +Group: Development/Languages/Python +URL: https://github.com/prometheus/client_python +Source: https://github.com/prometheus/client_python/archive/v%{version}.tar.gz +%if 0%{suse_version} >= 1550 +# we disable testing the optional Twisted integration on older versions because that dependency tree is troublesome +BuildRequires: %{python_module Twisted} +%endif +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Recommends: python-Twisted +Provides: python-prometheus_client = %{version}-%{release} +Obsoletes: python-prometheus_client < %{version}-%{release} +BuildArch: noarch +%if %{with python2} +BuildRequires: python-futures +%endif +%python_subpackages + +%description +The official Python 2 and 3 client for Prometheus. + +%prep +%setup -q -n client_python-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/* + +%changelog diff --git a/v0.11.0.tar.gz b/v0.11.0.tar.gz new file mode 100644 index 0000000..229d536 --- /dev/null +++ b/v0.11.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:68dad62135c7b58126e4a5c712de7459bcc7bb10338f8ac19f631e8873aefee3 +size 72272