bumpver/scripts/update_conda_env_deps.sh

30 lines
913 B
Bash
Raw Normal View History

2018-11-04 21:34:53 +01:00
#!/bin/bash
2019-02-15 19:57:18 +01:00
read -r -a env_py_paths <<< "${CONDA_ENV_BIN_PYTHON_PATHS//, /$IFS}";
2018-11-04 21:34:53 +01:00
read -r -a env_names <<< "${CONDA_ENV_NAMES//, /$IFS}";
2019-02-15 19:57:18 +01:00
for i in ${!env_py_paths[@]}; do
env_path_python=${env_py_paths[i]};
2018-11-04 21:34:53 +01:00
env_name=${env_names[i]};
${env_path_python} -m pip install --upgrade --quiet pip;
echo "updating ${env_name} pypi deps ...";
2019-02-15 19:57:18 +01:00
# pytest is required in every environment to run the test suite
# against the installed modules.
${env_path_python} -m pip install \
--disable-pip-version-check --upgrade --quiet \
pytest;
2018-11-04 21:34:53 +01:00
${env_path_python} -m pip install \
--disable-pip-version-check --upgrade --quiet \
--requirement=requirements/pypi.txt;
echo "updating ${env_name} vendor deps ...";
${env_path_python} -m pip install \
--disable-pip-version-check --upgrade --quiet \
--requirement=requirements/vendor.txt;
done;