Skip to content

Commit

Permalink
Update default ansible-test docker container. (ansible#37644)
Browse files Browse the repository at this point in the history
* Limit cryptography version for Python 2.6 tests.
* Specify pip list format to eliminate warning.
  • Loading branch information
mattclay authored Mar 20, 2018
1 parent b95b077 commit f11986c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/runner/docker/requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ for python_version in "${python_versions[@]}"; do

echo "==> Checking for requirements conflicts for ${python_version} ..."

after=$("pip${python_version}" list)
after=$("pip${python_version}" list --format=legacy)

for requirement in "${version_requirements[@]}"; do
before="${after}"
Expand All @@ -57,7 +57,7 @@ for python_version in "${python_versions[@]}"; do
"pip${python_version}" install --disable-pip-version-check -c constraints.txt -r "${requirement}"
set +x

after=$("pip${python_version}" list)
after=$("pip${python_version}" list --format=legacy)

if [ "${before}" != "${after}" ]; then
echo "==> Conflicts detected in requirements for python ${python_version}: ${requirement}"
Expand Down
1 change: 1 addition & 0 deletions test/runner/requirements/constraints.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
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
pywinrm >= 0.3.0 # message encryption support
astroid == 1.5.3 ; python_version >= '3.5' # newer versions of astroid require newer versions of pylint to avoid bugs
pylint == 1.7.4 ; python_version >= '3.5' # versions before 1.7.1 hang or fail to install on python 3.x
Expand Down

0 comments on commit f11986c

Please sign in to comment.