[arch-commits] Commit in python-future/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri Oct 25 15:50:46 UTC 2019


    Date: Friday, October 25, 2019 @ 15:50:46
  Author: felixonmars
Revision: 519222

archrelease: copy trunk to community-staging-any

Added:
  python-future/repos/community-staging-any/
  python-future/repos/community-staging-any/PKGBUILD
    (from rev 519219, python-future/trunk/PKGBUILD)

----------+
 PKGBUILD |   65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)

Copied: python-future/repos/community-staging-any/PKGBUILD (from rev 519219, python-future/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-25 15:50:46 UTC (rev 519222)
@@ -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.18.1
+pkgrel=2
+pkgdesc="Clean single-source support for Python 3 and 2"
+url="https://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=('c70565a660cf87c5e7e994bae0d4eb0b2b8b607ecb5ce65521c027bf0a39ce5699f0578413bd3c7edd5d01aeb1617de48dcea098a9e9021d8487a73007573030')
+
+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