[arch-commits] Commit in python-prometheus_client/trunk (PKGBUILD)

Jelle van der Waa jelle at archlinux.org
Sat Jul 11 13:16:35 UTC 2020


    Date: Saturday, July 11, 2020 @ 13:16:34
  Author: jelle
Revision: 391645

Make package reproducible by not compiling test bytecode

Modified:
  python-prometheus_client/trunk/PKGBUILD

----------+
 PKGBUILD |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-11 10:50:26 UTC (rev 391644)
+++ PKGBUILD	2020-07-11 13:16:34 UTC (rev 391645)
@@ -2,7 +2,7 @@
 
 pkgname=python-prometheus_client
 pkgver=0.8.0
-pkgrel=1
+pkgrel=2
 
 pkgdesc="Prometheus instrumentation library for Python applications"
 url="https://github.com/prometheus/client_python"
@@ -24,7 +24,8 @@
 
 check() {
   cd client_python-$pkgver
-  python setup.py test
+  # Make reproducible by not writing pyc files for test files. (rebuilderd does not run tests)
+  PYTHONDONTWRITEBYTECODE=1 python setup.py test
 }
 
 package() {



More information about the arch-commits mailing list