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

Jelle van der Waa jelle at archlinux.org
Fri Dec 27 16:53:17 UTC 2019


    Date: Friday, December 27, 2019 @ 16:53:17
  Author: jelle
Revision: 543156

archrelease: copy trunk to community-any

Added:
  python-dephell_argparse/repos/community-any/
  python-dephell_argparse/repos/community-any/PKGBUILD
    (from rev 543155, python-dephell_argparse/trunk/PKGBUILD)

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

Copied: python-dephell_argparse/repos/community-any/PKGBUILD (from rev 543155, python-dephell_argparse/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2019-12-27 16:53:17 UTC (rev 543156)
@@ -0,0 +1,37 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+_pkgname=dephell_argparse
+pkgname=python-dephell_argparse
+pkgver=0.1.2
+pkgrel=1
+pkgdesc='Argparse with groups, commands, colors, and fuzzy matching'
+arch=(any)
+license=('MIT')
+url='https://github.com/dephell/dephell_argparse'
+depends=(python)
+makedepends=(python-dephell)
+checkdepends=(python-pytest)
+source=($pkgname-$pkgver.tar.gz::https://github.com/dephell/dephell_argparse/archive/v.$pkgver.tar.gz)
+sha512sums=('8750cfcc484956a16209b1fc539a031a43fb308fa06a90442b54f486fee69ef09da0f5262072260a9b8de2654d45c14aa971a1aaa59093759bf06dd9b65f65a4')
+
+prepare() {
+  cd ${_pkgname}-v.${pkgver}
+  dephell deps convert --from pyproject.toml --to setup.py
+}
+
+build() {
+  cd ${_pkgname}-v.${pkgver}
+  python3 setup.py build
+}
+
+check() {
+  cd ${_pkgname}-v.${pkgver}
+  python -m pytest tests
+}
+
+package() {
+  cd ${_pkgname}-v.${pkgver}
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list