[arch-commits] Commit in python-prometheus_client/repos (2 files)

Jelle van der Waa jelle at archlinux.org
Fri Nov 20 20:14:57 UTC 2020


    Date: Friday, November 20, 2020 @ 20:14:56
  Author: jelle
Revision: 401576

archrelease: copy trunk to community-staging-any

Added:
  python-prometheus_client/repos/community-staging-any/
  python-prometheus_client/repos/community-staging-any/PKGBUILD
    (from rev 401575, python-prometheus_client/trunk/PKGBUILD)

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Copied: python-prometheus_client/repos/community-staging-any/PKGBUILD (from rev 401575, python-prometheus_client/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-20 20:14:56 UTC (rev 401576)
@@ -0,0 +1,34 @@
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+
+pkgname=python-prometheus_client
+pkgver=0.9.0
+pkgrel=1
+
+pkgdesc="Prometheus instrumentation library for Python applications"
+url="https://github.com/prometheus/client_python"
+arch=('any')
+license=('APACHE')
+
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-twisted' 'python-pytest')
+
+source=(client_python-$pkgver.tar.gz::https://github.com/prometheus/client_python/archive/v${pkgver}.tar.gz)
+
+sha512sums=('1d68ca35169972c50bb56ede88c47408ee27b3e795fcf03798313aed2dbc5db5532fe6886998c118258b76e431c6e49aa0ac19b9206cad63711901497258aaa5')
+
+build() {
+  cd client_python-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd client_python-$pkgver
+  # Make reproducible by not writing pyc files for test files. (rebuilderd does not run tests)
+  PYTHONDONTWRITEBYTECODE=1 python setup.py test
+}
+
+package() {
+  cd client_python-$pkgver
+  python setup.py install --root="$pkgdir" --skip-build --optimize=1
+}



More information about the arch-commits mailing list