Chih-Hsuan Yen pushed to branch main at Arch Linux / Packaging / Packages / 
python-hvac


Commits:
013f1ce4 by Chih-Hsuan Yen at 2024-10-10T22:38:08+08:00
Give up integration tests

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -15,11 +15,9 @@ pkgbase = python-hvac
        checkdepends = python-jwcrypto
        checkdepends = python-pytest-mock
        checkdepends = python-pytest-xdist
-       checkdepends = consul
        makedepends = python-build
        makedepends = python-installer
        makedepends = python-poetry-core
-       makedepends = vault
        makedepends = python-pyhcl
        depends = python
        depends = python-requests


=====================================
PKGBUILD
=====================================
@@ -12,30 +12,17 @@ url='https://python-hvac.org/'
 license=('Apache-2.0')
 arch=(any)
 depends=(python python-requests)
-makedepends=(python-build python-installer python-poetry-core vault
+makedepends=(python-build python-installer python-poetry-core
              python-pyhcl)
 checkdepends=(python-pytest python-authlib python-flask python-flask-sqlalchemy
               python-parameterized python-requests-mock python-werkzeug 
python-jwcrypto
-              python-pytest-mock python-pytest-xdist
-              consul)
+              python-pytest-mock python-pytest-xdist)
 optdepends=(
   'python-pyhcl: for HCL parser'
 )
 
source=("https://github.com/$_pkgname/$_pkgname/archive/v$pkgver/$_pkgname-$pkgver.tar.gz";)
 
sha512sums=('d08f7228ab57cd33428f530b14942dcf64b6efebe7589959f4ca3fc021f5da39af6441746417f80f7474d6a7bfb7a0ac94006a64ecf37967d4983698e95241f1')
 
-prepare() {
-  # /usr/bin/vault not working in clean chroots as it requires CAP_IPC_LOCK
-  # https://github.com/hashicorp/vault/issues/10048
-  mkdir -p vault-unprivileged
-  cp -v /usr/bin/vault vault-unprivileged/
-
-  cd $_pkgname-$pkgver
-
-  # Disabling parallel tests. Somehow a test in test_identity.py fails
-  sed -i '/addopts/d' pyproject.toml
-}
-
 build() {
   cd $_pkgname-$pkgver
   python -m build --wheel --no-isolation
@@ -43,11 +30,8 @@ build() {
 
 check() {
   cd $_pkgname-$pkgver
-  # test_ldap requires many unpackaged dependencies
-  # test_cert: some tests fail with requests 2.32 
https://github.com/hvac/hvac/issues/1177
-  PATH="$srcdir/vault-unprivileged:$PATH" pytest tests \
-    --ignore=tests/integration_tests/api/auth_methods/test_ldap.py \
-    --ignore=tests/integration_tests/api/auth_methods/test_cert.py
+  # Integration tests often fail, particularly when vault is upgraded to a new 
minor version
+  pytest tests --ignore=tests/integration_tests
 }
 
 package() {



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-hvac/-/commit/013f1ce4cf170cd0b2be30fa71cfac7e457016f5

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-hvac/-/commit/013f1ce4cf170cd0b2be30fa71cfac7e457016f5
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to