[arch-commits] Commit in python-future/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 26 05:38:56 UTC 2018
Date: Friday, October 26, 2018 @ 05:38:56
Author: felixonmars
Revision: 399050
archrelease: copy trunk to community-testing-any
Added:
python-future/repos/community-testing-any/
python-future/repos/community-testing-any/PKGBUILD
(from rev 399049, python-future/trunk/PKGBUILD)
----------+
PKGBUILD | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 65 insertions(+)
Copied: python-future/repos/community-testing-any/PKGBUILD (from rev 399049, python-future/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2018-10-26 05:38:56 UTC (rev 399050)
@@ -0,0 +1,65 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>
+# Contributor: Gaute Hope <eg at gaute.vetsj.com>
+# Contributor: Melissa Padilla <mpadilla2 at hotmail dot com>
+
+pkgbase=python-future
+pkgname=(python-future python2-future)
+pkgver=0.17.0
+pkgrel=1
+pkgdesc="Clean single-source support for Python 3 and 2"
+url="http://python-future.org/"
+arch=('any')
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-requests' 'python2-requests')
+options=('!emptydirs')
+source=("https://pypi.io/packages/source/f/future/future-$pkgver.tar.gz")
+sha512sums=('f2396379e8e36753aeafdf27225c2551a31b10036f21201f1c24d63c1bb318dbd491ec977af514a19a4d477b397df9eed9711be797a64e86fc00c4692729d876')
+
+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
+}
More information about the arch-commits
mailing list