Avoid cffi 1.14.3 to be installed in CI by old pip versions (#110)

* Avoid cffi 1.14.3 to be installed in CI by old pip versions.

* Avoid too old version being installed.

* Add missing target.
pull/111/head
Felix Fontein 2020-09-16 10:48:43 +02:00 committed by GitHub
parent 7dd1f8a6bd
commit 1b3ff44bc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 0 deletions

View File

@ -1,2 +1,3 @@
dependencies: dependencies:
- setup_remote_constraints
- setup_pkg_mgr - setup_pkg_mgr

View File

@ -25,6 +25,7 @@
become: True become: True
pip: pip:
name: pyOpenSSL name: pyOpenSSL
extra_args: "-c {{ remote_constraints }}"
when: ansible_os_family == 'Darwin' when: ansible_os_family == 'Darwin'
- name: register pyOpenSSL version - name: register pyOpenSSL version

View File

@ -0,0 +1 @@
needs/file/tests/utils/constraints.txt

View File

@ -0,0 +1,2 @@
dependencies:
- setup_remote_tmp_dir

View File

@ -0,0 +1,8 @@
- name: record constraints.txt path on remote host
set_fact:
remote_constraints: "{{ remote_tmp_dir }}/constraints.txt"
- name: copy constraints.txt to remote host
copy:
src: "{{ role_path }}/../../../utils/constraints.txt"
dest: "{{ remote_constraints }}"

View File

@ -40,6 +40,7 @@ boto3 < 1.11 ; python_version < '2.7' # boto3 1.11 drops Python 2.6 support
botocore >= 1.10.0, < 1.14 ; python_version < '2.7' # adds support for the following AWS services: secretsmanager, fms, and acm-pca; botocore 1.14 drops Python 2.6 support botocore >= 1.10.0, < 1.14 ; python_version < '2.7' # adds support for the following AWS services: secretsmanager, fms, and acm-pca; botocore 1.14 drops Python 2.6 support
botocore >= 1.10.0 ; python_version >= '2.7' # adds support for the following AWS services: secretsmanager, fms, and acm-pca botocore >= 1.10.0 ; python_version >= '2.7' # adds support for the following AWS services: secretsmanager, fms, and acm-pca
setuptools < 45 ; python_version <= '2.7' # setuptools 45 and later require python 3.5 or later setuptools < 45 ; python_version <= '2.7' # setuptools 45 and later require python 3.5 or later
cffi >= 1.14.2, != 1.14.3 # Yanked version which older versions of pip will still install:
# freeze pylint and its requirements for consistent test results # freeze pylint and its requirements for consistent test results
astroid == 2.2.5 astroid == 2.2.5