From d048785640a4a7677e2a123cbd92105875c1ba5a Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 16 Oct 2018 13:31:55 -0700 Subject: [PATCH] Update requirements for urllib3 for python 2.6. --- test/integration/targets/uri/files/constraints.txt | 2 -- test/integration/targets/uri/tasks/main.yml | 2 +- test/runner/requirements/constraints.txt | 1 + 3 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 test/integration/targets/uri/files/constraints.txt diff --git a/test/integration/targets/uri/files/constraints.txt b/test/integration/targets/uri/files/constraints.txt deleted file mode 100644 index 88234c427f..0000000000 --- a/test/integration/targets/uri/files/constraints.txt +++ /dev/null @@ -1,2 +0,0 @@ -cryptography < 2.2 ; python_version < "2.7" # cryptography 2.2+ requires python 2.7+ -pyopenssl < 18.0 ; python_version < "2.7" # pyopenssl 18.0+ requires python 2.7+ diff --git a/test/integration/targets/uri/tasks/main.yml b/test/integration/targets/uri/tasks/main.yml index abb249dca8..8d5d355014 100644 --- a/test/integration/targets/uri/tasks/main.yml +++ b/test/integration/targets/uri/tasks/main.yml @@ -285,7 +285,7 @@ pip: name: "{{ item }}" state: latest - extra_args: "-c {{ role_path }}/files/constraints.txt" + extra_args: "-c {{ role_path }}/../../../runner/requirements/constraints.txt" with_items: - urllib3 - PyOpenSSL diff --git a/test/runner/requirements/constraints.txt b/test/runner/requirements/constraints.txt index b37f5b3dad..e7479c8090 100644 --- a/test/runner/requirements/constraints.txt +++ b/test/runner/requirements/constraints.txt @@ -1,5 +1,6 @@ coverage >= 4.2, != 4.3.2 # features in 4.2+ required, avoid known bug in 4.3.2 on python 2.6 cryptography < 2.2 ; python_version < '2.7' # cryptography 2.2 drops support for python 2.6 +urllib3 < 1.24 ; python_version < '2.7' # urllib3 1.24 and later require python 2.7 or later pywinrm >= 0.3.0 # message encryption support sphinx < 1.6 ; python_version < '2.7' # sphinx 1.6 and later require python 2.7 or later sphinx < 1.8 ; python_version >= '2.7' # sphinx 1.8 and later are currently incompatible with rstcheck 3.3