1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/runner/docker/requirements.sh

24 lines
475 B
Bash
Raw Normal View History

#!/bin/bash -eu
python_versions=(
2.6
2.7
3.5
3.6
)
requirements=()
for requirement in *.txt; do
if [ "${requirement}" != "constraints.txt" ]; then
requirements+=("-r" "${requirement}")
fi
done
for python_version in "${python_versions[@]}"; do
set -x
"python${python_version}" /tmp/get-pip.py -c constraints.txt
"pip${python_version}" install --disable-pip-version-check -c constraints.txt "${requirements[@]}"
set +x
done