[arch-commits] Commit in python-configargparse/repos (2 files)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Tue Nov 30 20:25:08 UTC 2021
Date: Tuesday, November 30, 2021 @ 20:25:07
Author: foutrelis
Revision: 1058237
archrelease: copy trunk to community-staging-any
Added:
python-configargparse/repos/community-staging-any/
python-configargparse/repos/community-staging-any/PKGBUILD
(from rev 1058234, python-configargparse/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-configargparse/repos/community-staging-any/PKGBUILD (from rev 1058234, python-configargparse/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-11-30 20:25:07 UTC (rev 1058237)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-configargparse
+pkgver=1.5
+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/bw2/ConfigArgParse'
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-mock' 'python-tests' 'python-yaml')
+optdepends=('python-yaml: for YAML support')
+source=("https://github.com/bw2/ConfigArgParse/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('82121fa6e8f734898674220b888dd3670368389a5cbd40e87d9188fa55d4378fdf480cc7dc003a4b9eadc1951fa8fc6141e9c0b079321cfe70c64bebacfb8944')
+
+build() {
+ cd ConfigArgParse-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd ConfigArgParse-$pkgver
+ python setup.py test
+}
+
+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