6f76d3f68a
This dependency was added with Iaf4da5aedaa3814b2ecebed4391da2324d3e388d to prevent a warning when using "twine check" with text/markdown descriptions. Per [1], this check doesn't really do anything and will never fail. We are now having issues using this role with with Python 3.8 on the executor as the md dependency pulls in cmarkgfm which has binary dependencies but does not publish any wheels; meaning the executor fails to install as it does not have a toolchain setup. Unfortunately upstream is not particularly active, so building good manylinux wheels is not something we're going to be able to deal with in a timely fashion. Given that this is not a failure, and isn't really doing anything and blocks Python 3.8, it seems our best course is to remove this dependency. [1] https://github.com/pypa/twine/pull/421 Change-Id: Iac5c9f63d41375889e4fdad67b9a45a24a644341
23 lines
623 B
YAML
23 lines
623 B
YAML
- name: Check for twine install
|
|
shell: |
|
|
command -v {{ twine_executable }} || exit 1
|
|
args:
|
|
executable: /bin/bash
|
|
failed_when: false
|
|
register: register_twine
|
|
|
|
- name: Set pypi_twine_executable
|
|
set_fact:
|
|
pypi_twine_executable: "{{ register_twine.stdout }}"
|
|
when: register_twine.rc == 0
|
|
|
|
- name: Ensure twine is installed
|
|
block:
|
|
- name: Ensure twine is installed
|
|
command: "{{ twine_python }} -m pip install twine!=1.12.0 requests-toolbelt!=0.9.0 --user"
|
|
|
|
- name: Set pypi_twine_executable
|
|
set_fact:
|
|
pypi_twine_executable: ~/.local/bin/twine
|
|
when: register_twine.rc != 0
|