mirror of
https://github.com/YunoHost/ynh-dev.git
synced 2024-09-03 20:05:59 +02:00
yet another python3 migration
This commit is contained in:
parent
a746e27765
commit
4f82959a41
1 changed files with 5 additions and 5 deletions
10
ynh-dev
10
ynh-dev
|
@ -356,14 +356,14 @@ function run_tests()
|
|||
# Pytest and tests dependencies
|
||||
if ! type "pytest" > /dev/null 2>&1; then
|
||||
info "> Installing pytest ..."
|
||||
apt-get install python-pip -y
|
||||
pip2 install pytest pytest-sugar
|
||||
apt-get install python3-pip -y
|
||||
pip3 install pytest pytest-sugar
|
||||
fi
|
||||
for DEP in "pytest-mock requests-mock mock"
|
||||
do
|
||||
if [ -z "$(pip show $DEP)" ]; then
|
||||
info "Installing $DEP with pip"
|
||||
pip2 install $DEP
|
||||
if [ -z "$(pip3 show $DEP)" ]; then
|
||||
info "Installing $DEP with pip3"
|
||||
pip3 install $DEP
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in a new issue