summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules/python-future
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2017-07-19 03:26:06 (GMT)
committerBritney Fransen <brfransen@gmail.com>2017-07-19 03:26:06 (GMT)
commit9f463de2c8493d2f28999790d54e816985a3f8d6 (patch)
tree833a640db42c6a5c28d0246073e33eb539fa8661 /abs/core/python_modules/python-future
parenta7fe8e90766b533c95203366cb40a9e351069200 (diff)
downloadlinhes_pkgbuild-9f463de2c8493d2f28999790d54e816985a3f8d6.zip
linhes_pkgbuild-9f463de2c8493d2f28999790d54e816985a3f8d6.tar.gz
linhes_pkgbuild-9f463de2c8493d2f28999790d54e816985a3f8d6.tar.bz2
python-future: initial inclusion. dep of flexget
Diffstat (limited to 'abs/core/python_modules/python-future')
-rw-r--r--abs/core/python_modules/python-future/PKGBUILD66
-rw-r--r--abs/core/python_modules/python-future/__changelog1
2 files changed, 67 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-future/PKGBUILD b/abs/core/python_modules/python-future/PKGBUILD
new file mode 100644
index 0000000..1b96edc
--- /dev/null
+++ b/abs/core/python_modules/python-future/PKGBUILD
@@ -0,0 +1,66 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
+# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>
+# Contributor: Gaute Hope <eg@gaute.vetsj.com>
+# Contributor: Melissa Padilla <mpadilla2 at hotmail dot com>
+
+pkgbase=python-future
+pkgname=(python2-future)
+pkgver=0.16.0
+pkgrel=2
+pkgdesc="Clean single-source support for Python 3 and 2"
+url="http://python-future.org/"
+arch=('any')
+license=('MIT')
+makedepends=('python2-setuptools')
+checkdepends=('python2-requests')
+options=('!emptydirs')
+source=("https://pypi.io/packages/source/f/future/future-$pkgver.tar.gz")
+sha256sums=('e39ced1ab767b5936646cedba8bcce582398233d6a627067d4c6a454c90cfedb')
+
+prepare() {
+ cp -a future-$pkgver{,-py2}
+}
+
+build() {
+# cd "$srcdir"/future-$pkgver
+# python setup.py build
+
+ cd "$srcdir"/future-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+# cd "$srcdir"/future-$pkgver
+# PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python setup.py test || warning "Tests failed"
+
+ cd "$srcdir"/future-$pkgver-py2
+ PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 setup.py test
+}
+
+package_python-future() {
+ depends=('python')
+ optdepends=('python-setuptools: futurize and pasteurize scripts')
+ provides=('futurize' 'pasteurize')
+
+ cd future-$pkgver
+
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE.txt \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
+
+package_python2-future() {
+ depends=('python2')
+ optdepends=('python2-setuptools: futurize2 and pasteurize2 scripts')
+
+ cd future-$pkgver-py2
+
+ python2 setup.py install --root="$pkgdir" --optimize=1
+
+ mv "$pkgdir"/usr/bin/futurize{,2}
+ mv "$pkgdir"/usr/bin/pasteurize{,2}
+
+ install -D -m644 LICENSE.txt \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
diff --git a/abs/core/python_modules/python-future/__changelog b/abs/core/python_modules/python-future/__changelog
new file mode 100644
index 0000000..60db758
--- /dev/null
+++ b/abs/core/python_modules/python-future/__changelog
@@ -0,0 +1 @@
+PKGBUILD: remove py3 stuff