Compare commits

...

2 Commits

Author SHA1 Message Date
gauthiier
3e6c8aa179 auto script 2023-07-19 12:09:39 +02:00
gauthiier
509139d57b venv reqs 2023-07-19 12:06:50 +02:00
2 changed files with 30 additions and 0 deletions

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
Markdown==3.4.3
Wand==0.6.11

28
sssstatic.sh Executable file
View File

@ -0,0 +1,28 @@
#!/bin/bash
if ! [[ "$1" =~ ^(install|clean|run) ]]; then
echo "usage: $0 [action]"
echo "where action can be: [install, clean, run]"
exit 1
fi
case $1 in
install)
echo "intalling virtual environment and dependecies"
python -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
;;
clean)
echo "cleaning up"
rm -rf venv
;;
run)
echo "running"
# source venv/bin/activate
# exec python $2 "${@:3}"
esac