summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2021-02-15 13:14:00 -0800
committerMatt Clay <matt@mystile.com>2021-02-18 11:44:48 -0800
commitb20547af70c724f8d8bd2ca83ebb1c901813f354 (patch)
tree1630f4064081c84e7ced7880775c3902b2ef72cb
parentf5d61a4a0a2aa7f8c2c753db316f0b2492da46e4 (diff)
downloadansible-b20547af70c724f8d8bd2ca83ebb1c901813f354.tar.gz
Fix cryptography install in ansible-test.
This fix is based on https://github.com/ansible/ansible/pull/73530/
-rw-r--r--changelogs/fragments/ansible-test-cryptography-fix.yml2
-rw-r--r--test/lib/ansible_test/_data/requirements/constraints.txt1
2 files changed, 3 insertions, 0 deletions
diff --git a/changelogs/fragments/ansible-test-cryptography-fix.yml b/changelogs/fragments/ansible-test-cryptography-fix.yml
new file mode 100644
index 0000000000..4c3b8aa059
--- /dev/null
+++ b/changelogs/fragments/ansible-test-cryptography-fix.yml
@@ -0,0 +1,2 @@
+bugfixes:
+ - ansible-test - Temporarily limit ``cryptography`` to versions before 3.4 to enable tests to function.
diff --git a/test/lib/ansible_test/_data/requirements/constraints.txt b/test/lib/ansible_test/_data/requirements/constraints.txt
index a9d8653e8d..bf223c0171 100644
--- a/test/lib/ansible_test/_data/requirements/constraints.txt
+++ b/test/lib/ansible_test/_data/requirements/constraints.txt
@@ -1,6 +1,7 @@
coverage >= 4.2, < 5.0.0, != 4.3.2 ; python_version <= '3.7' # features in 4.2+ required, avoid known bug in 4.3.2 on python 2.6, coverage 5.0+ incompatible
coverage >= 4.5.4, < 5.0.0 ; python_version > '3.7' # coverage had a bug in < 4.5.4 that would cause unit tests to hang in Python 3.8, coverage 5.0+ incompatible
cryptography < 2.2 ; python_version < '2.7' # cryptography 2.2 drops support for python 2.6
+cryptography < 3.4 ; python_version >= '2.7' # cryptography 3.4+ fails to install on many systems
deepdiff < 4.0.0 ; python_version < '3' # deepdiff 4.0.0 and later require python 3
jinja2 < 2.11 ; python_version < '2.7' # jinja2 2.11 and later require python 2.7 or later
urllib3 < 1.24 ; python_version < '2.7' # urllib3 1.24 and later require python 2.7 or later