[arch-commits] Commit in python-mamba/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Oct 26 20:26:20 UTC 2019
Date: Saturday, October 26, 2019 @ 20:26:19
Author: felixonmars
Revision: 520525
archrelease: copy trunk to community-staging-any
Added:
python-mamba/repos/community-staging-any/
python-mamba/repos/community-staging-any/PKGBUILD
(from rev 520524, python-mamba/trunk/PKGBUILD)
----------+
PKGBUILD | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
Copied: python-mamba/repos/community-staging-any/PKGBUILD (from rev 520524, python-mamba/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 20:26:19 UTC (rev 520525)
@@ -0,0 +1,64 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-mamba
+pkgname=('python-mamba' 'python2-mamba')
+pkgver=0.10
+pkgrel=2
+pkgdesc="The definitive testing tool for Python. Born under the banner of Behavior Driven Development."
+arch=('any')
+license=('MIT')
+url="https://nestorsalceda.github.io/mamba"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-clint' 'python2-clint'
+ 'python-coverage' 'python2-coverage' 'python-watchdog' 'python2-watchdog')
+checkdepends=('python-doublex-expects' 'python2-doublex-expects')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/nestorsalceda/mamba/archive/v$pkgver.tar.gz")
+sha512sums=('f7a46c35359ed7703a4d3ebe51904fac6c125451001b5181d1d1038c46c3ac4940c378e08cd779e683aa76cd4553e078bfa7dfd5ea2301fa1dacb2a0a85ec38e')
+
+prepare() {
+ cp -a mamba-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/mamba-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/mamba-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/mamba-$pkgver
+ # Hack entry points by installing it
+
+ cd "$srcdir"/mamba-$pkgver
+ python setup.py install --root="$PWD/tmp_install" --optimize=1
+ (
+ export PATH="$PWD/tmp_install/usr/bin:$PATH" PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH"
+ mamba --enable-coverage
+ )
+
+ cd "$srcdir"/mamba-$pkgver-py2
+ python setup.py install --root="$PWD/tmp_install" --optimize=1
+ (
+ export PATH="$PWD/tmp_install/usr/bin:$PATH" PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH"
+ mamba --enable-coverage
+ )
+}
+
+package_python-mamba() {
+ depends=('python-coverage' 'python-watchdog' 'python-clint' 'python-setuptools')
+
+ cd mamba-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+
+package_python2-mamba() {
+ depends=('python2-coverage' 'python2-watchdog' 'python2-clint' 'python2-setuptools')
+
+ cd mamba-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+
+ mv "$pkgdir"/usr/bin/mamba{,2}
+}
More information about the arch-commits
mailing list