diff --git a/python-prometheus-client.changes b/python-prometheus-client.changes index e9b9e32..b384028 100644 --- a/python-prometheus-client.changes +++ b/python-prometheus-client.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +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..e026de7 100644 --- a/python-prometheus-client.spec +++ b/python-prometheus-client.spec @@ -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 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.17.0.tar.gz b/v0.17.0.tar.gz new file mode 100644 index 0000000..4f8c93d --- /dev/null +++ b/v0.17.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e778a8bdc7fcb9932350dafff4221c2368e4dcaee96541eecd0962b1de689ede +size 82848