[arch-commits] Commit in python-pytest-verbose-parametrize/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Tue Nov 10 04:03:31 UTC 2020


    Date: Tuesday, November 10, 2020 @ 04:03:31
  Author: foutrelis
Revision: 748420

archrelease: copy trunk to community-staging-any

Added:
  python-pytest-verbose-parametrize/repos/community-staging-any/
  python-pytest-verbose-parametrize/repos/community-staging-any/PKGBUILD
    (from rev 748419, python-pytest-verbose-parametrize/trunk/PKGBUILD)

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

Copied: python-pytest-verbose-parametrize/repos/community-staging-any/PKGBUILD (from rev 748419, python-pytest-verbose-parametrize/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 04:03:31 UTC (rev 748420)
@@ -0,0 +1,40 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=pytest-verbose-parametrize
+pkgname=python-pytest-verbose-parametrize
+pkgver=1.7.0
+pkgrel=2
+pkgdesc="Pytest parametrize hook to generate ids for parametrized tests"
+arch=('any')
+url="https://github.com/man-group/pytest-plugins/tree/master/pytest-verbose-parametrize"
+license=('MIT')
+depends=('python-pytest' 'python-six')
+makedepends=('python-setuptools')
+checkdepends=('python-coverage' 'python-mock' 'python-pytest-virtualenv')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('ac81cdf002d60b4af916c4beb4c832c9c39dc9dcfa3eea7385b093f9ea18391cbf968a4e908abdb23523a7cb1e294dce2017083414e61eef6762f157319e2cf4')
+
+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 -k 'not test_handles_apparent_duplicates and not test_truncates_long_ids'
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -vDm 644 {CHANGES,README}.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list