Fix molecule jobs after release of cryptography3.4

Molecule jobs[0] fails with below error:-

ModuleNotFoundError: No module named 'setuptools_rust'

This error appeared following the release of cryptography 3.4, which
now includes Rust code. It can be installed without Rust using a
Python wheel, but only with more recent pip than version 9.0.3
available as RPM on CentOS 8.

The cryptography bug report [1] recommends pip>=19.1.1.

Related-Bug: #1915101

Change-Id: Ib5baad39dd7e43dff9046178c00b0f836dc18bae
David Vallee Delisle 2021-02-09 18:26:43 -05:00
parent a08c2deabb
commit 0bf7951173
2 changed files with 7 additions and 1 deletions

View File

@ -32,6 +32,12 @@
become: true
changed_when: false
- name: Ensure a recent version of pip is installed in virtualenv
name: "pip>=19.1.1"
virtualenv: "{{ ansible_user_dir }}/test-python"
virtualenv_command: "{{ ensure_pip_virtualenv_command }}"
- name: Setup test-python
requirements: "{{ tripleo_validations_project_path }}/molecule-requirements.txt"

View File

@ -48,7 +48,7 @@ sudo touch /etc/ci/
"${PYTHON_EXEC}" -m virtualenv --system-site-packages "${HOME}/test-python"
# Run bindep
"${HOME}/test-python/bin/pip" install pip setuptools bindep --upgrade
"${HOME}/test-python/bin/pip" install "pip>=19.1.1" setuptools bindep --upgrade
# Install local requirements