[arch-commits] Commit in python-pytest-helpers-namespace/repos/community-staging-any (2 files)

Evangelos Foutras foutrelis at archlinux.org
Thu Nov 12 18:58:19 UTC 2020


    Date: Thursday, November 12, 2020 @ 18:58:19
  Author: foutrelis
Revision: 753284

archrelease: copy trunk to community-staging-any

Added:
  python-pytest-helpers-namespace/repos/community-staging-any/PKGBUILD
    (from rev 753283, python-pytest-helpers-namespace/trunk/PKGBUILD)
Deleted:
  python-pytest-helpers-namespace/repos/community-staging-any/PKGBUILD

----------+
 PKGBUILD |   94 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 47 insertions(+), 47 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-12 18:58:15 UTC (rev 753283)
+++ PKGBUILD	2020-11-12 18:58:19 UTC (rev 753284)
@@ -1,47 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=pytest-helpers-namespace
-pkgname=python-pytest-helpers-namespace
-pkgver=2019.1.8
-pkgrel=2
-pkgdesc="PyTest Helpers Namespace"
-arch=('any')
-url="https://github.com/saltstack/pytest-helpers-namespace"
-license=('Apache')
-depends=('python-pytest')
-makedepends=('git' 'python-setuptools')
-checkdepends=('python-pytest' 'python-pytest-forked')
-source=("git+https://github.com/saltstack/pytest-helpers-namespace#tag=v${pkgver}?signed")
-sha512sums=('SKIP')
-validpgpkeys=('D2908FB3A823B0FAB3BD21F5BB36BF6584A298FF') # Pedro Algarvio (s0undt3ch) <pedro at algarvio.me>
-
-prepare() {
-  mv -v "${_name}" "$pkgname-$pkgver"
-}
-
-build() {
-  cd "$pkgname-$pkgver"
-  python setup.py build
-}
-
-check() {
-  cd "$pkgname-$pkgver"
-  # installing into test location, so pytest can pick up the extension
-  mkdir -vp test_dir
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="test_dir"
-  local python_version="$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')"
-  export PYTHONPATH="test_dir/usr/lib/python${python_version}/site-packages/:${PYTHONPATH}"
-  pytest -v --forked
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="${pkgdir}"
-  install -vDm 644 {AUTHORS,README}.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
-}

Copied: python-pytest-helpers-namespace/repos/community-staging-any/PKGBUILD (from rev 753283, python-pytest-helpers-namespace/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-11-12 18:58:19 UTC (rev 753284)
@@ -0,0 +1,47 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=pytest-helpers-namespace
+pkgname=python-pytest-helpers-namespace
+pkgver=2019.1.8
+pkgrel=3
+pkgdesc="PyTest Helpers Namespace"
+arch=('any')
+url="https://github.com/saltstack/pytest-helpers-namespace"
+license=('Apache')
+depends=('python-pytest')
+makedepends=('git' 'python-setuptools')
+checkdepends=('python-pytest' 'python-pytest-forked')
+source=("git+https://github.com/saltstack/pytest-helpers-namespace#tag=v${pkgver}?signed")
+sha512sums=('SKIP')
+validpgpkeys=('D2908FB3A823B0FAB3BD21F5BB36BF6584A298FF') # Pedro Algarvio (s0undt3ch) <pedro at algarvio.me>
+
+prepare() {
+  mv -v "${_name}" "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  # installing into test location, so pytest can pick up the extension
+  mkdir -vp test_dir
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="test_dir"
+  local python_version="$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')"
+  export PYTHONPATH="test_dir/usr/lib/python${python_version}/site-packages/:${PYTHONPATH}"
+  pytest -v --forked
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -vDm 644 {AUTHORS,README}.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}


More information about the arch-commits mailing list