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

Jonas Witschel diabonas at archlinux.org
Wed Jul 22 14:27:56 UTC 2020


    Date: Wednesday, July 22, 2020 @ 14:27:56
  Author: diabonas
Revision: 664840

upgpkg: python-pygments 2.6.1-3: improve reproducibility of pyc files

Use a fixed PYTHONHASHSEED to generate deterministic bytecode files and avoid
adding bytecode files to the package in check() that are not generated if the
test suite is not run.

Modified:
  python-pygments/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-22 14:10:41 UTC (rev 664839)
+++ PKGBUILD	2020-07-22 14:27:56 UTC (rev 664840)
@@ -3,7 +3,7 @@
 
 pkgname=python-pygments
 pkgver=2.6.1
-pkgrel=2
+pkgrel=3
 pkgdesc="Python syntax highlighter"
 arch=('any')
 url="https://pygments.org/"
@@ -19,12 +19,13 @@
 
 build() {
   cd "$srcdir/Pygments-$pkgver"
+  export PYTHONHASHSEED=0
   make -C doc html
 }
 
 check() {
   cd "$srcdir/Pygments-$pkgver"
-  pytest
+  PYTHONDONTWRITEBYTECODE=1 pytest
 }
 
 package() {


More information about the arch-commits mailing list