Skip to content
This repository was archived by the owner on May 26, 2025. It is now read-only.

Commit 65cb88d

Browse files
committed
Fix flask apply when poetry is used
1 parent 6fefdb3 commit 65cb88d

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/templates/flask/apply.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,17 @@ cp .github/templates/flask/settings.toml settings.toml
3030

3131
# install
3232
make clean
33-
make install
33+
34+
if [ ! -f pyproject.toml ]
35+
then
36+
make virtualenv
37+
make install
38+
echo "Applied Flask template"
39+
echo "Ensure you activate your env with 'source .venv/bin/activate'"
40+
echo "then run project_name or python -m project_name"
41+
else
42+
poetry install
43+
echo "Applied Flask template"
44+
echo "Ensure you activate your env with 'poetry shell'"
45+
echo "then run project_name or python -m project_name or poetry run project_name"
46+
fi

0 commit comments

Comments
 (0)