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

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 14:53:39 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:53:38
  Author: felixonmars
Revision: 1059484

archrelease: copy trunk to community-staging-any

Added:
  python-pytest-subtests/repos/community-staging-any/
  python-pytest-subtests/repos/community-staging-any/PKGBUILD
    (from rev 1059481, python-pytest-subtests/trunk/PKGBUILD)

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

Copied: python-pytest-subtests/repos/community-staging-any/PKGBUILD (from rev 1059481, python-pytest-subtests/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:53:38 UTC (rev 1059484)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-subtests
+pkgver=0.5.0
+pkgrel=3
+pkgdesc='unittest subTest() support and subtests fixture'
+arch=('any')
+license=('MIT')
+url='https://github.com/pytest-dev/pytest-subtests'
+depends=('python-pytest')
+makedepends=('python-setuptools-scm')
+source=("https://github.com/pytest-dev/pytest-subtests/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('e3d7e90c3ab66950eb80d25049bc6f6f75b08b3da5ce0de5f3fc55d6a176a8d1fdcb19a19f7d9d137aeadcc82b214550474f76d5611bc5592ca649ddd8257a2a')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+  cd pytest-subtests-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd pytest-subtests-$pkgver
+  python setup.py egg_info
+  PYTHONPATH="$PWD" pytest
+}
+
+package() {
+  cd pytest-subtests-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list