[arch-commits] Commit in pifpaf/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 14:54:56 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:54:56
  Author: felixonmars
Revision: 1059522

archrelease: copy trunk to community-staging-any

Added:
  pifpaf/repos/community-staging-any/
  pifpaf/repos/community-staging-any/PKGBUILD
    (from rev 1059521, pifpaf/trunk/PKGBUILD)

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

Copied: pifpaf/repos/community-staging-any/PKGBUILD (from rev 1059521, pifpaf/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:54:56 UTC (rev 1059522)
@@ -0,0 +1,46 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=pifpaf
+pkgver=3.1.5
+pkgrel=2
+pkgdesc='Suite of tools and fixtures to manage daemons for testing'
+arch=('any')
+license=('Apache')
+url='https://github.com/jd/pifpaf'
+depends=('python-daiquiri' 'python-click' 'python-pbr' 'python-jinja' 'python-fixtures'
+         'python-psutil' 'python-xattr')
+provides=("python-pifpaf=$pkgver")
+conflicts=('python-pifpaf')
+replaces=('python-pifpaf')
+makedepends=('python-setuptools')
+checkdepends=('python-testrepository' 'python-requests' 'python-testtools' 'python-oslotest'
+              'memcached' 'percona-server' 'percona-server-clients' 'postgresql' 'redis'
+              'ceph' 'consul' 'couchdb' 'elasticsearch' 'httpbin' 'rabbitmq')
+source=("https://github.com/jd/pifpaf/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('075340303f17aa0067c1bc19ca861255efffb6c64f353f7334fa069dfc4456f067aa487ecfa45bb48291e3d9d949f801cead95f6e833d85086090f6c2fdef349')
+
+export PBR_VERSION=$pkgver
+
+prepare() {
+  cd pifpaf-$pkgver
+  echo "graft pifpaf/drivers/templates" > MANIFEST.in
+}
+
+build() {
+  cd pifpaf-$pkgver
+  python setup.py build
+}
+
+check() {
+  # Hack entry points by installing it
+
+  cd pifpaf-$pkgver
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  # TODO: fix test failures
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages" PATH="$PWD/tmp_install/usr/bin:$PATH" python setup.py testr || echo "Tests failed"
+}
+
+package() {
+  cd pifpaf-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list