Skip to content

Instantly share code, notes, and snippets.

@pradyunsg
Created May 19, 2020 14:14
Show Gist options
  • Select an option

  • Save pradyunsg/97fda3edeb04f67533a9df9df3d50706 to your computer and use it in GitHub Desktop.

Select an option

Save pradyunsg/97fda3edeb04f67533a9df9df3d50706 to your computer and use it in GitHub Desktop.
function commands_to_test() {
pip install oslo.utils==1.4.0
}
if [ "$VIRTUAL_ENV" ]; then
echo "Please run 'deactivate' and try again."
exit 1
fi
# Make a virtualenv and use that.
python -m venv old_resolver_environment
python -m venv new_resolver_environment
echo "======================== Old Resolver ========================"
source ./old_resolver_environment/bin/activate
commands_to_test
deactivate
echo "======================== New Resolver ========================"
source ./new_resolver_environment/bin/activate
export PIP_UNSTABLE_FEATURE=resolver
commands_to_test
deactivate
if [ "$VIRTUAL_ENV" ]; then
echo "Please run 'deactivate' and try again."
exit 1
fi
# Make a virtualenv and use that.
python -m venv test_environment
source ./test_environment/bin/activate
# NOTE: Replace this section with appropriate commands.
pip install oslo.utils==1.4.0
# Show details about the environment.
pip list
pip check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment