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

Felix Yan felixonmars at archlinux.org
Fri May 8 11:41:15 UTC 2020


    Date: Friday, May 8, 2020 @ 11:41:14
  Author: felixonmars
Revision: 625601

upgpkg: python-fields 5.0.0-7

fix checkdepends

Modified:
  python-fields/trunk/PKGBUILD

----------+
 PKGBUILD |   16 ++++++----------
 1 file changed, 6 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-08 11:12:39 UTC (rev 625600)
+++ PKGBUILD	2020-05-08 11:41:14 UTC (rev 625601)
@@ -3,20 +3,19 @@
 pkgbase=python-fields
 pkgname=('python-fields' 'python2-fields')
 pkgver=5.0.0
-pkgrel=6
+pkgrel=7
 arch=('any')
 pkgdesc='A totally different take on container boilerplate'
 url='https://github.com/ionelmc/python-fields'
 license=('BSD')
 makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest-benchmark' 'python2-pytest-benchmark'
-              'python-pytest-runner' 'python2-pytest-runner' 'python-attrs'
-              'python2-attrs' 'python-characteristic' 'python2-characteristic')
+checkdepends=('python-pytest' 'python2-pytest' 'python-attrs' 'python2-attrs'
+              'python-characteristic' 'python2-characteristic')
 source=("$pkgbase-$pkgver.tar.gz::https://github.com/ionelmc/python-fields/archive/v$pkgver.tar.gz")
 sha512sums=('feaba23b98271936d6dae20b1001978483c0fe89ccf217637fac536ae5814c2c02bac1c3ddc2a86dc0d2419a3b3658871018c0ea4b7905e1c2649aa905b8e5a3')
 
 prepare() {
-  sed -i 's/\[pytest\]/[tool:pytest]/' python-fields-$pkgver/setup.cfg 
+  sed -i 's/\[pytest\]/[tool:pytest]/;s/--benchmark-disable//' python-fields-$pkgver/setup.cfg 
   cp -a python-fields-$pkgver{,-py2}
 }
 
@@ -29,14 +28,11 @@
 }
 
 check() {
-  # To workaround an error in doctest
-  export LC_CTYPE=en_US.UTF-8
-
   cd "$srcdir"/python-fields-$pkgver
-  python setup.py pytest
+  python -m pytest --deselect tests/test_perf.py
 
   cd "$srcdir"/python-fields-$pkgver-py2
-  python2 setup.py pytest
+  python2 -m pytest --deselect tests/test_perf.py
 }
 
 package_python-fields() {



More information about the arch-commits mailing list