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

Felix Yan felixonmars at archlinux.org
Tue Jul 14 10:26:22 UTC 2020


    Date: Tuesday, July 14, 2020 @ 10:26:22
  Author: felixonmars
Revision: 663676

archrelease: copy trunk to community-testing-any

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

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

Copied: python-cmd2/repos/community-testing-any/PKGBUILD (from rev 663674, python-cmd2/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2020-07-14 10:26:22 UTC (rev 663676)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgname=python-cmd2
+pkgver=1.2.0
+pkgrel=1
+pkgdesc="A tool for building interactive command line apps"
+arch=('any')
+url="https://github.com/python-cmd2/cmd2"
+license=('MIT')
+depends=('python-attrs' 'python-colorama' 'python-pyperclip' 'python-wcwidth')
+makedepends=('python-setuptools-scm')
+checkdepends=('python-pytest-runner' 'python-pytest-xdist' 'python-pytest-mock' 'vi')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/python-cmd2/cmd2/archive/$pkgver.tar.gz")
+sha512sums=('6b2eda53bb7010519ae5d72209f00074cd98f3039909a012065998a385c0274ee9e6af2c46f4dd5b62daf01c915032a81c5c1093a291b7736ab8aacbbb86a7be')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+  cd cmd2-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd cmd2-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd cmd2-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list