[arch-commits] Commit in python-pytest-mpi/repos (2 files)

Bruno Pagani archange at archlinux.org
Sat Oct 31 13:24:18 UTC 2020


    Date: Saturday, October 31, 2020 @ 13:24:17
  Author: archange
Revision: 737651

archrelease: copy trunk to community-any

Added:
  python-pytest-mpi/repos/community-any/
  python-pytest-mpi/repos/community-any/PKGBUILD
    (from rev 737650, python-pytest-mpi/trunk/PKGBUILD)

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

Copied: python-pytest-mpi/repos/community-any/PKGBUILD (from rev 737650, python-pytest-mpi/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-10-31 13:24:17 UTC (rev 737651)
@@ -0,0 +1,40 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=pytest-mpi
+pkgname=python-${_pkg}
+pkgver=0.4
+pkgrel=1
+pkgdesc="pytest plugin for working with MPI"
+arch=(any)
+url="https://pytest-mpi.readthedocs.io/"
+license=(BSD)
+depends=(python-pytest)
+makedepends=(python-setuptools)
+checkdepends=(openmpi python-mpi4py python-sybil)
+source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+#        pytest-mpi-pytest-6.patch::https://patch-diff.githubusercontent.com/raw/aragilar/pytest-mpi/pull/12.patch)
+#source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('8879c82a9e837bdb49a1675858a13ef22e61e379c983fd37491f876c299b8b31')
+#            '0803b5c675206dd36056bcd91dfbd234f4147afe76cf6dd124e36ec358c49557')
+
+#prepare() {
+#  cd ${_pkg}-${pkgver}
+#  patch -Np1 -i ../pytest-mpi-pytest-6.patch
+#}
+
+build() {
+  cd ${_pkg}-${pkgver}
+  python setup.py build
+}
+
+# Errors everywhere, similar to https://github.com/browsertron/pytest-parallel/issues/62
+#check() {
+#  cd ${_pkg}-${pkgver}
+#  pytest tests -p pytester --runpytest=subprocess
+#}
+
+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