[arch-commits] Commit in python-path.py/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Sat Nov 2 23:00:06 UTC 2019


    Date: Saturday, November 2, 2019 @ 23:00:06
  Author: arojas
Revision: 522395

Fix tests with pytest 5

Modified:
  python-path.py/trunk/PKGBUILD

----------+
 PKGBUILD |   11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-02 22:56:13 UTC (rev 522394)
+++ PKGBUILD	2019-11-02 23:00:06 UTC (rev 522395)
@@ -10,11 +10,18 @@
 depends=('python-importlib-metadata')
 makedepends=('python-setuptools-scm')
 checkdepends=('python-pytest-runner' 'python-pytest-flake8')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/jaraco/path.py/archive/$pkgver.tar.gz")
-sha512sums=('5906b31db753374a75e8b1a8515ed3d6ab7b394906ce8d07aea13be77d5e6db164d79c4b1dc517c8c6692b4eef57505a5c739ba54e282dcbda01f37d21e04044')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/jaraco/path.py/archive/$pkgver.tar.gz"
+         path.py-pytest5.patch::"https://github.com/jaraco/path.py/commit/02eb16f0.patch")
+sha512sums=('5906b31db753374a75e8b1a8515ed3d6ab7b394906ce8d07aea13be77d5e6db164d79c4b1dc517c8c6692b4eef57505a5c739ba54e282dcbda01f37d21e04044'
+            '357b7568865030efde348a3e8ed745285ce3644496dfab32f9e67a293f506125f95fecc3b1def67b87a4e24836a4b161f8676ae675cb6f1cc501196ba0ca44c1')
 
 export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
 
+prepare() {
+  cd path.py-$pkgver
+  patch -p1 -i ../path.py-pytest5.patch # Fix tests with pytest 5
+}
+
 build() {
   cd path.py-$pkgver
   python setup.py build



More information about the arch-commits mailing list