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

Lukas Fleischer lfleischer at archlinux.org
Sun Mar 3 12:24:01 UTC 2019


    Date: Sunday, March 3, 2019 @ 12:24:00
  Author: lfleischer
Revision: 437451

upgpkg: python-llfuse 1.3.6-1

* Upstream update.
* Remove Python 2 support.

Modified:
  python-llfuse/trunk/PKGBUILD

----------+
 PKGBUILD |   37 ++++++++++---------------------------
 1 file changed, 10 insertions(+), 27 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-03 12:20:30 UTC (rev 437450)
+++ PKGBUILD	2019-03-03 12:24:00 UTC (rev 437451)
@@ -1,48 +1,31 @@
 # Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
 # Contributor: Brendan MacDonell <macdonellba at gmail dot com>
 
-pkgbase=python-llfuse
-pkgname=(python-llfuse python2-llfuse)
-pkgver=1.3.5
+pkgname=python-llfuse
+pkgver=1.3.6
 pkgrel=1
 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' 'python2-contextlib2' 'cython')
-checkdepends=('python-pytest' 'python2-pytest')
+depends=('python' 'fuse2')
+makedepends=('python-setuptools' 'cython')
+checkdepends=('python-pytest')
 options=(!emptydirs)
-source=("https://bitbucket.org/nikratio/python-llfuse/downloads/llfuse-${pkgver}.tar.bz2")
-md5sums=('9fbb82c0db909d139f9fafa27c76781e')
+source=("https://files.pythonhosted.org/packages/75/b4/5248459ec0e7e1608814915479cb13e5baf89034b572e3d74d5c9219dd31/llfuse-$pkgver.tar.bz2")
+md5sums=('4996674fa327c6c93174c1f71961ac6c')
 
 build() {
   cd "${srcdir}/llfuse-${pkgver}"
-
-  python setup.py build
-  python2 setup.py build
+  python setup.py build_ext --inplace
 }
 
 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
+  python -m pytest test/
 }
 
-package_python-llfuse() {
-  depends+=(python)
-
+package() {
   cd "${srcdir}/llfuse-${pkgver}"
   python setup.py install --root="$pkgdir" --optimize=1
 }
-
-package_python2-llfuse() {
-  depends+=(python2-contextlib2)
-
-  cd "${srcdir}/llfuse-${pkgver}"
-  python2 setup.py install --root="$pkgdir" --optimize=1
-}



More information about the arch-commits mailing list