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

Felix Yan felixonmars at archlinux.org
Tue Feb 18 16:15:23 UTC 2020


    Date: Tuesday, February 18, 2020 @ 16:15:23
  Author: felixonmars
Revision: 575995

archrelease: copy trunk to community-testing-any

Added:
  python-configargparse/repos/community-testing-any/
  python-configargparse/repos/community-testing-any/PKGBUILD
    (from rev 575993, python-configargparse/trunk/PKGBUILD)

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

Copied: python-configargparse/repos/community-testing-any/PKGBUILD (from rev 575993, python-configargparse/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2020-02-18 16:15:23 UTC (rev 575995)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-configargparse
+pkgver=1.0
+pkgrel=1
+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')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-tests' 'python-yaml')
+optdepends=('python-yaml: for YAML support')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/bw2/ConfigArgParse/archive/$pkgver.tar.gz")
+sha512sums=('8e2af22dfa08bcf4665289285cc8f94aca00b650cd9521e9c02d4d83b546f4d79f2fd2cae2818ad0f2d38a16907e145ca7165071b78c557fe0be1797609e1cae')
+
+build() {
+  cd ConfigArgParse-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd ConfigArgParse-$pkgver
+  python setup.py test || warning 'Ignoring TestWrappingMetavar failure'
+}
+
+package() {
+  cd ConfigArgParse-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list