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

Felix Yan felixonmars at archlinux.org
Mon Jun 7 02:37:56 UTC 2021


    Date: Monday, June 7, 2021 @ 02:37:56
  Author: felixonmars
Revision: 956931

archrelease: copy trunk to community-testing-any

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

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

Copied: python-cmd2/repos/community-testing-any/PKGBUILD (from rev 956930, python-cmd2/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2021-06-07 02:37:56 UTC (rev 956931)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgname=python-cmd2
+pkgver=2.0.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-cov' 'python-pytest-mock' 'python-pytest-runner' 'python-pytest-xdist'
+              'vi')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/python-cmd2/cmd2/archive/$pkgver.tar.gz")
+sha512sums=('b1d1f710e63b10fd6a8c31d73c088941b9d0f0b134c4acdfaa8cc295082314afac86d4b6ae65ff56e834d0620a65271eba178d57d046404bd3909a5dcf34e2bb')
+
+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