[arch-commits] Commit in python-configargparse/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Jul 2 10:45:47 UTC 2018
Date: Monday, July 2, 2018 @ 10:45:47
Author: foutrelis
Revision: 349491
archrelease: copy trunk to community-staging-any
Added:
python-configargparse/repos/community-staging-any/
python-configargparse/repos/community-staging-any/PKGBUILD
(from rev 349490, python-configargparse/trunk/PKGBUILD)
----------+
PKGBUILD | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
Copied: python-configargparse/repos/community-staging-any/PKGBUILD (from rev 349490, python-configargparse/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-07-02 10:45:47 UTC (rev 349491)
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-configargparse
+pkgname=('python-configargparse' 'python2-configargparse')
+pkgver=0.13.0
+pkgrel=2
+pkgdesc='A drop-in replacement for argparse that allows options to also be set via config files and/or environment variables'
+arch=('any')
+url='https://github.com/zorro3/ConfigArgParse'
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-yaml' 'python2-yaml' 'python2-mock')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/bw2/ConfigArgParse/archive/$pkgver.tar.gz")
+sha512sums=('797c5edbc51353797204152b5c908ddb4e883a98f247430448d774957fd841286ea1a3cb87db3186e683a65f566cfce0a815e4bd558b9c823d9226d856341ca9')
+
+prepare() {
+ cp -a ConfigArgParse-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/ConfigArgParse-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/ConfigArgParse-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/ConfigArgParse-$pkgver
+ python setup.py test || warning 'Ignoring TestWrappingMetavar failure'
+
+ cd "$srcdir"/ConfigArgParse-$pkgver-py2
+ python2 setup.py test
+}
+
+package_python-configargparse() {
+ depends=('python')
+ optdepends=('python-yaml: for YAML support')
+
+ cd ConfigArgParse-$pkgver
+
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-configargparse() {
+ depends=('python2')
+ optdepends=('python2-yaml: for YAML support')
+
+ cd ConfigArgParse-$pkgver-py2
+
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list