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

Bruno Pagani archange at gemini.archlinux.org
Sun Mar 20 12:44:32 UTC 2022


    Date: Sunday, March 20, 2022 @ 12:44:31
  Author: archange
Revision: 1163467

upgpkg: python-cftime 1.6.0-1

Modified:
  python-cftime/trunk/PKGBUILD

----------+
 PKGBUILD |   25 +++++++++++++------------
 1 file changed, 13 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-03-20 12:09:21 UTC (rev 1163466)
+++ PKGBUILD	2022-03-20 12:44:31 UTC (rev 1163467)
@@ -2,8 +2,8 @@
 
 _pkg=cftime
 pkgname=python-${_pkg}
-pkgver=1.5.1
-pkgrel=3
+pkgver=1.6.0
+pkgrel=1
 pkgdesc="Time-handling functionality from python-netcdf4"
 arch=(x86_64)
 url="https://unidata.github.io/cftime"
@@ -10,24 +10,25 @@
 license=(MIT)
 depends=(python-numpy)
 makedepends=(cython python-setuptools)
-checkdepends=(python-pytest python-pytest-cov)
+checkdepends=(python-pytest)
 #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=('b42acd1017242e2885377ed39be7c16100ddcde35dfab88d5db8bd79cb78aa0f')
+sha256sums=('53fd3204c89d1e20e599995c074c92d7cbed09962252ad842dd90ca2f9ce5f5f')
 
 build() {
-    cd ${_pkg}-${pkgver}rel
-    python setup.py build
+  cd ${_pkg}-${pkgver}rel
+  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
+  cd ${_pkg}-${pkgver}rel
+  sed -i '/--cov/d' setup.cfg
+  local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+  PYTHONPATH="${PWD}"/build/lib.linux-${CARCH}-${python_version} pytest -vv --color=yes
 }
 
 package() {
-    cd ${_pkg}-${pkgver}rel
-    python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
-    install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+  cd ${_pkg}-${pkgver}rel
+  python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
+  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
 }



More information about the arch-commits mailing list