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

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 14:58:16 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:58:16
  Author: felixonmars
Revision: 1059620

archrelease: copy trunk to community-staging-any

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

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

Copied: pylama/repos/community-staging-any/PKGBUILD (from rev 1059616, pylama/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:58:16 UTC (rev 1059620)
@@ -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=7
+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.10/site-packages:$PYTHONPATH:$PWD/tests" py.test --pylama pylama
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/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.10/site-packages/{,pylama/}tests
+}



More information about the arch-commits mailing list