From e301eb11c29e6b9b2a95f5ff4f62de61335e0d73 Mon Sep 17 00:00:00 2001 From: Eero Aaltonen Date: Sun, 1 Mar 2026 13:13:04 +0200 Subject: [PATCH] fixup install dependency on test specific runme.sh --- tests/integration/requirements.txt | 8 -------- tests/integration/targets/pgp_keyring/runme.sh | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 8 deletions(-) delete mode 100644 tests/integration/requirements.txt create mode 100755 tests/integration/targets/pgp_keyring/runme.sh diff --git a/tests/integration/requirements.txt b/tests/integration/requirements.txt deleted file mode 100644 index f4d81333ac..0000000000 --- a/tests/integration/requirements.txt +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Ansible Project -# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) -# SPDX-License-Identifier: GPL-3.0-or-later - - -# requirement for the pgp_keyring action plugin -PGPy == 0.6.0 ; python_version <= '3.12' -PGPym ~= 0.6.1 ; python_version >= '3.13' diff --git a/tests/integration/targets/pgp_keyring/runme.sh b/tests/integration/targets/pgp_keyring/runme.sh new file mode 100755 index 0000000000..5991cbb52f --- /dev/null +++ b/tests/integration/targets/pgp_keyring/runme.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +# Copyright (c) Ansible Project +# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +# SPDX-License-Identifier: GPL-3.0-or-later + +set -eux + +source virtualenv.sh + +# Requirements have to be installed prior to running ansible-playbook +# because plugins and requirements are loaded before the task runs + +pip show -qq PGPy || \ +pip install PGPym + +ANSIBLE_ROLES_PATH=../ ansible-playbook runme.yml "$@"