[arch-commits] Commit in python-pytest-mpi/trunk (PKGBUILD)

Bruno Pagani archange at gemini.archlinux.org
Wed Jul 28 18:11:14 UTC 2021


    Date: Wednesday, July 28, 2021 @ 18:11:13
  Author: archange
Revision: 989294

upgpkg: python-pytest-mpi 0.5-1

Enable tests (requires itself to run though) and fix reproducibility

Modified:
  python-pytest-mpi/trunk/PKGBUILD

----------+
 PKGBUILD |   25 +++++++++----------------
 1 file changed, 9 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-07-28 17:53:28 UTC (rev 989293)
+++ PKGBUILD	2021-07-28 18:11:13 UTC (rev 989294)
@@ -2,8 +2,8 @@
 
 _pkg=pytest-mpi
 pkgname=python-${_pkg}
-pkgver=0.4
-pkgrel=3
+pkgver=0.5
+pkgrel=1
 pkgdesc="pytest plugin for working with MPI"
 arch=(any)
 url="https://pytest-mpi.readthedocs.io/"
@@ -10,31 +10,24 @@
 license=(BSD)
 depends=(python-pytest)
 makedepends=(python-setuptools)
-checkdepends=(openmpi python-mpi4py python-sybil)
+checkdepends=(openmpi python-mpi4py python-sybil python-pytest-mpi)
 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')
+sha256sums=('ad392f5cd3f72ed0aeb9bb9e6f77554d79f3b81f72e3526ba60ae34fc2d4359e')
 
-#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
-#}
+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