Skip to content

Commit

Permalink
Avoid cffi 1.14.3 to be installed in CI by old pip versions (#110)
Browse files Browse the repository at this point in the history
* Avoid cffi 1.14.3 to be installed in CI by old pip versions.

* Avoid too old version being installed.

* Add missing target.
  • Loading branch information
felixfontein authored Sep 16, 2020
1 parent 7dd1f8a commit 1b3ff44
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/integration/targets/setup_openssl/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dependencies:
- setup_remote_constraints
- setup_pkg_mgr
1 change: 1 addition & 0 deletions tests/integration/targets/setup_openssl/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
become: True
pip:
name: pyOpenSSL
extra_args: "-c {{ remote_constraints }}"
when: ansible_os_family == 'Darwin'

- name: register pyOpenSSL version
Expand Down
1 change: 1 addition & 0 deletions tests/integration/targets/setup_remote_constraints/aliases
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
needs/file/tests/utils/constraints.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dependencies:
- setup_remote_tmp_dir
Original file line number Diff line number Diff line change
@@ -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 }}"
1 change: 1 addition & 0 deletions tests/utils/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 ; 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
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
astroid == 2.2.5
Expand Down

0 comments on commit 1b3ff44

Please sign in to comment.