1
0
mirror of synced 2026-01-04 00:04:25 -05:00
Files
airbyte/tools/bin/check_requirements.sh
Brian Leonard c302af45ff Upgrade to Python 3.9 (#11763)
* Dockerfile to 3.9

* Python version

* More python updates

* 3.9 on GitHub actions and lint updates

* Test out 3.9.11 on GitHub actions

* install python with an action

* formatting: newline

* Also has python code

* only check first level for changed modules
Previous example (source-google-search-console/credentials)

* Test failure: there is no logger.trace
2022-04-11 20:51:37 -07:00

68 lines
2.0 KiB
Bash
Executable File

printf "Docker ";
if [[ $(which docker) && $(docker --version) ]]; then
printf "is installed"
else
printf "needs to be installed"
fi;
printf "\n";
desired="14"
printf "Java ";
if [[ "$(which java)" && "$(java --version)" ]];
then
printf "installed"
str="$(java --version)"
IFS=' ' read -ra array <<< "${str}"
version="${array[1]}"
if [[ "${version}" > "${desired}" || "${version}" == "${desired}" ]];
then
printf " and functional"
else
printf " but not functional, must have version ${desired} at least"
fi
else
printf "not installed, must have version ${desired} at least"
fi;
printf "\n";
desired="20.1"
printf "Pip ";
if [[ "$(which pip)" && "$(pip --version)" ]];
then
printf "installed"
str="$(pip --version)"
IFS=' ' read -ra array <<< "${str}"
version="${array[1]}"
if [[ "${version}" > "${desired}" || "${version}" == "${desired}" ]];
then
printf " and functional"
else
printf " but not functional, must have version ${desired} at least"
fi
else
printf "not installed, must have version ${desired} at least"
fi;
printf "\n";
desired="3.9.11"
printf "Python ";
if [[ "$(which python3)" && "$(python3 --version)" ]];
then
printf "installed"
str="$(python3 --version)"
IFS=' ' read -ra array <<< "${str}"
version="${array[1]}"
if [[ "${version}" > "${desired}" || "${version}" == "${desired}" ]];
then
printf " and functional"
else
printf " but not functional, must have version ${desired} at least"
fi
else
printf "not installed, must have version ${desired} at least"
fi;
printf "\n";
printf "JQ ";
if [[ $(which jq) && $(jq --version) ]]; then
printf "is installed"
else
printf "needs to be installed"
fi;
printf "\n";