Date: Tuesday, January 31, 2023 @ 20:30:54
Author: felixonmars
Revision: 1391554
upgpkg: pifpaf 3.1.5-5
Modified:
pifpaf/trunk/PKGBUILD
----------+
PKGBUILD | 22 ++++++++--------------
1 file changed, 8 insertions(+), 14 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2023-01-31 20:30:20 UTC (rev 1391553)
+++ PKGBUILD 2023-01-31 20:30:54 UTC (rev 1391554)
@@ -2,7 +2,8 @@
pkgname=pifpaf
pkgver=3.1.5
-pkgrel=4
+_commit=d5e33872c3c2ef3067da6e1150c3f050f4a7b620
+pkgrel=5
pkgdesc='Suite of tools and fixtures to manage daemons for testing'
arch=('any')
license=('Apache')
@@ -12,22 +13,15 @@
provides=("python-pifpaf=$pkgver")
conflicts=('python-pifpaf')
replaces=('python-pifpaf')
-makedepends=('python-setuptools')
+makedepends=('git' 'python-setuptools')
checkdepends=('python-testrepository' 'python-requests' 'python-testtools'
'python-oslotest'
'memcached' 'percona-server' 'percona-server-clients'
'postgresql' 'redis'
'consul' 'couchdb' 'httpbin' 'rabbitmq')
-source=("https://github.com/jd/pifpaf/archive/$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('075340303f17aa0067c1bc19ca861255efffb6c64f353f7334fa069dfc4456f067aa487ecfa45bb48291e3d9d949f801cead95f6e833d85086090f6c2fdef349')
+source=("git+https://github.com/jd/pifpaf.git#commit=$_commit")
+sha512sums=('SKIP')
-export PBR_VERSION=$pkgver
-
-prepare() {
- cd pifpaf-$pkgver
- echo "graft pifpaf/drivers/templates" > MANIFEST.in
-}
-
build() {
- cd pifpaf-$pkgver
+ cd pifpaf
python setup.py build
}
@@ -34,7 +28,7 @@
check() {
# Hack entry points by installing it
- cd pifpaf-$pkgver
+ cd pifpaf
python setup.py install --root="$PWD/tmp_install" --optimize=1
local site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
# TODO: fix test failures
@@ -44,6 +38,6 @@
}
package() {
- cd pifpaf-$pkgver
+ cd pifpaf
python setup.py install --root="$pkgdir" --optimize=1
}