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

Felix Yan felixonmars at archlinux.org
Thu Jul 12 20:41:40 UTC 2018


    Date: Thursday, July 12, 2018 @ 20:41:39
  Author: felixonmars
Revision: 358196

archrelease: copy trunk to community-staging-any

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

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

Copied: python-positional/repos/community-staging-any/PKGBUILD (from rev 358195, python-positional/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-12 20:41:39 UTC (rev 358196)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgbase=python-positional
+pkgname=(python-positional python2-positional)
+pkgver=1.2.1
+pkgrel=2
+pkgdesc="Library to enforce positional or key-word arguments"
+arch=('any')
+url="https://github.com/morganfainberg/positional"
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python-wrapt'
+             'python2-wrapt')
+checkdepends=('python-testrepository' 'python2-testrepository')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/morganfainberg/positional/archive/$pkgver.tar.gz")
+sha512sums=('5356d30a9412503342e828ce49d5f9ef71920f086135d2320c710177fbe2be11309bd61d56693de05e6dca620ae3b04c0fdd730fadef6dedd46c96fd0336d6ca')
+
+prepare() {
+  cp -a positional-$pkgver{,-py2}
+
+  export PBR_VERSION=$pkgver
+}
+
+build() {
+  cd "$srcdir"/positional-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/positional-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/positional-$pkgver
+  python setup.py testr
+
+  cd "$srcdir"/positional-$pkgver-py2
+  PYTHON=python2 python2 setup.py testr
+}
+
+package_python-positional() {
+  depends=('python-pbr' 'python-wrapt')
+
+  cd "$srcdir"/positional-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-positional() {
+  depends=('python2-pbr' 'python2-wrapt')
+
+  cd "$srcdir"/positional-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list