Choose poetry env python version earlier (#71)

This commit is contained in:
Kerem Yilmaz
2024-03-14 12:55:02 -07:00
committed by GitHub
parent d093575596
commit db47c31014

View File

@@ -57,9 +57,14 @@ remove_poetry_env() {
fi
}
# Choose python version
choose_python_version_or_fail() {
poetry env use python3.11 || { echo "Error: Python 3.11 is not installed."; exit 1; }
}
# Function to install dependencies
install_dependencies() {
poetry env use python3.11
poetry install
}
@@ -128,6 +133,7 @@ create_organization() {
# Main function
main() {
initialize_env_file
choose_python_version_or_fail
remove_poetry_env
install_dependencies
setup_postgresql