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

Felix Yan felixonmars at archlinux.org
Sun Jun 7 05:33:08 UTC 2020


    Date: Sunday, June 7, 2020 @ 05:33:07
  Author: felixonmars
Revision: 639590

archrelease: copy trunk to community-testing-any

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

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

Copied: python-cmd2/repos/community-testing-any/PKGBUILD (from rev 639589, python-cmd2/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2020-06-07 05:33:07 UTC (rev 639590)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgname=python-cmd2
+pkgver=1.1.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=('73a82545efed2959e286b452c24019ca2ab20bc0ac509c0d3d2eb5d723c62f44c792b6bd0557dfb49bc32c68efa87e0aeb9456d14d9bf90d291a3ae483ce9408')
+
+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