diff --git a/create_venv.sh b/create_venv.sh new file mode 100644 index 0000000..ba53ea2 --- /dev/null +++ b/create_venv.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# learn more in documentation +# Official python docs: https://docs.python.org/3/library/venv.html +# Superviely developer portal: https://developer.supervise.ly/getting-started/installation#venv + +if [ -d ".venv" ]; then + echo "VENV already exists, will be removed" + rm -rf .venv +fi + +echo "VENV will be created" && \ +python3 -m venv .venv && \ +source .venv/bin/activate && \ + +echo "Install requirements..." && \ +pip3 install -r dev_requirements.txt && \ +echo "Requirements have been successfully installed" && \ +echo "Testing imports, please wait a minute ..." && \ +python3 -c "import supervisely as sly" && \ +echo "Success!" && \ +deactivate \ No newline at end of file diff --git a/dev_requirements.txt b/dev_requirements.txt index d5cc636..09407bb 100644 --- a/dev_requirements.txt +++ b/dev_requirements.txt @@ -1 +1 @@ -supervisely==6.72.206 +supervisely==6.72.233