From f44ac4bf3081c81d83bd9b69b39d2b81b1e39a95 Mon Sep 17 00:00:00 2001 From: Usama Sadiq Date: Mon, 4 Mar 2024 17:54:38 +0500 Subject: [PATCH] fix: install backports-zoneinfo only for python<3.9 --- requirements/base.in | 1 + requirements/base.txt | 6 ++++-- requirements/dev.txt | 2 +- requirements/quality.txt | 2 +- requirements/test.txt | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/requirements/base.in b/requirements/base.in index d37c167..544d92c 100644 --- a/requirements/base.in +++ b/requirements/base.in @@ -6,3 +6,4 @@ django-model-utils # Provides TimeStampedModel abstract edx-opaque-keys>=0.2.1 # Create and introspect course and xblock identities six # Utilities for supporting Python 2 & 3 in the same codebase setuptools +backports.zoneinfo; python_version<'3.9' diff --git a/requirements/base.txt b/requirements/base.txt index 3f24098..48dced1 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -6,8 +6,10 @@ # asgiref==3.7.2 # via django -backports-zoneinfo==0.2.1 - # via django +backports-zoneinfo==0.2.1 ; python_version < "3.9" + # via + # -r requirements/base.in + # django django==4.2.11 # via # -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt diff --git a/requirements/dev.txt b/requirements/dev.txt index 204f0c8..8a66a1d 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -13,7 +13,7 @@ astroid==3.1.0 # -r requirements/quality.txt # pylint # pylint-celery -backports-zoneinfo==0.2.1 +backports-zoneinfo==0.2.1 ; python_version < "3.9" # via # -r requirements/quality.txt # django diff --git a/requirements/quality.txt b/requirements/quality.txt index fc1d5db..e675616 100644 --- a/requirements/quality.txt +++ b/requirements/quality.txt @@ -12,7 +12,7 @@ astroid==3.1.0 # via # pylint # pylint-celery -backports-zoneinfo==0.2.1 +backports-zoneinfo==0.2.1 ; python_version < "3.9" # via # -r requirements/test.txt # django diff --git a/requirements/test.txt b/requirements/test.txt index 087299f..3495b4d 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -8,7 +8,7 @@ asgiref==3.7.2 # via # -r requirements/base.txt # django -backports-zoneinfo==0.2.1 +backports-zoneinfo==0.2.1 ; python_version < "3.9" # via # -r requirements/base.txt # django