Date: Friday, July 16, 2021 @ 04:56:29 Author: yan12125 Revision: 977533
upgpkg: python-hvac 0.11.0-1; clarify why not PyPI sdists Modified: python-hvac/trunk/PKGBUILD Deleted: python-hvac/trunk/flask.diff ------------+ PKGBUILD | 16 +++++----------- flask.diff | 13 ------------- 2 files changed, 5 insertions(+), 24 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-07-16 04:53:22 UTC (rev 977532) +++ PKGBUILD 2021-07-16 04:56:29 UTC (rev 977533) @@ -3,8 +3,8 @@ _pkgname=hvac pkgname=python-$_pkgname -pkgver=0.10.14 -pkgrel=2 +pkgver=0.11.0 +pkgrel=1 pkgdesc='Python 2.7/3.X client for HashiCorp Vault' url='https://python-hvac.org/' license=(Apache) @@ -17,10 +17,9 @@ optdepends=( 'python-pyhcl: for parsing returned data' ) -source=("https://github.com/$_pkgname/$_pkgname/archive/v$pkgver/$_pkgname-$pkgver.tar.gz" - 'flask.diff') -sha512sums=('3b3b5c64df5c57679a35e09cd61d29090c950dfaa11f64b4c3f8442a3ccf6512cc2d792f60e035815e4c4857813ba49612e0f52c5da3670bd692116a6bd28469' - 'ce5b56ef800b8e6fbf9f8d8097558ec6e98fd48a140b29a5e81a290eebe37369669b529a3e16fd873768a2591d4192ca2c7f88acca5f71873d47f94d8dc45899') +# Upstream intentionally prune tests from sdists (https://github.com/hvac/hvac/pull/356) +source=("https://github.com/$_pkgname/$_pkgname/archive/v$pkgver/$_pkgname-$pkgver.tar.gz") +sha512sums=('47226ba5113a4df48f115d02d2fb1fa7ab8b42895d38f7fad37c84814db71a57f4e455a9b46134bb577fbded1881e6272464b9f1d1d74142dc089bde03b0eba9') prepare() { # /usr/bin/vault not working in clean chroots as it requires CAP_IPC_LOCK @@ -27,11 +26,6 @@ # https://github.com/hashicorp/vault/issues/10048 mkdir -p vault-unprivileged cp -v /usr/bin/vault vault-unprivileged/ - - cd $_pkgname-$pkgver - # hvac tests incorrect use Flask APIs, and an error is thrown sine Flask 2.0.1 - # https://github.com/pallets/flask/commit/7c5261407dae61679c268b44c63d73909c3fe652 - patch -Np1 -i ../flask.diff } build() { Deleted: flask.diff =================================================================== --- flask.diff 2021-07-16 04:53:22 UTC (rev 977532) +++ flask.diff 2021-07-16 04:56:29 UTC (rev 977533) @@ -1,13 +0,0 @@ -diff --git a/tests/utils/mock_oauth_provider/routes.py b/tests/utils/mock_oauth_provider/routes.py -index b1254ea..54f0956 100644 ---- a/tests/utils/mock_oauth_provider/routes.py -+++ b/tests/utils/mock_oauth_provider/routes.py -@@ -13,7 +13,7 @@ from tests.utils.mock_oauth_provider.models import (OAuth2Client, User, db) - from tests.utils.mock_oauth_provider.oauth2 import (authorization, require_oauth) - - logger = logging.getLogger(__name__) --bp = Blueprint(__name__, 'home') -+bp = Blueprint('home', __name__) - - - def current_user():
