From 32f66aa284f2e49efaac75dde6396a95dda12aa5 Mon Sep 17 00:00:00 2001 From: Usama Sadiq Date: Tue, 11 Jun 2024 09:28:47 +0500 Subject: [PATCH] feat!: edxapp python 3.11 upgrade --- playbooks/roles/edxapp/defaults/main.yml | 2 +- playbooks/roles/edxapp/tasks/deploy.yml | 4 ++-- playbooks/roles/edxapp/tasks/main.yml | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/playbooks/roles/edxapp/defaults/main.yml b/playbooks/roles/edxapp/defaults/main.yml index 3221affbb9c..114f4fb101d 100644 --- a/playbooks/roles/edxapp/defaults/main.yml +++ b/playbooks/roles/edxapp/defaults/main.yml @@ -13,7 +13,7 @@ # any secrets or host identifying information. # -EDXAPP_PYTHON_VERSION: "python3.8" +EDXAPP_PYTHON_VERSION: "python3.11" # Bucket used for xblock file storage EDXAPP_XBLOCK_FS_STORAGE_BUCKET: !!null diff --git a/playbooks/roles/edxapp/tasks/deploy.yml b/playbooks/roles/edxapp/tasks/deploy.yml index 9501801e990..c5836a230b7 100644 --- a/playbooks/roles/edxapp/tasks/deploy.yml +++ b/playbooks/roles/edxapp/tasks/deploy.yml @@ -344,8 +344,8 @@ - install:app-requirements - name: Pin pip to a specific version. - # Not pinning to the same version as everything else because sandboxes are still python 2.7 - command: "{{ edxapp_sandbox_venv_dir }}/bin/pip install pip==21.2.1" + # Pinning pip to latest version. Constraint will be removed later on. + command: "{{ edxapp_sandbox_venv_dir }}/bin/pip install pip==24.0" args: chdir: "{{ edxapp_code_dir }}" become_user: "{{ edxapp_sandbox_user }}" diff --git a/playbooks/roles/edxapp/tasks/main.yml b/playbooks/roles/edxapp/tasks/main.yml index 219a0288a89..a2ed29b126f 100644 --- a/playbooks/roles/edxapp/tasks/main.yml +++ b/playbooks/roles/edxapp/tasks/main.yml @@ -175,11 +175,11 @@ - install - install:base -- name: install python3.8 +- name: install python3.11 apt: pkg: - - python3.8-dev - - python3.8-distutils + - python3.11-dev + - python3.11-distutils update_cache: yes register: install_pkgs until: install_pkgs is success