[arch-commits] Commit in python-spyder-kernels/repos/community-any (PKGBUILD PKGBUILD)
Bruno Pagani
archange at archlinux.org
Wed Feb 26 12:54:58 UTC 2020
Date: Wednesday, February 26, 2020 @ 12:54:58
Author: archange
Revision: 582416
archrelease: copy trunk to community-any
Added:
python-spyder-kernels/repos/community-any/PKGBUILD
(from rev 582415, python-spyder-kernels/trunk/PKGBUILD)
Deleted:
python-spyder-kernels/repos/community-any/PKGBUILD
----------+
PKGBUILD | 86 +++++++++++++++++++++++++++++++++++++++++--------------------
1 file changed, 59 insertions(+), 27 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-02-26 12:54:50 UTC (rev 582415)
+++ PKGBUILD 2020-02-26 12:54:58 UTC (rev 582416)
@@ -1,27 +0,0 @@
-# Maintainer: Muflone http://www.muflone.com/contacts/english/
-
-pkgname=python-spyder-kernels
-_pkgname='spyder-kernels'
-pkgver=0.5.2
-pkgrel=3
-pkgdesc='Jupyter Kernels for the Spyder console'
-makedepends=('python' 'python-setuptools')
-depends=('python-ipykernel' 'python-cloudpickle')
-arch=('any')
-url="https://github.com/spyder-ide/${_pkgbase}/"
-license=('MIT')
-source=("python-${_pkgname}-${pkgver}.tar.gz"::"https://github.com/spyder-ide/${_pkgname}/archive/v${pkgver}.tar.gz")
-sha256sums=('861b7547ef407e1a02f315a9f54fe55fe21b516e6d40b7be0df524a85baf664e')
-
-build() {
- cd "${_pkgname}-${pkgver}"
- python setup.py build
-}
-
-package_python-spyder-kernels() {
- cd "${_pkgname}-${pkgver}"
- python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
- # Install license file
- install -D -m 644 "LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
-
Copied: python-spyder-kernels/repos/community-any/PKGBUILD (from rev 582415, python-spyder-kernels/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-02-26 12:54:58 UTC (rev 582416)
@@ -0,0 +1,59 @@
+# Maintainer: Muflone http://www.muflone.com/contacts/english/
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=spyder-kernels
+pkgname=python-${_pkg}
+pkgver=0.5.2
+pkgrel=4
+pkgdesc="Jupyter Kernels for the Spyder console"
+arch=(any)
+url="https://github.com/spyder-ide/spyder-kernels/"
+license=(MIT)
+makedepends=(python python-setuptools)
+depends=(
+ python-ipykernel
+ python-pyzmq
+ python-jupyter_client
+ python-cloudpickle
+ python-wurlitzer
+)
+checkdepends=(
+ python-numpy
+ python-pandas
+ python-scipy
+ python-pytest
+ python-flaky
+ python-mock
+ cython
+ python-matplotlib
+ python-xarray
+)
+# No tests in pypi tarballs
+#source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz
+ spyder-kernels-old-fix-ipython-7.10-test.patch::https://github.com/spyder-ide/spyder-kernels/commit/d8b53db479df3a105ee3b908ef4af34806bcd57d.patch)
+sha256sums=('861b7547ef407e1a02f315a9f54fe55fe21b516e6d40b7be0df524a85baf664e'
+ '7568826e89ab217d6c33f84f0325ce01d9f683a913f5aee9785143a556216c1d')
+
+prepare() {
+ cd ${_pkg}-${pkgver}
+ patch -p1 -i ../spyder-kernels-old-fix-ipython-7.10-test.patch
+}
+
+build() {
+ cd ${_pkg}-${pkgver}
+ python setup.py build
+}
+
+check() {
+ cd ${_pkg}-${pkgver}
+ pytest spyder_kernels
+}
+
+package() {
+ cd ${_pkg}-${pkgver}
+ python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
+ # Install license file
+ install -Dm644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}
+
More information about the arch-commits
mailing list