[arch-commits] Commit in python-param/repos/community-any (PKGBUILD PKGBUILD)

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


    Date: Wednesday, April 8, 2020 @ 16:16:19
  Author: archange
Revision: 612630

archrelease: copy trunk to community-any

Added:
  python-param/repos/community-any/PKGBUILD
    (from rev 612629, python-param/trunk/PKGBUILD)
Deleted:
  python-param/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   72 +++++++++++++++++++++++++++----------------------------------
 1 file changed, 32 insertions(+), 40 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-08 16:16:11 UTC (rev 612629)
+++ PKGBUILD	2020-04-08 16:16:19 UTC (rev 612630)
@@ -1,40 +0,0 @@
-# Maintainer: Bruno Pagani <archange at archlinux.org>
-
-_pkg=param
-pkgbase=python-${_pkg,,}
-pkgname=("python-${_pkg,,}" "python2-${_pkg,,}")
-pkgver=1.9.2
-pkgrel=3
-pkgdesc="Make your Python code clearer and more reliable by declaring Parameters"
-arch=(any)
-url="https://param.pyviz.org/"
-license=(BSD)
-makedepends=(python-setuptools python2-setuptools)
-source=("https://files.pythonhosted.org/packages/source/p/${_pkg}/${_pkg}-${pkgver}.tar.gz")
-sha256sums=('a2dcb07c6a4ff48bade69bb5d30d84a96911a7e9dcb76b6de975453f933332f8')
-
-prepare() {
-    cp -a ${_pkg}-${pkgver}{,-py2}
-}
-
-build() {
-    cd ${_pkg}-${pkgver}
-    python setup.py build
-
-    cd ../${_pkg}-${pkgver}-py2
-    python2 setup.py build
-}
-
-package_python-param() {
-    cd ${_pkg}-${pkgver}
-    python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
-
-    install -Dm644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}
-}
-
-package_python2-param() {
-    cd ${_pkg}-${pkgver}-py2
-    python2 setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
-
-    install -Dm644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}
-}

Copied: python-param/repos/community-any/PKGBUILD (from rev 612629, python-param/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-04-08 16:16:19 UTC (rev 612630)
@@ -0,0 +1,32 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=param
+pkgname=python-${_pkg}
+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)
+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}
+    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
+    install -Dm644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}



More information about the arch-commits mailing list