From 94e6987195709f36d0281f7aab6285c01bda15e4 Mon Sep 17 00:00:00 2001 From: Usama Sadiq Date: Mon, 28 Oct 2024 15:07:10 +0500 Subject: [PATCH] build: update deps for analytics-api Python 3.12 support --- playbooks/roles/analytics_api/tasks/main.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/playbooks/roles/analytics_api/tasks/main.yml b/playbooks/roles/analytics_api/tasks/main.yml index 4f460d56d8f..cd6f962bf20 100644 --- a/playbooks/roles/analytics_api/tasks/main.yml +++ b/playbooks/roles/analytics_api/tasks/main.yml @@ -15,6 +15,21 @@ # Dependencies: # +- name: Update pip for Python 3.12 Support + pip: + name: pip==24.2 + state: present + +- name: Update common deps for Python 3.12 Support + pip: + name: + - configparser==7.0.0 + - setuptools==75.0.0 + - virtualenv==20.27.0 + - zipp==3.20.2 + - importlib-resources==6.4.5 + state: present + - name: create api users shell: "{{ analytics_api_home }}/venvs/{{ analytics_api_service_name }}/bin/python manage.py set_api_key {{ item.key }} {{ item.value }}" args: