[arch-commits] Commit in python-fs/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Mar 13 09:19:21 UTC 2017
Date: Monday, March 13, 2017 @ 09:19:20
Author: felixonmars
Revision: 216055
upgpkg: python-fs 2.0.1-1
Modified:
python-fs/trunk/PKGBUILD
----------+
PKGBUILD | 35 ++++++++++++++++-------------------
1 file changed, 16 insertions(+), 19 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-03-13 09:06:22 UTC (rev 216054)
+++ PKGBUILD 2017-03-13 09:19:20 UTC (rev 216055)
@@ -3,50 +3,47 @@
pkgbase=python-fs
pkgname=('python-fs' 'python2-fs')
-pkgver=2.0.0
-_commit=ec46992546faf2f1829c410186808d0152d9a92a
-pkgrel=2
+pkgver=2.0.1
+pkgrel=1
pkgdesc="Filesystem abstraction layer"
arch=('any')
license=('custom:BSD')
url="http://pypi.python.org/pypi/fs/"
makedepends=('python-appdirs' 'python2-appdirs' 'python2-enum34' 'python-pytz' 'python2-pytz'
- 'python2-scandir' 'python-setuptools' 'python2-setuptools' 'python-six' 'python2-six'
- 'git')
+ 'python2-scandir' 'python-setuptools' 'python2-setuptools' 'python-six' 'python2-six')
checkdepends=('python-nose' 'python2-nose' 'fuse2' 'python-mock' 'python2-mock' 'python-pyftpdlib'
'python2-pyftpdlib')
-source=("git+https://github.com/PyFilesystem/pyfilesystem2.git#commit=$_commit")
-sha512sums=('SKIP')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/PyFilesystem/pyfilesystem2/archive/v$pkgver.tar.gz")
+sha512sums=('2a2c733b1e3bf2d1d14285eee3d815ab6462a51b1187caf952858e3babcb2ea7477c0f29d1195c508a3e8fe2f845176fa75276d220287af220445716a8ff58f7')
prepare() {
- cp -a pyfilesystem2{,-py2}
+ cp -a pyfilesystem2-$pkgver{,-py2}
- sed -e '/enum34/d' -e '/scandir/d' -i pyfilesystem2/setup.py
+ sed -e '/enum34/d' -e '/scandir/d' -i pyfilesystem2-$pkgver/setup.py
}
build() {
- cd "$srcdir"/pyfilesystem2
+ cd "$srcdir"/pyfilesystem2-$pkgver
python setup.py build
- cd "$srcdir"/pyfilesystem2-py2
+ cd "$srcdir"/pyfilesystem2-$pkgver-py2
python2 setup.py build
}
-check_disabled() {
- # Tests hangs, disabled in 2.0.0
+check() {
export LC_CTYPE=en_US.UTF-8
- cd "$srcdir"/pyfilesystem2
- nosetests3
+ cd "$srcdir"/pyfilesystem2-$pkgver
+ nosetests3 -a "!slow" tests
- cd "$srcdir"/pyfilesystem2-py2
- nosetests2
+ cd "$srcdir"/pyfilesystem2-$pkgver-py2
+ nosetests2 -a "!slow" tests
}
package_python-fs() {
depends=('python-appdirs' 'python-pytz' 'python-setuptools' 'python-six')
- cd pyfilesystem2
+ cd pyfilesystem2-$pkgver
python setup.py install --root="${pkgdir}" --optimize=1
}
@@ -54,6 +51,6 @@
depends=('python2-appdirs' 'python2-enum34' 'python2-pytz' 'python2-scandir' 'python2-setuptools'
'python2-six')
- cd pyfilesystem2-py2
+ cd pyfilesystem2-$pkgver-py2
python2 setup.py install --root="${pkgdir}" --optimize=1
}
More information about the arch-commits
mailing list