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

Felix Yan felixonmars at archlinux.org
Tue Nov 10 05:13:40 UTC 2020


    Date: Tuesday, November 10, 2020 @ 05:13:40
  Author: felixonmars
Revision: 749367

archrelease: copy trunk to community-staging-any

Added:
  python-diff-cover/repos/community-staging-any/
  python-diff-cover/repos/community-staging-any/PKGBUILD
    (from rev 749366, python-diff-cover/trunk/PKGBUILD)

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

Copied: python-diff-cover/repos/community-staging-any/PKGBUILD (from rev 749366, python-diff-cover/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 05:13:40 UTC (rev 749367)
@@ -0,0 +1,44 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=diff_cover
+pkgname=python-diff-cover
+pkgver=4.0.1
+pkgrel=2
+pkgdesc="Automatically find diff lines that need test coverage"
+arch=('any')
+url="https://github.com/Bachmann1234/diff_cover"
+license=('Apache')
+depends=('python-jinja' 'python-jinja_pluralize' 'python-pluggy'
+'python-pygments' 'python-setuptools')
+checkdepends=('flake8' 'python-pytest' 'python-mock' 'python-pytest-cov'
+'python-pycodestyle' 'python-pyflakes' 'python-pylint' 'python-pydocstyle')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"{,.asc})
+sha512sums=('a5f124cf602937f089094d38c9eba9a1babdadcff9b65d4b8cb909c6bcaaf61c7832f8c30d4453f50d0965687e9fe9a25060fb824cd997f641d7fec769f0232b'
+            'SKIP')
+b2sums=('e4ff84f9eaf8acb3ff659a15670d957c8601c45f2528086b0e76f949e06682af91f8b873f23432fc79b0471b6ab1f5f6c03c65bc10cc5d795e2ff273f2d2153d'
+        'SKIP')
+validpgpkeys=('54CAEABCAC2956D407348256972401BDE60128CB') # Matt Bachmann <matt.bachmann at lola.com>
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH="build:${PYTHONPATH}"
+  pytest -v
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -vDm 644 {CHANGELOG,NOTICE,README.rst} -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list