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

Evangelos Foutras foutrelis at archlinux.org
Sat Oct 26 20:41:49 UTC 2019


    Date: Saturday, October 26, 2019 @ 20:41:49
  Author: foutrelis
Revision: 520607

archrelease: copy trunk to community-staging-any

Added:
  pylama/repos/community-staging-any/
  pylama/repos/community-staging-any/PKGBUILD
    (from rev 520606, pylama/trunk/PKGBUILD)

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

Copied: pylama/repos/community-staging-any/PKGBUILD (from rev 520606, pylama/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-26 20:41:49 UTC (rev 520607)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Pieter Goetschalckx <3.14.e.ter at gmail dot com>
+# Contributor: Stijn Seghers (Procrat) <stijnseghers at gmail dot com>
+
+pkgname=pylama
+pkgver=7.7.1
+pkgrel=3
+pkgdesc="Code audit tool for python"
+arch=('any')
+url="https://github.com/klen/pylama"
+license=('GPL3')
+depends=('python-pycodestyle' 'python-pydocstyle' 'python-pyflakes' 'python-mccabe')
+checkdepends=('python-pytest' 'git' 'mypy')
+optdepends=('python-radon: radon support')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/klen/pylama/archive/$pkgver.tar.gz")
+sha256sums=('acec2b80ad6a4781dc2626992b10ecac7b81be6c0145750c11688c281298f6fe')
+
+build() {
+  cd $pkgname-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd $pkgname-$pkgver
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH:$PWD/tests" py.test --pylama pylama
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH:$PWD/tests" py.test tests -k 'not test_eradicate'
+}
+
+package() {
+  cd $pkgname-$pkgver
+  python setup.py install --root="$pkgdir/" --optimize=1
+
+  mv "$pkgdir"/usr/lib/python3.8/site-packages/{,pylama/}tests
+}



More information about the arch-commits mailing list