[arch-commits] Commit in (4 files)
Kyle Keen
kkeen at archlinux.org
Thu Mar 9 08:30:40 UTC 2017
Date: Thursday, March 9, 2017 @ 08:30:40
Author: kkeen
Revision: 215372
pkginit: python-testpath 0.3-3 for nbconvert
Added:
python-testpath/
python-testpath/repos/
python-testpath/trunk/
python-testpath/trunk/PKGBUILD
----------+
PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
Added: python-testpath/trunk/PKGBUILD
===================================================================
--- python-testpath/trunk/PKGBUILD (rev 0)
+++ python-testpath/trunk/PKGBUILD 2017-03-09 08:30:40 UTC (rev 215372)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Philipp A. <flying-sheep at web.de>
+_name=testpath
+pkgname=python-testpath
+pkgver=0.3
+pkgrel=3
+pkgdesc='Test utilities for code working with files and commands'
+arch=('any')
+url="http://pypi.python.org/pypi/testpath"
+license=('MIT')
+depends=('python')
+#makedepends=('python-pip')
+_wheel="$_name-$pkgver-py2.py3-none-any.whl"
+# both sources because the WHL doesn't come with a license
+source=("$pkgname-$pkgver.tgz::https://github.com/jupyter/testpath/archive/$pkgver.tar.gz"
+ "https://files.pythonhosted.org/packages/py2.py3/t/$_name/$_wheel")
+#noextract=("$_wheel")
+md5sums=('c5237d3ab1c8b1471376179322065548'
+ '8d73a01748dca501886c65ff442a61da')
+
+prepare() {
+ cd "$srcdir"
+ rm testpath/cli*.exe
+ sed -i '/cli-32.exe/d' testpath-$pkgver.dist-info/RECORD
+ sed -i '/cli-64.exe/d' testpath-$pkgver.dist-info/RECORD
+ sed -i 's/shutil.copy(src, dst)/return/' testpath/commands.py
+}
+
+package() {
+ #pip install --compile --no-deps --root="$pkgdir" "$_wheel"
+ # not using pip here because it installs windows junk
+
+ cd "$srcdir/testpath"
+ for _i in ./*; do
+ install -Dm644 $_i "$pkgdir/usr/lib/python3.6/site-packages/testpath/$_i"
+ done
+
+ _dist="testpath-$pkgver.dist-info"
+ cd "$srcdir/$_dist"
+ for _i in ./*; do
+ install -Dm644 $_i "$pkgdir/usr/lib/python3.6/site-packages/$_dist/$_i"
+ done
+
+ cd "$srcdir/testpath-$pkgver"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
Property changes on: python-testpath/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list