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

Caleb Maclennan alerque at gemini.archlinux.org
Tue Sep 14 21:57:36 UTC 2021


    Date: Tuesday, September 14, 2021 @ 21:57:36
  Author: alerque
Revision: 1014954

upgpkg: python-fonttools 4.27.0-2; add check stage

Note ufolib2 is a a bit circular, it requries fonttools, so
bootstraping these pakcages will require building fonttools
with --nocheck, then building ufolib2.

Modified:
  python-fonttools/trunk/PKGBUILD

----------+
 PKGBUILD |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-09-14 21:48:31 UTC (rev 1014953)
+++ PKGBUILD	2021-09-14 21:57:36 UTC (rev 1014954)
@@ -5,7 +5,7 @@
 
 pkgname=python-fonttools
 pkgver=4.27.0
-pkgrel=1
+pkgrel=2
 pkgdesc='A library to manipulate font files from Python'
 url='https://github.com/fonttools/fonttools'
 license=('MIT')
@@ -24,6 +24,10 @@
             'python-sympy: for symbolic font statistics analysis'
             'python-unicodedata2: for displaying the Unicode character names when dumping the cmap table with ttx'
             'python-zopfli: faster backend fom WOFF 1.0 web fonts compression')
+checkdepends=('python-brotli'
+              'python-fs'
+              'python-pytest'
+              'python-ufolib2')
 source=("https://github.com/fonttools/fonttools/archive/$pkgver/fonttools-$pkgver.zip")
 sha256sums=('e7c1b2dea4ffb2cb54cc9037d6252fd0362370d9675891b950cfae753d05e327')
 
@@ -33,6 +37,11 @@
 	python setup.py build
 }
 
+check() {
+	cd "fonttools-$pkgver"
+	PYTHONPATH=Lib pytest
+}
+
 package() {
 	cd "fonttools-$pkgver"
 	python setup.py install --root="$pkgdir" --optimize=1 --skip-build



More information about the arch-commits mailing list