mirror of
https://github.com/botlabsDev/npkpy.git
synced 2025-12-10 06:54:37 +01:00
26 lines
529 B
Bash
Executable file
26 lines
529 B
Bash
Executable file
#!/bin/bash
|
|
|
|
venv=${1:-virtualenv}
|
|
|
|
## setup virtualenv if not already exist
|
|
if [[ ! -e ${venv} ]]; then
|
|
virtualenv --python=python ${venv}
|
|
${venv}/bin/pip install pip --upgrade
|
|
${venv}/bin/pip install pip -r requirements.txt
|
|
${venv}/bin/pip install pip -e .
|
|
fi
|
|
|
|
git config user.name "botlabsDev"
|
|
git config user.email "git@botlabs.dev"
|
|
echo "--git config--"
|
|
echo -n "git user:"; git config user.name
|
|
echo -n "git email:"; git config user.email
|
|
echo "--------------"
|
|
|
|
## start virtualenv
|
|
source ${venv}/bin/activate
|
|
|
|
|
|
|
|
|
|
|