[arch-commits] Commit in pylama/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Tue Nov 10 04:05:16 UTC 2020
Date: Tuesday, November 10, 2020 @ 04:05:15
Author: foutrelis
Revision: 748460
archrelease: copy trunk to community-staging-any
Added:
pylama/repos/community-staging-any/
pylama/repos/community-staging-any/PKGBUILD
(from rev 748457, pylama/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: pylama/repos/community-staging-any/PKGBUILD (from rev 748457, pylama/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-10 04:05:15 UTC (rev 748460)
@@ -0,0 +1,43 @@
+# 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=5
+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"
+ pylama-pytest-6.patch::https://github.com/klen/pylama/pull/189.patch)
+sha256sums=('acec2b80ad6a4781dc2626992b10ecac7b81be6c0145750c11688c281298f6fe'
+ '6a025bb41afe783841ecb28ab6faada4be9d7b3d152f0a58970757953d343cba')
+
+prepare() {
+ cd $pkgname-$pkgver
+ patch -p1 -i ../pylama-pytest-6.patch
+}
+
+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.9/site-packages:$PYTHONPATH:$PWD/tests" py.test --pylama pylama
+ PYTHONPATH="$PWD/tmp_install/usr/lib/python3.9/site-packages:$PYTHONPATH:$PWD/tests" py.test tests --deselect tests/test_config.py::test_ignore_select \
+ --deselect tests/test_linters.py::test_eradicate
+}
+
+package() {
+ cd $pkgname-$pkgver
+ python setup.py install --root="$pkgdir/" --optimize=1
+
+ mv "$pkgdir"/usr/lib/python3.9/site-packages/{,pylama/}tests
+}
More information about the arch-commits
mailing list