[arch-commits] Commit in python-pytest-mpi/repos/community-any (PKGBUILD PKGBUILD)
Bruno Pagani
archange at gemini.archlinux.org
Wed Jul 28 18:11:18 UTC 2021
Date: Wednesday, July 28, 2021 @ 18:11:18
Author: archange
Revision: 989295
archrelease: copy trunk to community-any
Added:
python-pytest-mpi/repos/community-any/PKGBUILD
(from rev 989294, python-pytest-mpi/trunk/PKGBUILD)
Deleted:
python-pytest-mpi/repos/community-any/PKGBUILD
----------+
PKGBUILD | 73 +++++++++++++++++++++++++++----------------------------------
1 file changed, 33 insertions(+), 40 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-07-28 18:11:13 UTC (rev 989294)
+++ PKGBUILD 2021-07-28 18:11:18 UTC (rev 989295)
@@ -1,40 +0,0 @@
-# Maintainer: Bruno Pagani <archange at archlinux.org>
-
-_pkg=pytest-mpi
-pkgname=python-${_pkg}
-pkgver=0.4
-pkgrel=3
-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}
-}
Copied: python-pytest-mpi/repos/community-any/PKGBUILD (from rev 989294, python-pytest-mpi/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-07-28 18:11:18 UTC (rev 989295)
@@ -0,0 +1,33 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=pytest-mpi
+pkgname=python-${_pkg}
+pkgver=0.5
+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 python-pytest-mpi)
+source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+#source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('ad392f5cd3f72ed0aeb9bb9e6f77554d79f3b81f72e3526ba60ae34fc2d4359e')
+
+build() {
+ cd ${_pkg}-${pkgver}
+ python setup.py build
+}
+
+check() {
+ cd ${_pkg}-${pkgver}
+ PYTHONPATH="${PWD}/build/lib" pytest tests -p pytester --runpytest=subprocess
+}
+
+package() {
+ cd ${_pkg}-${pkgver}
+ export PYTHONHASHSEED=0
+ 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