mirror of
https://github.com/YunoHost-Apps/django-for-runners_ynh.git
synced 2024-09-03 18:26:16 +02:00
Add test script for venv creation
This commit is contained in:
parent
2656f44309
commit
b024fee4b6
1 changed files with 17 additions and 0 deletions
17
test_requirements.sh
Executable file
17
test_requirements.sh
Executable file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/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
|
||||||
|
$final_path/venv/bin/pip install --no-deps -r "./conf/requirements.txt"
|
Loading…
Reference in a new issue