[arch-commits] Commit in python-cftime/repos/community-x86_64 (PKGBUILD PKGBUILD)

Bruno Pagani archange at archlinux.org
Wed Apr 8 15:48:00 UTC 2020


    Date: Wednesday, April 8, 2020 @ 15:47:59
  Author: archange
Revision: 612622

archrelease: copy trunk to community-x86_64

Added:
  python-cftime/repos/community-x86_64/PKGBUILD
    (from rev 612621, python-cftime/trunk/PKGBUILD)
Deleted:
  python-cftime/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   59 +++++++++++++++++++++++++++++++++--------------------------
 1 file changed, 33 insertions(+), 26 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-08 15:47:53 UTC (rev 612621)
+++ PKGBUILD	2020-04-08 15:47:59 UTC (rev 612622)
@@ -1,26 +0,0 @@
-# Maintainer: Bruno Pagani <archange at archlinux.org>
-
-_pkg=cftime
-pkgname=python-${_pkg}
-pkgver=1.1.0
-pkgrel=1
-pkgdesc="Time-handling functionality from python-netcdf4"
-arch=(x86_64)
-url="https://unidata.github.io/cftime"
-license=(MIT)
-depends=(python-numpy)
-makedepends=(cython python-setuptools)
-#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')
-
-build() {
-    cd ${_pkg}-${pkgver}rel
-    python setup.py build
-}
-
-package() {
-    cd ${_pkg}-${pkgver}rel
-    python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
-    install -Dm644 COPYING -t "${pkgdir}"/usr/share/licenses/${pkgname}
-}

Copied: python-cftime/repos/community-x86_64/PKGBUILD (from rev 612621, python-cftime/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-04-08 15:47:59 UTC (rev 612622)
@@ -0,0 +1,33 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=cftime
+pkgname=python-${_pkg}
+pkgver=1.1.1.2
+pkgrel=1
+pkgdesc="Time-handling functionality from python-netcdf4"
+arch=(x86_64)
+url="https://unidata.github.io/cftime"
+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=('6d429a77a160881ed0afeec2b475fd16b2ede82832cf996e94957b4261ab4fb7')
+
+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
+}
+
+package() {
+    cd ${_pkg}-${pkgver}rel
+    python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
+    install -Dm644 COPYING -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}


More information about the arch-commits mailing list