Skip to content

Commit

Permalink
feat: complete support for python projects with requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Aug 14, 2023
1 parent b3a27c7 commit ad6146e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tmux/tmuxs/new.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ if [ -f Pipfile ]; then

if [ -n "$pipenv" ]; then
message 'tmux' "setup project base on pipenv ($pipenv)" 'warn' && sleep 5
bash -c "$pipenv install --verbose --dev"
bash -c "$pipenv install --verbose --dev" || msg 'tmux' 'pipenv requirement installation failed' 'error'

# shellcheck disable=2016
commands+=('pipenv shell --fancy' "${commands[@]}")
Expand All @@ -102,6 +102,9 @@ if [ -f requirements.txt ]; then

if [ -d '.venv' ]; then
commands+=('source .venv/bin/activate')

# shellcheck disable=1091
source '.venv/bin/activate' && pip install -r requirements.txt && deactivate
fi
fi

Expand Down

0 comments on commit ad6146e

Please sign in to comment.