From bb6a3b73bafada40b03955070216ae206d16050c Mon Sep 17 00:00:00 2001 From: Kilian Krause Date: Tue, 10 Dec 2019 10:38:03 +0100 Subject: [PATCH] import debian packaging --- debian/changelog | 5 ++ debian/control | 59 +++++++++++++++++++++++ debian/copyright | 27 +++++++++++ debian/gbp.conf | 6 +++ debian/python-prometheus-client-rus.docs | 1 + debian/python3-prometheus-client-rus.docs | 1 + debian/rules | 11 +++++ debian/source/format | 1 + 8 files changed, 111 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/gbp.conf create mode 100644 debian/python-prometheus-client-rus.docs create mode 100644 debian/python3-prometheus-client-rus.docs create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..5d1e51f --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +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 new file mode 100644 index 0000000..23f7ed3 --- /dev/null +++ b/debian/control @@ -0,0 +1,59 @@ +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, + python-all, + python-concurrent.futures, + python-decorator (>= 4.0.10), + python-pytest, + python-setuptools, + python3-all, + python3-decorator (>= 4.0.10), + python3-pytest, + python3-setuptools, +Standards-Version: 4.4.1 + +Package: python-prometheus-client-rus +Architecture: all +Depends: python-decorator (>= 4.0.10-1), + ${misc:Depends}, + ${python:Depends}, +Description: Python 2 client for the Prometheus monitoring system + This library provides an API for exporting metrics from a Python 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. + +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 new file mode 100644 index 0000000..63393e2 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,27 @@ +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 new file mode 100644 index 0000000..2f77e59 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,6 @@ +[DEFAULT] +debian-branch = master + +[buildpackage] +dist = DEP14 +upstream-tag = upstream/%(version)s diff --git a/debian/python-prometheus-client-rus.docs b/debian/python-prometheus-client-rus.docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/debian/python-prometheus-client-rus.docs @@ -0,0 +1 @@ +README.md diff --git a/debian/python3-prometheus-client-rus.docs b/debian/python3-prometheus-client-rus.docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/debian/python3-prometheus-client-rus.docs @@ -0,0 +1 @@ +README.md diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..deb8709 --- /dev/null +++ b/debian/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f + +export DH_VERBOSE=1 +export PYBUILD_NAME=prometheus-client-rus + +# Set these, such that pybuild does not set them +export http_proxy= +export https_proxy= + +%: + dh $@ --with python2,python3 --buildsystem=pybuild diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native)