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
This commit is contained in:
Matej Cepl 2021-08-27 18:54:59 +00:00 committed by Git OBS Bridge
commit 1ee59fb358
5 changed files with 232 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,138 @@
-------------------------------------------------------------------
Fri Aug 27 18:40:02 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Rename back to the correct package name (with dashes;
jsc#SLE-20812).
-------------------------------------------------------------------
Wed Jun 2 13:19:47 UTC 2021 - Michael Ströder <michael@stroeder.com>
- 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 <michael@stroeder.com>
- 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 <michael@stroeder.com>
- 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 <stefano.torresi@suse.com>
- 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 <stefano.torresi@suse.com>
- 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 <tchvatal@suse.com>
- Fix build without python2
-------------------------------------------------------------------
Thu Feb 27 12:57:33 UTC 2020 - Stefano Torresi <stefano.torresi@suse.com>
- Temporarily skip some tests failing on ppc64le due to upstream issues
See bsc#1164604
-------------------------------------------------------------------
Mon Feb 17 14:57:12 UTC 2020 - Stefano Torresi <stefano.torresi@suse.com>
- 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 <abelarbi@suse.de>
- 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 <tchvatal@suse.com>
- 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 <mcepl@suse.com>
- 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 <mcalabkova@suse.com>
- 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 <mcepl@suse.com>
- Remove superfluous devel dependency for noarch package
-------------------------------------------------------------------
Fri May 4 05:38:19 UTC 2018 - tbechtold@suse.com
- Initial packaging (version 0.2.0)

View File

@ -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

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

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