django-for-runners_ynh/test_requirements.sh

18 lines
416 B
Bash
Raw Normal View History

2021-11-22 22:59:15 +01:00
#!/bin/bash
# Test to create the python virtual env and install all requirements.
# Note: Maybe you didn't have all OS packages installed ;)
set -e
final_path="./local_test"
set -x
mkdir -p "${final_path}/"
python3 -m venv "${final_path}/venv"
source "${final_path}/venv/bin/activate"
$final_path/venv/bin/pip install --upgrade wheel pip
2022-04-15 16:54:04 +02:00
$final_path/venv/bin/pip install --no-deps -r "./conf/requirements.txt"