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

Bruno Pagani archange at archlinux.org
Wed Apr 8 16:16:12 UTC 2020


    Date: Wednesday, April 8, 2020 @ 16:16:11
  Author: archange
Revision: 612629

upgpkg: python-param 1.9.3-1

Also enable tests

Modified:
  python-param/trunk/PKGBUILD

----------+
 PKGBUILD |   16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-08 16:02:33 UTC (rev 612628)
+++ PKGBUILD	2020-04-08 16:16:11 UTC (rev 612629)
@@ -2,15 +2,18 @@
 
 _pkg=param
 pkgname=python-${_pkg}
-pkgver=1.9.2
-pkgrel=3
+pkgver=1.9.3
+pkgrel=1
 pkgdesc="Make your Python code clearer and more reliable by declaring Parameters"
 arch=(any)
 url="https://param.holoviz.org/"
 license=(BSD)
 makedepends=(python-setuptools)
-source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
-sha256sums=('a2dcb07c6a4ff48bade69bb5d30d84a96911a7e9dcb76b6de975453f933332f8')
+checkdepends=(python-nose python-numpy python-pandas ipython)
+# No tests in Pypi tarballs
+#source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+source=(https://github.com/holoviz/param/archive/v${pkgver}/${_pkg}-${pkgver}.tar.gz)
+sha256sums=('f58d8edd4e42d27978958999bc4a8c94019c0c0cb116579c66e1533b8cfc1cb5')
 
 build() {
     cd ${_pkg}-${pkgver}
@@ -17,6 +20,11 @@
     python setup.py build
 }
 
+check() {
+    cd ${_pkg}-${pkgver}
+    PARAM_TEST_NUMPY=1 PARAM_TEST_PANDAS=1 PARAM_TEST_PANDAS=1 nosetests
+}
+
 package() {
     cd ${_pkg}-${pkgver}
     python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1



More information about the arch-commits mailing list