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

David Runge dvzrv at gemini.archlinux.org
Thu Dec 30 10:59:02 UTC 2021


    Date: Thursday, December 30, 2021 @ 10:59:02
  Author: dvzrv
Revision: 1088116

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-30 10:58:54 UTC (rev 1088115)
+++ PKGBUILD	2021-12-30 10:59:02 UTC (rev 1088116)
@@ -1,47 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=pytest-helpers-namespace
-pkgname=python-pytest-helpers-namespace
-pkgver=2021.4.29
-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-declarative-requirements' 'python-setuptools-scm' 'python-toml')
-checkdepends=('python-pytest')
-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 \
-    --root="test_dir"
-
-  local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
-  export PYTHONPATH="test_dir/${site_packages}:${PYTHONPATH}"
-  # only use working test: https://github.com/saltstack/pytest-helpers-namespace/issues/10
-  pytest -vv -k 'test_helper_contains_method'
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --root="${pkgdir}"
-  install -vDm 644 {AUTHORS,README}.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
-}

Copied: python-pytest-helpers-namespace/repos/community-any/PKGBUILD (from rev 1088115, python-pytest-helpers-namespace/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-30 10:59:02 UTC (rev 1088116)
@@ -0,0 +1,38 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=pytest-helpers-namespace
+pkgname=python-pytest-helpers-namespace
+pkgver=2021.12.29
+pkgrel=1
+pkgdesc="PyTest Helpers Namespace"
+arch=(any)
+url="https://github.com/saltstack/pytest-helpers-namespace"
+license=(Apache)
+depends=(python-pytest)
+makedepends=(git python-setuptools-declarative-requirements python-setuptools-scm python-toml)
+checkdepends=(python-pytest)
+source=("git+https://github.com/saltstack/pytest-helpers-namespace#tag=v${pkgver}?signed")
+sha512sums=('SKIP')
+validpgpkeys=('D2908FB3A823B0FAB3BD21F5BB36BF6584A298FF') # Pedro Algarvio (s0undt3ch) <pedro at algarvio.me>
+
+build() {
+  cd "${_name}"
+  python setup.py build
+}
+
+check() {
+  cd "${_name}"
+  # installing into test location, so pytest can pick up the extension
+  mkdir -vp test_dir
+  python setup.py install --optimize=1 --root="test_dir"
+
+  local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+  export PYTHONPATH="test_dir/${site_packages}:${PYTHONPATH}"
+  pytest -vv
+}
+
+package() {
+  cd "${_name}"
+  python setup.py install --optimize=1 --root="${pkgdir}"
+  install -vDm 644 {AUTHORS,README}.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list