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

Bruno Pagani archange at archlinux.org
Wed Apr 8 15:47:53 UTC 2020


    Date: Wednesday, April 8, 2020 @ 15:47:53
  Author: archange
Revision: 612621

upgpkg: python-cftime 1.1.1.2-1

Also enable tests

Modified:
  python-cftime/trunk/PKGBUILD

----------+
 PKGBUILD |   11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-08 15:21:45 UTC (rev 612620)
+++ PKGBUILD	2020-04-08 15:47:53 UTC (rev 612621)
@@ -2,7 +2,7 @@
 
 _pkg=cftime
 pkgname=python-${_pkg}
-pkgver=1.1.0
+pkgver=1.1.1.2
 pkgrel=1
 pkgdesc="Time-handling functionality from python-netcdf4"
 arch=(x86_64)
@@ -10,9 +10,10 @@
 license=(MIT)
 depends=(python-numpy)
 makedepends=(cython python-setuptools)
+checkdepends=(python-pytest python-pytest-cov)
 #source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
 source=(https://github.com/Unidata/cftime/archive/v${pkgver}rel/${pkgname}-${pkgver}.tar.gz)
-sha256sums=('ed814ca8d1ef155f4fa8c3a4dcf7449922704b20ce9532c8da0c054c20ed3532')
+sha256sums=('6d429a77a160881ed0afeec2b475fd16b2ede82832cf996e94957b4261ab4fb7')
 
 build() {
     cd ${_pkg}-${pkgver}rel
@@ -19,6 +20,12 @@
     python setup.py build
 }
 
+check() {
+    cd ${_pkg}-${pkgver}rel
+    local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+    PYTHONPATH="${PWD}/build/lib.linux-${CARCH}-${python_version}" py.test
+}
+
 package() {
     cd ${_pkg}-${pkgver}rel
     python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1



More information about the arch-commits mailing list