[arch-commits] Commit in python-progressbar/trunk (PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Thu Dec 10 20:51:47 UTC 2020
Date: Thursday, December 10, 2020 @ 20:51:47
Author: jelle
Revision: 773082
Make package reproducible by not installing test pyc files
Modified:
python-progressbar/trunk/PKGBUILD
----------+
PKGBUILD | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-12-10 20:46:06 UTC (rev 773081)
+++ PKGBUILD 2020-12-10 20:51:47 UTC (rev 773082)
@@ -6,7 +6,7 @@
pkgname=python-progressbar
pkgdesc="A progress bar for Python"
pkgver=3.53.1
-pkgrel=4
+pkgrel=5
url="https://github.com/WoLpH/python-progressbar"
license=('BSD')
arch=('any')
@@ -28,7 +28,6 @@
}
build() {
- export PYTHONHASHSEED=0
cd "${pkgname}-${pkgver}"
python setup.py build
}
@@ -36,7 +35,8 @@
check() {
cd "${pkgname}-${pkgver}"
export PYTHONPATH="${PWD}/build:${PYTHONPATH}"
- pytest -v
+ # Don't write pyc files of tests so the package is reproducible.
+ PYTHONDONTWRITEBYTECODE=1 pytest -v
}
package() {
More information about the arch-commits
mailing list