From 2ba10480b7e61bc26e53833343c1b892596a53c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Fri, 9 May 2025 17:12:57 +0200 Subject: [PATCH] update docs and remove packaging --- README.md | 6 ++++- debian/changelog | 5 ---- debian/control | 33 ----------------------- debian/copyright | 27 ------------------- debian/gbp.conf | 6 ----- debian/python3-prometheus-client-rus.docs | 1 - debian/rules | 16 ----------- debian/source/format | 1 - pyproject.toml | 8 +++--- test.py | 9 +++++-- 10 files changed, 16 insertions(+), 96 deletions(-) delete mode 100644 debian/changelog delete mode 100644 debian/control delete mode 100644 debian/copyright delete mode 100644 debian/gbp.conf delete mode 100644 debian/python3-prometheus-client-rus.docs delete mode 100755 debian/rules delete mode 100644 debian/source/format diff --git a/README.md b/README.md index 600d1fd..0f0ac90 100644 --- a/README.md +++ b/README.md @@ -1 +1,5 @@ -Various parts copied/adapted from https://github.com/prometheus/client_python (Apache License 2.0). +# prometheus_rus + +Library to build prometheus metric collection. + +See `test.py` for a small example. diff --git a/debian/changelog b/debian/changelog deleted file mode 100644 index 5d1e51f..0000000 --- a/debian/changelog +++ /dev/null @@ -1,5 +0,0 @@ -python-prometheus-client-rus (0.1.0) stable; urgency=medium - - * Initial release - - -- Kilian Krause Thu, 10 Dec 2019 12:24:12 +0000 diff --git a/debian/control b/debian/control deleted file mode 100644 index d43df11..0000000 --- a/debian/control +++ /dev/null @@ -1,33 +0,0 @@ -Source: python-prometheus-client-rus -Maintainer: Kilian Krause -Uploaders: Stefan Bühler -Section: python -Priority: optional -Build-Depends: debhelper-compat (= 12), -Build-Depends-Indep: dh-python, - python3-all, - python3-decorator (>= 4.0.10), - python3-pytest, - python3-setuptools, -Standards-Version: 4.4.1 - -Package: python3-prometheus-client-rus -Architecture: all -Depends: python3-decorator (>= 4.0.10-1), - ${misc:Depends}, - ${python3:Depends}, -Description: Python 3 client for the Prometheus monitoring system - This library provides an API for exporting metrics from a Python 3 application - It provides classes for the metric types, and an HTTP server to expose the - metrics to Prometheus. - . - When using Linux, the process CPU, RAM, file descriptor usage and start time - will also be exported. - . - Along with the HTTP server to expose metrics, you can also write the metrics - to a text file to be exported by the prometheus-node-exporter, or push them to - the prometheus-pushgateway. - . - This library also includes support for re-exporting Graphite metrics to - Prometheus, custom collectors to proxy metrics for other systems and a parser - for the Prometheus text format. diff --git a/debian/copyright b/debian/copyright deleted file mode 100644 index 63393e2..0000000 --- a/debian/copyright +++ /dev/null @@ -1,27 +0,0 @@ -Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ -Upstream-Name: Prometheus Python Client (Uni Stuttgart version) -Source: https://github.tik.uni-stuttgart.de/NKS/python-prometheus - -Files: * -Copyright: 2019 Stefan Bühler -License: Apache-2.0 - -License: Apache-2.0 - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - . - https://www.apache.org/licenses/LICENSE-2.0 - . - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - . - On Debian systems, the complete text of the Apache version 2.0 license - can be found in "/usr/share/common-licenses/Apache-2.0". diff --git a/debian/gbp.conf b/debian/gbp.conf deleted file mode 100644 index 2f77e59..0000000 --- a/debian/gbp.conf +++ /dev/null @@ -1,6 +0,0 @@ -[DEFAULT] -debian-branch = master - -[buildpackage] -dist = DEP14 -upstream-tag = upstream/%(version)s diff --git a/debian/python3-prometheus-client-rus.docs b/debian/python3-prometheus-client-rus.docs deleted file mode 100644 index b43bf86..0000000 --- a/debian/python3-prometheus-client-rus.docs +++ /dev/null @@ -1 +0,0 @@ -README.md diff --git a/debian/rules b/debian/rules deleted file mode 100755 index 96cdd5e..0000000 --- a/debian/rules +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/make -f - -export DH_VERBOSE=1 -export PYBUILD_NAME=prometheus-client-rus -export PYBUILD_SYSTEM=distutils - -# Set these, such that pybuild does not set them -export http_proxy= -export https_proxy= - -%: - dh $@ --with python3 --buildsystem=pybuild - -override_dh_auto_test: - # no test for now - true diff --git a/debian/source/format b/debian/source/format deleted file mode 100644 index 89ae9db..0000000 --- a/debian/source/format +++ /dev/null @@ -1 +0,0 @@ -3.0 (native) diff --git a/pyproject.toml b/pyproject.toml index 1766f2c..985ba95 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,14 +6,14 @@ build-backend = "flit_core.buildapi" name = "prometheus_rus" version = "0.2.0" authors = [ - {name = "Stefan Bühler", email = "stefan.buehler@tik.uni-stuttgart.de"}, + {name = "Stefan Bühler", email = "stefan.buehler@tik.uni-stuttgart.de"}, ] +description = "Library to build prometheus metric collection." license = {file = "LICENSE"} classifiers = [ - "Private :: Do Not Upload", - "License :: OSI Approved :: MIT License", + "Private :: Do Not Upload", + "License :: OSI Approved :: MIT License", ] -dynamic = ["version", "description"] requires-python = "~=3.11" dependencies = [] diff --git a/test.py b/test.py index 359f719..5a08e50 100644 --- a/test.py +++ b/test.py @@ -1,4 +1,9 @@ -from prometheus_rus import CounterFamily, GaugeFamily, SummaryFamily, Registry +from prometheus_rus import ( + CounterFamily, + GaugeFamily, + Registry, + SummaryFamily, +) registry = Registry() @@ -24,4 +29,4 @@ s.observe(1, timestamp=None) s.observe(2, timestamp=None) s.observe(3) -print(registry.collect()) +print(registry.collect(), end="")