[arch-commits] Commit in python-fs/repos (2 files)
Eli Schwartz
eschwartz at archlinux.org
Fri Jul 27 00:31:29 UTC 2018
Date: Friday, July 27, 2018 @ 00:31:29
Author: eschwartz
Revision: 363664
archrelease: copy trunk to community-staging-any
Added:
python-fs/repos/community-staging-any/
python-fs/repos/community-staging-any/PKGBUILD
(from rev 363663, python-fs/trunk/PKGBUILD)
----------+
PKGBUILD | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 62 insertions(+)
Copied: python-fs/repos/community-staging-any/PKGBUILD (from rev 363663, python-fs/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-07-27 00:31:29 UTC (rev 363664)
@@ -0,0 +1,62 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-fs
+pkgname=('python-fs' 'python2-fs')
+pkgver=2.0.26
+pkgrel=2
+pkgdesc="Filesystem abstraction layer"
+arch=('any')
+license=('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'
+ 'python2-typing' 'python2-backports.os')
+checkdepends=('python-nose' 'python2-nose' 'fuse2' 'python-mock' 'python2-mock' 'python-pyftpdlib'
+ 'python2-pyftpdlib' 'python-psutil' 'python2-psutil' 'python-pysendfile'
+ 'python2-pysendfile')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/PyFilesystem/pyfilesystem2/archive/v$pkgver.tar.gz")
+sha512sums=('32fcca0fe89898cb698a63d0ebe7981952f47cba2a7ade1762cd97f917abb22f181785075ef495dc12b02adbcee930253a8ded8932f61fec6469889057b02c6e')
+
+prepare() {
+ cp -a pyfilesystem2-$pkgver{,-py2}
+
+ sed -e '/enum34/d' -e '/scandir/d' -i pyfilesystem2-$pkgver/setup.py
+}
+
+build() {
+ cd "$srcdir"/pyfilesystem2-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/pyfilesystem2-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ export LC_CTYPE=en_US.UTF-8
+
+ cd "$srcdir"/pyfilesystem2-$pkgver
+ python setup.py install --root="$PWD/tmp_install" --optimize=1
+ PYTHONPATH="$PWD/tmp_install/usr/lib/python3.7/site-packages:$PYTHONPATH" nosetests3 tests
+
+ cd "$srcdir"/pyfilesystem2-$pkgver-py2
+ python2 setup.py install --root="$PWD/tmp_install" --optimize=1
+ PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" nosetests2 tests
+}
+
+package_python-fs() {
+ depends=('python-appdirs' 'python-pytz' 'python-setuptools' 'python-six')
+
+ cd pyfilesystem2-$pkgver
+ python setup.py install --root="${pkgdir}" --optimize=1
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
+
+package_python2-fs() {
+ depends=('python2-appdirs' 'python2-enum34' 'python2-pytz' 'python2-scandir' 'python2-setuptools'
+ 'python2-six' 'python2-typing' 'python2-backports.os')
+
+ cd pyfilesystem2-$pkgver-py2
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
More information about the arch-commits
mailing list