Date: Thursday, April 6, 2023 @ 03:05:43
Author: felixonmars
Revision: 1438198
archrelease: copy trunk to community-staging-any
Added:
python-ipyparallel/repos/community-staging-any/
python-ipyparallel/repos/community-staging-any/PKGBUILD
(from rev 1438196, python-ipyparallel/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: python-ipyparallel/repos/community-staging-any/PKGBUILD (from rev
1438196, python-ipyparallel/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-06 03:05:43 UTC (rev 1438198)
@@ -0,0 +1,39 @@
+# Maintainer: Antonio Rojas <[email protected]>
+# Contributor: Ashwin Vishnu <ashwinvis+arch at pr0t0nm4il dot com>
+# Contributor: Specter119 <specter119 AT gmail DOT com>
+# Contributor: xantares
+
+pkgname=python-ipyparallel
+_pyname=${pkgname#python-}
+pkgver=8.5.1
+pkgrel=2
+pkgdesc='Interactive Parallel Computing in Python'
+url='https://pypi.org/project/ipyparallel/'
+arch=(any)
+license=(BSD)
+source=(https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_pyname-$pkgver.tar.gz)
+depends=(jupyterlab python-psutil)
+makedepends=(python-build python-installer python-hatchling)
+checkdepends=(python-pytest-tornado python-pytest-asyncio python-tqdm)
+optdepends=('openmpi: to use the MPI Launchers in ipcluster command')
+sha256sums=('5563606ec43b89bdf05ee69a2aad1e3c63b4dca206116eefd6d9809e63ee1071')
+
+build() {
+ cd $_pyname-$pkgver
+ IPP_DISABLE_JS=1 \
+ python -m build --wheel --no-isolation --skip-dependency-check
+}
+
+check() {
+ cd $_pyname-$pkgver
+ python -m installer --destdir=test_install dist/*.whl
+ PYTHONPATH="$PWD"/test_install/`python -c "from sysconfig import get_path;
print(get_path('platlib'))"` \
+ pytest -v -k 'not test_local_ip_true_doesnt_trigger_warning' -W
ignore::DeprecationWarning
+}
+
+package() {
+ cd $_pyname-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm644 COPYING.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ mv "$pkgdir"/{usr/,}etc
+}