test/upload-pypi : install venv

When we added this test I used ensure-pip in the ensure-twine role to
pull in the pip dependency.  But we soon realised that ensure-twine
ran in a rootless context so couldn't install packages, and reverted
it with I2cf4224228860b8a2cddd360636bb8633967b07e.

However, this testing wasn't fixed up.  Use ensure-pip in the test
playbook before we run the test, and add a note to ensure-twine that
it runs without privileges.

Change-Id: I6aef14b188dce8c4de774b09ddad718fec8fbf6c
This commit is contained in:
Ian Wienand 2022-07-27 05:50:40 +10:00
parent 08c922fd98
commit e0a2b647a6
2 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,9 @@
Ensure twine is installed.
This role is designed to run without permissions, so assumes a working
Python 3 ``pip`` environment (i.e. it will not install system
packages).
**Role Variables**
.. zuul:rolevar:: twine_python

View File

@ -1,5 +1,8 @@
- hosts: all
tasks:
- name: Ensure pip works for ensure-twine
include_role:
name: ensure-pip
- name: Install twine
include_role: