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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,9 +57,14 @@ remove_poetry_env() {
fi 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 # Function to install dependencies
install_dependencies() { install_dependencies() {
poetry env use python3.11
poetry install poetry install
} }
@ -128,6 +133,7 @@ create_organization() {
# Main function # Main function
main() { main() {
initialize_env_file initialize_env_file
choose_python_version_or_fail
remove_poetry_env remove_poetry_env
install_dependencies install_dependencies
setup_postgresql setup_postgresql