From b5e6652c72706398f3e6ebff28f52831907926e1 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Mon, 23 Oct 2017 13:08:17 -0400 Subject: [PATCH] add more debugging to the upload-pypi role Show the files discovered for upload. Change-Id: I74279e8901f7790d935ce664b8026a4acf8b7ba4 Signed-off-by: Doug Hellmann --- roles/upload-pypi/tasks/main.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/upload-pypi/tasks/main.yaml b/roles/upload-pypi/tasks/main.yaml index 618100094..864fe4def 100644 --- a/roles/upload-pypi/tasks/main.yaml +++ b/roles/upload-pypi/tasks/main.yaml @@ -15,6 +15,11 @@ patterns: "*.whl" register: found_wheels +- name: Report no wheels to be uploaded + debug: + msg: "Found no wheels to upload: {{found_wheels.msg}}" + when: found_wheels.files == [] + - name: Upload wheel with twine before tarballs command: "{{ pypi_twine_executable }} upload --config-file {{ _pypirc_tmp.path }} -r {{ pypi_repository }} {{ item.path }}" with_items: "{{ found_wheels.files }}" @@ -25,6 +30,11 @@ patterns: "*.tar.gz" register: found_tarballs +- name: Report no tarballs to be uploaded + debug: + msg: "Found no tarballs to upload: {{found_tarballs.msg}}" + when: found_tarballs.files == [] + - name: Upload tarballs with twine command: "{{ pypi_twine_executable }} upload --config-file {{ _pypirc_tmp.path }} -r {{ pypi_repository }} {{ item.path }}" with_items: "{{ found_tarballs.files }}"