[arch-commits] Commit in python-diff-cover/repos/community-any (PKGBUILD PKGBUILD)

David Runge dvzrv at archlinux.org
Wed Sep 2 10:59:02 UTC 2020


    Date: Wednesday, September 2, 2020 @ 10:59:02
  Author: dvzrv
Revision: 696302

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   88 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 46 insertions(+), 42 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-02 10:58:42 UTC (rev 696301)
+++ PKGBUILD	2020-09-02 10:59:02 UTC (rev 696302)
@@ -1,42 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=diff_cover
-pkgname=python-diff-cover
-pkgver=3.0.1
-pkgrel=1
-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' 'python-six')
-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=('bb04b110a9601db8734c1dd925571c7f2905e14bc5d838338b4e02370832e807d6f7c60d1f714157ac357526bc87c96efa7796be378f53c7ef7f30f525911b08'
-            '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}"
-}

Copied: python-diff-cover/repos/community-any/PKGBUILD (from rev 696301, python-diff-cover/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-09-02 10:59:02 UTC (rev 696302)
@@ -0,0 +1,46 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=diff_cover
+pkgname=python-diff-cover
+pkgver=4.0.0
+pkgrel=1
+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=('aae6e3e35015968c5d9e83ad31a8872dde321690de3611c9d7d0ed8bd32699fa46866ce01bf31254757d5009b7fe9bcd892bcc8bcb024580c9e768ee0b443ea8'
+            'SKIP')
+b2sums=('adfecf10b06f347e0b06aac9975bd599de7a2dcb8f46323aaa7bdb5d1c2d3e2884d6fa1ef044e3923095f3b66c4e1064f5a59db937ecbbe396fb8592a3a65dbe'
+        '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}"
+  # skip failing test relying on pylint output:
+  # https://github.com/Bachmann1234/diff_cover/issues/158
+  pytest -v -k "not test_added_file_pylint_console"
+}
+
+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