From 99c59235387fb093717d62de635afbf5da772f6f Mon Sep 17 00:00:00 2001 From: Agrendalath Date: Tue, 23 Apr 2024 22:42:02 +0200 Subject: [PATCH] build: add requirements constraint for Python 3.11+ --- requirements/base.txt | 6 ++++-- requirements/constraints.txt | 3 +++ requirements/test.txt | 3 ++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/requirements/base.txt b/requirements/base.txt index 3f811a1..3dd1d49 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -8,8 +8,10 @@ appdirs==1.4.4 # via fs 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 boto3==1.34.88 # via fs-s3fs botocore==1.34.88 diff --git a/requirements/constraints.txt b/requirements/constraints.txt index d928eac..67c9ee9 100644 --- a/requirements/constraints.txt +++ b/requirements/constraints.txt @@ -14,3 +14,6 @@ # Newer versions fail with: # `AttributeError: module 'openedx.core.lib.safe_lxml.etree' has no attribute '__version__'`. parsel==1.6.0 + +# Temporary to Support the python 3.11 Upgrade +backports.zoneinfo;python_version<"3.9" # Newer versions have zoneinfo available in the standard library diff --git a/requirements/test.txt b/requirements/test.txt index 11f0499..2b60f8a 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -18,8 +18,9 @@ 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 binaryornot==0.4.4