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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 16:49:47 UTC 2020


    Date: Monday, November 9, 2020 @ 16:49:46
  Author: felixonmars
Revision: 747576

archrelease: copy trunk to community-staging-any

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

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

Copied: python-cmd2/repos/community-staging-any/PKGBUILD (from rev 747571, python-cmd2/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 16:49:46 UTC (rev 747576)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgname=python-cmd2
+pkgver=1.3.11
+pkgrel=2
+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=('30319ccc68b66b9d98b92f29dea7466f8e8321caa87118f169e0b5e3e05764f8ba37cfa206a883442852b1fac4e9fe67857248fd6946303beede0f1a4a6cc2a3')
+
+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