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

Eli Schwartz eschwartz at archlinux.org
Tue Jul 3 05:04:22 UTC 2018


    Date: Tuesday, July 3, 2018 @ 05:04:22
  Author: eschwartz
Revision: 350386

upgpkg: python-llfuse 1.3.4-3

upstream release
enable tests, catch the next FS#51030 style issue early
fix build with attr 2.4.48
python 3.7 rebuild (and related fixes to cython, -Werror)

Modified:
  python-llfuse/trunk/PKGBUILD

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++----------
 1 file changed, 32 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-07-03 05:03:51 UTC (rev 350385)
+++ PKGBUILD	2018-07-03 05:04:22 UTC (rev 350386)
@@ -3,28 +3,50 @@
 
 pkgbase=python-llfuse
 pkgname=(python-llfuse python2-llfuse)
-pkgver=1.3.2
-pkgrel=2
+pkgver=1.3.4
+pkgrel=3
 pkgdesc="A set of Python bindings for the low level FUSE API."
 arch=('x86_64')
 url="https://bitbucket.org/nikratio/python-llfuse/"
 license=('LGPL')
 depends=('fuse2')
-makedepends=('python-setuptools' 'python2-setuptools')
+makedepends=('python-setuptools' 'python2-setuptools' 'python2-contextlib2' 'cython')
+checkdepends=('python-pytest' 'python2-pytest')
 options=(!emptydirs)
-source=("https://bitbucket.org/nikratio/python-llfuse/downloads/llfuse-${pkgver}.tar.bz2")
-md5sums=('f4801c5f80ccb04017044b151643e05f')
+source=("https://bitbucket.org/nikratio/python-llfuse/downloads/llfuse-${pkgver}.tar.bz2"
+        "https://github.com/python-llfuse/python-llfuse/commit/dfb7d2ba3db8131cd348800c8d91df11bf930324.patch"
+        "llfuse-xattr-2.4.48.patch::https://github.com/python-llfuse/python-llfuse/pull/3.patch")
+md5sums=('43a123c46d5438f15cd6bcafa16a0094'
+         '398b6c1b73427454d8839788426de7a9'
+         'aba45413f7426ae8e93b654ebbfb9dc0')
 
+prepare() {
+  cd "${srcdir}/llfuse-${pkgver}"
+
+  patch -p1 -i ../llfuse-xattr-2.4.48.patch
+  # don't use -Werror
+  patch -p1 -i ../dfb7d2ba3db8131cd348800c8d91df11bf930324.patch
+
+  python setup.py build_cython
+}
+
 build() {
-  cp -a "${srcdir}/llfuse-${pkgver}"{,-python2}
+  cd "${srcdir}/llfuse-${pkgver}"
 
-  cd "${srcdir}/llfuse-${pkgver}"
   python setup.py build
-
-  cd "${srcdir}/llfuse-${pkgver}"-python2
   python2 setup.py build
 }
 
+check() {
+  cd "${srcdir}/llfuse-${pkgver}"
+
+  set -x
+  pythonpath=("$PWD/build/lib.linux-$CARCH"-3* "$PWD/build/lib.linux-$CARCH"-2*)
+  PYTHONPATH="${pythonpath[0]}" python -m pytest
+  PYTHONPATH="${pythonpath[1]}" python2 -m pytest
+  set +x
+}
+
 package_python-llfuse() {
   depends+=(python)
 
@@ -35,6 +57,6 @@
 package_python2-llfuse() {
   depends+=(python2-contextlib2)
 
-  cd "${srcdir}/llfuse-${pkgver}"-python2
+  cd "${srcdir}/llfuse-${pkgver}"
   python2 setup.py install --root="$pkgdir" --optimize=1
 }



More information about the arch-commits mailing list