ensure-twine: make python3 default, ensure pip installed

Make the default twine python installation use "python3".  Use the
ensure-pip role before calling pip.

This role currently isn't tested; it is added with upload-pypi testing
in the follow-on Ie40ec32b3b2ffc4646301c6e145c527fe6a3bae2

Change-Id: I55ef79bf9c5af9e4d1da24ed654821277edb663b
This commit is contained in:
Ian Wienand 2022-07-13 11:56:02 +10:00
parent 2c58a8ceed
commit ffe4f4fea5
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,3 @@
--- ---
twine_python: python twine_python: python3
twine_executable: twine twine_executable: twine

View File

@ -13,6 +13,10 @@
- name: Ensure twine is installed - name: Ensure twine is installed
block: block:
- name: Ensure pip
include_role:
name: ensure-pip
- name: Ensure twine is installed - name: Ensure twine is installed
command: "{{ twine_python }} -m pip install twine!=1.12.0 requests-toolbelt!=0.9.0 --user" command: "{{ twine_python }} -m pip install twine!=1.12.0 requests-toolbelt!=0.9.0 --user"