From be7765d2257fc8aedb45b03172e7a86c14a18d07 Mon Sep 17 00:00:00 2001 From: Usama Sadiq Date: Thu, 28 Mar 2024 22:35:30 +0500 Subject: [PATCH] fix: install backports-zoneinfo only for python<3.9 --- requirements/base.txt | 6 ++++-- requirements/constraints.txt | 3 +++ requirements/dev.txt | 9 ++------- requirements/test.txt | 9 ++------- 4 files changed, 11 insertions(+), 16 deletions(-) diff --git a/requirements/base.txt b/requirements/base.txt index 79a90fa4..5ab99f1c 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -6,8 +6,10 @@ # asgiref==3.8.1 # via django -backports-zoneinfo==0.2.1 - # via django +backports-zoneinfo==0.2.1 ; python_version < "3.9" + # via + # -c requirements/constraints.txt + # django certifi==2024.2.2 # via requests cffi==1.16.0 diff --git a/requirements/constraints.txt b/requirements/constraints.txt index aaea43da..b67ddd1a 100644 --- a/requirements/constraints.txt +++ b/requirements/constraints.txt @@ -9,3 +9,6 @@ # linking to it here is good. -c common_constraints.txt + +# For python greater than or equal to 3.9 backports.zoneinfo causing failures +backports.zoneinfo; python_version<'3.9' diff --git a/requirements/dev.txt b/requirements/dev.txt index 9b58ac3b..052bfb04 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -12,14 +12,14 @@ asgiref==3.8.1 # via # -r requirements/test.txt # django -astroid==3.1.0 astroid==3.1.0 # via # -r requirements/test.txt # pylint # pylint-celery -backports-zoneinfo==0.2.1 +backports-zoneinfo==0.2.1 ; python_version < "3.9" # via + # -c requirements/constraints.txt # -r requirements/test.txt # django build==1.2.1 @@ -73,7 +73,6 @@ coverage[toml]==7.4.4 # via # -r requirements/test.txt # pytest-cov -cryptography==42.0.5 cryptography==42.0.5 # via # -r requirements/test.txt @@ -193,7 +192,6 @@ pyjwt[crypto]==2.8.0 # via # -r requirements/test.txt # social-auth-core -pylint==3.1.0 pylint==3.1.0 # via # -r requirements/test.txt @@ -271,7 +269,6 @@ sqlparse==0.4.4 # via # -r requirements/test.txt # django -stevedore==5.2.0 stevedore==5.2.0 # via # -r requirements/test.txt @@ -293,7 +290,6 @@ tomli==2.0.1 # pyproject-hooks # pytest # tox -tomlkit==0.12.4 tomlkit==0.12.4 # via # -r requirements/test.txt @@ -306,7 +302,6 @@ traceback2==1.4.0 # via # -r requirements/test.txt # unittest2 -typing-extensions==4.10.0 typing-extensions==4.10.0 # via # -r requirements/test.txt diff --git a/requirements/test.txt b/requirements/test.txt index 18884af1..a90c676f 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -10,13 +10,13 @@ asgiref==3.8.1 # via # -r requirements/base.txt # django -astroid==3.1.0 astroid==3.1.0 # via # pylint # pylint-celery -backports-zoneinfo==0.2.1 +backports-zoneinfo==0.2.1 ; python_version < "3.9" # via + # -c requirements/constraints.txt # -r requirements/base.txt # django cachetools==5.3.3 @@ -50,7 +50,6 @@ coverage[toml]==7.4.4 # via # -r requirements/test.in # pytest-cov -cryptography==42.0.5 cryptography==42.0.5 # via # -r requirements/base.txt @@ -131,7 +130,6 @@ pyjwt[crypto]==2.8.0 # via # -r requirements/base.txt # social-auth-core -pylint==3.1.0 pylint==3.1.0 # via # edx-lint @@ -191,7 +189,6 @@ sqlparse==0.4.4 # via # -r requirements/base.txt # django -stevedore==5.2.0 stevedore==5.2.0 # via code-annotations text-unidecode==1.3 @@ -203,14 +200,12 @@ tomli==2.0.1 # pyproject-api # pytest # tox -tomlkit==0.12.4 tomlkit==0.12.4 # via pylint tox==4.14.2 # via -r requirements/test.in traceback2==1.4.0 # via unittest2 -typing-extensions==4.10.0 typing-extensions==4.10.0 # via # -r requirements/base.txt