[arch-commits] Commit in python-raet/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sun Dec 24 07:19:12 UTC 2017


    Date: Sunday, December 24, 2017 @ 07:19:11
  Author: felixonmars
Revision: 275681

upgpkg: python-raet 0.6.8-2

disable python2

Modified:
  python-raet/trunk/PKGBUILD

----------+
 PKGBUILD |   33 +++++++++++++++++----------------
 1 file changed, 17 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-24 07:19:07 UTC (rev 275680)
+++ PKGBUILD	2017-12-24 07:19:11 UTC (rev 275681)
@@ -2,31 +2,32 @@
 # Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
 # Contributor: Thomas S Hatch <thatch45 at gmail.com>
 
-pkgname=('python-raet' 'python2-raet')
+pkgname=python-raet
 pkgver=0.6.8
-pkgrel=1
+pkgrel=2
 pkgdesc='Asynchronous encrypted transaction based protocol using Ioflo'
 arch=('any')
 url='http://raet.docs.saltstack.com/'
-license=('APACHE')
-makedepends=(python-setuptools python2-setuptools)
+license=('Apache')
+depends=('python-libnacl' 'python-ioflo' 'python-six')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-bitvector')
 source=("https://pypi.io/packages/source/r/raet/raet-$pkgver.tar.gz")
 sha512sums=('01279e7414ec3edc9f2bc0641cb9e0606ebf5700b5ce37a05fd5919f3274b3b43aad64110baf4c4b1fda3843cb1a87b6be4ab592a8f62e82b3a716a86ae61b20')
 
-prepare() {
-  cd $srcdir
-  cp -r raet-$pkgver python2-raet-$pkgver
+build() {
+  cd raet-$pkgver
+  python setup.py build
 }
 
-package_python-raet() {
-  depends=('python-libnacl' 'python-ioflo' 'python-six')
-  cd "$srcdir/raet-$pkgver"
-  python3 setup.py install --root="$pkgdir" -O1
+check() {
+  cd raet-$pkgver
+  # Disabled: very broken
+  # sed -e '/import data/d' -e 's/data.createData/createData/' -i systest/lib/data.py
+  # python setup.py pytest
 }
 
-package_python2-raet() {
-  depends=('python2-libnacl' 'python2-ioflo' 'python2-six' 'python2-enum34')
-  cd "$srcdir/python2-raet-$pkgver"
-  python2 setup.py install --root="$pkgdir" -O1
-  mv "$pkgdir/usr/bin/raetflo"{,2}
+package() {
+  cd raet-$pkgver
+  python setup.py install --root="$pkgdir" -O1
 }



More information about the arch-commits mailing list