Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify install_frameworks.sh script for tests #152

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions scripts/install_frameworks.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
#!/bin/sh
set -ev
set -e

[ ! -z "$DJANGO_VERSION" ] && pip install Django==$DJANGO_VERSION
if [ "$DJANGO_VERSION" ]
then
pip install --force-reinstall Django==$DJANGO_VERSION
fi

# for Flask v1 - lock to specific versions that are supported by Flask v1
pip install itsdangerous==2.0.1
pip install Jinja2==3.0.3
pip install werkzeug==2.0.3

[ -z "$FLASK_VERSION" ] && FLASK_VERSION=1.0
pip install Flask==$FLASK_VERSION

echo "OK"
if [ "$FLASK_VERSION" ]
then
pip install --force-reinstall Flask==$FLASK_VERSION
fi