From b65745b4f0a6f37a6ed9d4bf8f0e133162b3b04c Mon Sep 17 00:00:00 2001 From: zubairshakoorarbisoft Date: Mon, 25 Sep 2023 18:03:37 +0500 Subject: [PATCH 01/15] fix: pinned django version changed to 4.2 --- .github/workflows/ci.yml | 8 +++++++- requirements.txt | 2 +- requirements/dev.txt | 2 +- tox.ini | 4 ++-- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 59e21977..50e1a6c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,9 +12,15 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - tox-env: [quality, django32, django40] + tox-env: [quality, django32, django42] python-version: [3.8] db-version: ['mysql57', 'mysql80'] + # excluding mysql5.7 with Django 4.2 since Django 4.2 has + # dropped support for MySQL<8 + exclude: + - django-version: 'django42' + db-version: 'mysql57' + steps: - uses: actions/checkout@v2 diff --git a/requirements.txt b/requirements.txt index 3da71718..2ad790be 100644 --- a/requirements.txt +++ b/requirements.txt @@ -22,7 +22,7 @@ charset-normalizer==3.1.0 # via requests click==8.1.3 # via edx-django-utils -django==3.2.20 +django==4.2.0 # via # -c requirements/common_constraints.txt # -r requirements/base.in diff --git a/requirements/dev.txt b/requirements/dev.txt index f752de68..7eeef7c5 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -51,7 +51,7 @@ distlib==0.3.6 # via # -r requirements/ci.txt # virtualenv -django==3.2.20 +django==4.2.0 # via # -c requirements/common_constraints.txt # -r requirements/test.txt diff --git a/tox.ini b/tox.ini index 6cce29d8..df3856b7 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py38-django{32,40},quality +envlist = py38-django{32,42},quality skipsdist = True [pycodestyle] @@ -14,7 +14,7 @@ norecursedirs = .* jenkins load_tests log reports script test_framework xqueue [testenv] deps = django32: Django>=3.2,<4.0 - django40: Django>=4.0,<4.1 + django42: Django>=4.2,<4.3 -r{toxinidir}/requirements/test.txt passenv = DB_HOST From 1b9b2c095c8807fd0be5c88da74ef629295a190d Mon Sep 17 00:00:00 2001 From: zubairshakoorarbisoft Date: Tue, 26 Sep 2023 14:19:50 +0500 Subject: [PATCH 02/15] fix: pip fix applied --- Makefile | 2 +- requirements.txt | 2 +- requirements/dev.txt | 4 ++-- requirements/pip-tools.txt | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 0edd41d7..6cbb7c3f 100644 --- a/Makefile +++ b/Makefile @@ -44,7 +44,7 @@ $(COMMON_CONSTRAINTS_TXT): export CUSTOM_COMPILE_COMMAND = make upgrade upgrade: $(COMMON_CONSTRAINTS_TXT) ## update the requirements/*.txt files with the latest packages satisfying requirements/*.in - sed 's/Django<2.3//g' requirements/common_constraints.txt > requirements/common_constraints.tmp + sed 's/Django<4.0/Django<4.3/g' requirements/common_constraints.txt > requirements/common_constraints.tmp mv requirements/common_constraints.tmp requirements/common_constraints.txt pip install -qr requirements/pip-tools.txt # Make sure to compile files after any other files they include! diff --git a/requirements.txt b/requirements.txt index 2ad790be..3da71718 100644 --- a/requirements.txt +++ b/requirements.txt @@ -22,7 +22,7 @@ charset-normalizer==3.1.0 # via requests click==8.1.3 # via edx-django-utils -django==4.2.0 +django==3.2.20 # via # -c requirements/common_constraints.txt # -r requirements/base.in diff --git a/requirements/dev.txt b/requirements/dev.txt index 7eeef7c5..e2573dcb 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -51,7 +51,7 @@ distlib==0.3.6 # via # -r requirements/ci.txt # virtualenv -django==4.2.0 +django==3.2.20 # via # -c requirements/common_constraints.txt # -r requirements/test.txt @@ -119,7 +119,7 @@ pbr==5.11.1 # via # -r requirements/test.txt # stevedore -pip-tools==6.12.3 +pip-tools==7.3.0 # via -r requirements/pip-tools.txt platformdirs==3.1.1 # via diff --git a/requirements/pip-tools.txt b/requirements/pip-tools.txt index baf1aa51..a7252db0 100644 --- a/requirements/pip-tools.txt +++ b/requirements/pip-tools.txt @@ -10,7 +10,7 @@ click==8.1.3 # via pip-tools packaging==23.0 # via build -pip-tools==6.12.3 +pip-tools==7.3.0 # via -r requirements/pip-tools.in pyproject-hooks==1.0.0 # via build From 6916488d0b61811df5ef7e699ec0a66422433749 Mon Sep 17 00:00:00 2001 From: edX requirements bot Date: Tue, 26 Sep 2023 05:23:08 -0400 Subject: [PATCH 03/15] chore: Updating Python Requirements --- requirements.txt | 49 +++++++++------- requirements/ci.txt | 14 ++--- requirements/common_constraints.txt | 7 +-- requirements/dev.txt | 91 ++++++++++++++++------------- requirements/pip-tools.txt | 17 ++++-- requirements/pip.txt | 6 +- requirements/quality.txt | 2 +- requirements/test.txt | 70 ++++++++++++---------- 8 files changed, 141 insertions(+), 115 deletions(-) diff --git a/requirements.txt b/requirements.txt index 3da71718..129e398d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,43 +4,44 @@ # # make upgrade # -asgiref==3.6.0 +asgiref==3.7.2 # via django backoff==2.2.1 # via -r requirements/base.in -boto3==1.26.91 +boto3==1.28.54 # via -r requirements/base.in -botocore==1.29.91 +botocore==1.31.54 # via # boto3 # s3transfer -certifi==2022.12.7 +certifi==2023.7.22 # via requests cffi==1.15.1 # via pynacl -charset-normalizer==3.1.0 +charset-normalizer==3.2.0 # via requests -click==8.1.3 +click==8.1.7 # via edx-django-utils -django==3.2.20 +django==3.2.21 # via # -c requirements/common_constraints.txt # -r requirements/base.in # django-crum # django-storages + # django-waffle # edx-django-release-util # edx-django-utils django-crum==0.7.9 # via edx-django-utils -django-storages==1.13.2 +django-storages==1.14 # via -r requirements/base.in -django-waffle==3.0.0 +django-waffle==4.0.0 # via edx-django-utils -edx-django-release-util==1.2.0 +edx-django-release-util==1.3.0 # via -r requirements/base.in -edx-django-utils==5.2.0 +edx-django-utils==5.7.0 # via -r requirements/base.in -gunicorn==20.1.0 +gunicorn==21.2.0 # via -r requirements/base.in idna==3.4 # via requests @@ -50,17 +51,19 @@ jmespath==1.0.1 # via # boto3 # botocore -mysqlclient==2.1.1 +mysqlclient==2.2.0 # via -r requirements/base.in -newrelic==8.7.0 +newrelic==9.1.0 # via # -r requirements/base.in # edx-django-utils +packaging==23.1 + # via gunicorn path-py==11.0.1 # via -r requirements/base.in pbr==5.11.1 # via stevedore -psutil==5.9.4 +psutil==5.9.5 # via edx-django-utils pycparser==2.21 # via cffi @@ -72,26 +75,28 @@ python-memcached==1.59 # via -r requirements/base.in python-termstyle==0.1.10 # via -r requirements/base.in -pytz==2022.7.1 +pytz==2023.3.post1 # via # -r requirements/base.in # django -pyyaml==6.0 +pyyaml==6.0.1 # via edx-django-release-util -requests==2.28.2 +requests==2.31.0 # via -r requirements/base.in -s3transfer==0.6.0 +s3transfer==0.6.2 # via boto3 six==1.16.0 # via # edx-django-release-util # python-dateutil # python-memcached -sqlparse==0.4.3 +sqlparse==0.4.4 # via django -stevedore==5.0.0 +stevedore==5.1.0 # via edx-django-utils -urllib3==1.26.15 +typing-extensions==4.8.0 + # via asgiref +urllib3==1.26.16 # via # botocore # requests diff --git a/requirements/ci.txt b/requirements/ci.txt index a3483c39..09f92b40 100644 --- a/requirements/ci.txt +++ b/requirements/ci.txt @@ -4,17 +4,17 @@ # # make upgrade # -distlib==0.3.6 +distlib==0.3.7 # via virtualenv -filelock==3.9.1 +filelock==3.12.4 # via # tox # virtualenv -packaging==23.0 +packaging==23.1 # via tox -platformdirs==3.1.1 +platformdirs==3.10.0 # via virtualenv -pluggy==1.0.0 +pluggy==1.3.0 # via tox py==1.11.0 # via tox @@ -27,7 +27,7 @@ tox==3.28.0 # -c requirements/common_constraints.txt # -r requirements/ci.in # tox-battery -tox-battery==0.6.1 +tox-battery==0.6.2 # via -r requirements/ci.in -virtualenv==20.21.0 +virtualenv==20.24.5 # via tox diff --git a/requirements/common_constraints.txt b/requirements/common_constraints.txt index a9878ac2..01a199cf 100644 --- a/requirements/common_constraints.txt +++ b/requirements/common_constraints.txt @@ -18,7 +18,7 @@ # using LTS django version -Django<4.0 +Django<4.3 # elasticsearch>=7.14.0 includes breaking changes in it which caused issues in discovery upgrade process. # elastic search changelog: https://www.elastic.co/guide/en/enterprise-search/master/release-notes-7.14.0.html @@ -30,8 +30,3 @@ django-simple-history==3.0.0 # tox>4.0.0 isn't yet compatible with many tox plugins, causing CI failures in almost all repos. # Details can be found in this discussion: https://github.com/tox-dev/tox/discussions/1810 tox<4.0.0 - -# edx-sphinx-theme is not compatible with latest Sphinx==6.0.0 version -# Pinning Sphinx version unless the compatibility issue gets resolved -# For details, see issue https://github.com/openedx/edx-sphinx-theme/issues/197 -sphinx<6.0.0 diff --git a/requirements/dev.txt b/requirements/dev.txt index e2573dcb..a5c69227 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -4,28 +4,24 @@ # # make upgrade # -asgiref==3.6.0 +asgiref==3.7.2 # via # -r requirements/test.txt # django -attrs==22.2.0 - # via - # -r requirements/test.txt - # pytest backoff==2.2.1 # via -r requirements/test.txt -boto3==1.26.91 +boto3==1.28.54 # via -r requirements/test.txt -botocore==1.29.91 +botocore==1.31.54 # via # -r requirements/test.txt # boto3 # s3transfer -build==0.10.0 +build==1.0.3 # via # -r requirements/pip-tools.txt # pip-tools -certifi==2022.12.7 +certifi==2023.7.22 # via # -r requirements/test.txt # requests @@ -33,61 +29,66 @@ cffi==1.15.1 # via # -r requirements/test.txt # pynacl -charset-normalizer==3.1.0 +charset-normalizer==3.2.0 # via # -r requirements/test.txt # requests -click==8.1.3 +click==8.1.7 # via # -r requirements/pip-tools.txt # -r requirements/test.txt # edx-django-utils # pip-tools -coverage[toml]==7.2.1 +coverage[toml]==7.3.1 # via # -r requirements/test.txt # pytest-cov -distlib==0.3.6 +distlib==0.3.7 # via # -r requirements/ci.txt # virtualenv -django==3.2.20 +django==3.2.21 # via # -c requirements/common_constraints.txt # -r requirements/test.txt # django-crum # django-storages + # django-waffle # edx-django-release-util # edx-django-utils django-crum==0.7.9 # via # -r requirements/test.txt # edx-django-utils -django-storages==1.13.2 +django-storages==1.14 # via -r requirements/test.txt -django-waffle==3.0.0 +django-waffle==4.0.0 # via # -r requirements/test.txt # edx-django-utils -edx-django-release-util==1.2.0 +edx-django-release-util==1.3.0 # via -r requirements/test.txt -edx-django-utils==5.2.0 +edx-django-utils==5.7.0 # via -r requirements/test.txt -exceptiongroup==1.1.1 +exceptiongroup==1.1.3 # via # -r requirements/test.txt # pytest -filelock==3.9.1 +filelock==3.12.4 # via # -r requirements/ci.txt # tox # virtualenv -gunicorn==20.1.0 +gunicorn==21.2.0 # via -r requirements/test.txt idna==3.4 # via # -r requirements/test.txt # requests +importlib-metadata==6.8.0 + # via + # -r requirements/pip-tools.txt + # build iniconfig==2.0.0 # via # -r requirements/test.txt @@ -99,18 +100,19 @@ jmespath==1.0.1 # -r requirements/test.txt # boto3 # botocore -mysqlclient==2.1.1 +mysqlclient==2.2.0 # via -r requirements/test.txt -newrelic==8.7.0 +newrelic==9.1.0 # via # -r requirements/test.txt # edx-django-utils -packaging==23.0 +packaging==23.1 # via # -r requirements/ci.txt # -r requirements/pip-tools.txt # -r requirements/test.txt # build + # gunicorn # pytest # tox path-py==11.0.1 @@ -121,17 +123,17 @@ pbr==5.11.1 # stevedore pip-tools==7.3.0 # via -r requirements/pip-tools.txt -platformdirs==3.1.1 +platformdirs==3.10.0 # via # -r requirements/ci.txt # virtualenv -pluggy==1.0.0 +pluggy==1.3.0 # via # -r requirements/ci.txt # -r requirements/test.txt # pytest # tox -psutil==5.9.4 +psutil==5.9.5 # via # -r requirements/test.txt # edx-django-utils @@ -139,7 +141,7 @@ py==1.11.0 # via # -r requirements/ci.txt # tox -pycodestyle==2.10.0 +pycodestyle==2.11.0 # via -r requirements/quality.txt pycparser==2.21 # via @@ -153,12 +155,12 @@ pyproject-hooks==1.0.0 # via # -r requirements/pip-tools.txt # build -pytest==7.2.2 +pytest==7.4.2 # via # -r requirements/test.txt # pytest-cov # pytest-django -pytest-cov==4.0.0 +pytest-cov==4.1.0 # via -r requirements/test.txt pytest-django==4.5.2 # via -r requirements/test.txt @@ -170,19 +172,19 @@ python-memcached==1.59 # via -r requirements/test.txt python-termstyle==0.1.10 # via -r requirements/test.txt -pytz==2022.7.1 +pytz==2023.3.post1 # via # -r requirements/test.txt # django pywatchman==1.4.1 ; "linux" in sys_platform # via -r requirements/dev.in -pyyaml==6.0 +pyyaml==6.0.1 # via # -r requirements/test.txt # edx-django-release-util -requests==2.28.2 +requests==2.31.0 # via -r requirements/test.txt -s3transfer==0.6.0 +s3transfer==0.6.2 # via # -r requirements/test.txt # boto3 @@ -194,11 +196,11 @@ six==1.16.0 # python-dateutil # python-memcached # tox -sqlparse==0.4.3 +sqlparse==0.4.4 # via # -r requirements/test.txt # django -stevedore==5.0.0 +stevedore==5.1.0 # via # -r requirements/test.txt # edx-django-utils @@ -209,6 +211,7 @@ tomli==2.0.1 # -r requirements/test.txt # build # coverage + # pip-tools # pyproject-hooks # pytest # tox @@ -217,21 +220,29 @@ tox==3.28.0 # -c requirements/common_constraints.txt # -r requirements/ci.txt # tox-battery -tox-battery==0.6.1 +tox-battery==0.6.2 # via -r requirements/ci.txt -urllib3==1.26.15 +typing-extensions==4.8.0 + # via + # -r requirements/test.txt + # asgiref +urllib3==1.26.16 # via # -r requirements/test.txt # botocore # requests -virtualenv==20.21.0 +virtualenv==20.24.5 # via # -r requirements/ci.txt # tox -wheel==0.40.0 +wheel==0.41.2 # via # -r requirements/pip-tools.txt # pip-tools +zipp==3.17.0 + # via + # -r requirements/pip-tools.txt + # importlib-metadata # The following packages are considered to be unsafe in a requirements file: # pip diff --git a/requirements/pip-tools.txt b/requirements/pip-tools.txt index a7252db0..894fa179 100644 --- a/requirements/pip-tools.txt +++ b/requirements/pip-tools.txt @@ -4,20 +4,27 @@ # # make upgrade # -build==0.10.0 +build==1.0.3 # via pip-tools -click==8.1.3 +click==8.1.7 # via pip-tools -packaging==23.0 +importlib-metadata==6.8.0 + # via build +packaging==23.1 # via build pip-tools==7.3.0 # via -r requirements/pip-tools.in pyproject-hooks==1.0.0 # via build tomli==2.0.1 - # via build -wheel==0.40.0 + # via + # build + # pip-tools + # pyproject-hooks +wheel==0.41.2 # via pip-tools +zipp==3.17.0 + # via importlib-metadata # The following packages are considered to be unsafe in a requirements file: # pip diff --git a/requirements/pip.txt b/requirements/pip.txt index 45fb600b..3e7d8f4a 100644 --- a/requirements/pip.txt +++ b/requirements/pip.txt @@ -4,11 +4,11 @@ # # make upgrade # -wheel==0.40.0 +wheel==0.41.2 # via -r requirements/pip.in # The following packages are considered to be unsafe in a requirements file: -pip==23.0.1 +pip==23.2.1 # via -r requirements/pip.in -setuptools==67.6.0 +setuptools==68.2.2 # via -r requirements/pip.in diff --git a/requirements/quality.txt b/requirements/quality.txt index cd9082f5..bf5fddcd 100644 --- a/requirements/quality.txt +++ b/requirements/quality.txt @@ -4,5 +4,5 @@ # # make upgrade # -pycodestyle==2.10.0 +pycodestyle==2.11.0 # via -r requirements/quality.in diff --git a/requirements/test.txt b/requirements/test.txt index 46655cd5..9bdf07f6 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -4,22 +4,20 @@ # # make upgrade # -asgiref==3.6.0 +asgiref==3.7.2 # via # -r requirements/../requirements.txt # django -attrs==22.2.0 - # via pytest backoff==2.2.1 # via -r requirements/../requirements.txt -boto3==1.26.91 +boto3==1.28.54 # via -r requirements/../requirements.txt -botocore==1.29.91 +botocore==1.31.54 # via # -r requirements/../requirements.txt # boto3 # s3transfer -certifi==2022.12.7 +certifi==2023.7.22 # via # -r requirements/../requirements.txt # requests @@ -27,40 +25,41 @@ cffi==1.15.1 # via # -r requirements/../requirements.txt # pynacl -charset-normalizer==3.1.0 +charset-normalizer==3.2.0 # via # -r requirements/../requirements.txt # requests -click==8.1.3 +click==8.1.7 # via # -r requirements/../requirements.txt # edx-django-utils -coverage[toml]==7.2.1 +coverage[toml]==7.3.1 # via pytest-cov # via # -c requirements/common_constraints.txt # -r requirements/../requirements.txt # django-crum # django-storages + # django-waffle # edx-django-release-util # edx-django-utils django-crum==0.7.9 # via # -r requirements/../requirements.txt # edx-django-utils -django-storages==1.13.2 +django-storages==1.14 # via -r requirements/../requirements.txt -django-waffle==3.0.0 +django-waffle==4.0.0 # via # -r requirements/../requirements.txt # edx-django-utils -edx-django-release-util==1.2.0 +edx-django-release-util==1.3.0 # via -r requirements/../requirements.txt -edx-django-utils==5.2.0 +edx-django-utils==5.7.0 # via -r requirements/../requirements.txt -exceptiongroup==1.1.1 +exceptiongroup==1.1.3 # via pytest -gunicorn==20.1.0 +gunicorn==21.2.0 # via -r requirements/../requirements.txt idna==3.4 # via @@ -75,23 +74,26 @@ jmespath==1.0.1 # -r requirements/../requirements.txt # boto3 # botocore -mysqlclient==2.1.1 +mysqlclient==2.2.0 # via -r requirements/../requirements.txt -newrelic==8.7.0 +newrelic==9.1.0 # via # -r requirements/../requirements.txt # edx-django-utils -packaging==23.0 - # via pytest +packaging==23.1 + # via + # -r requirements/../requirements.txt + # gunicorn + # pytest path-py==11.0.1 # via -r requirements/../requirements.txt pbr==5.11.1 # via # -r requirements/../requirements.txt # stevedore -pluggy==1.0.0 +pluggy==1.3.0 # via pytest -psutil==5.9.4 +psutil==5.9.5 # via # -r requirements/../requirements.txt # edx-django-utils @@ -103,12 +105,12 @@ pynacl==1.5.0 # via # -r requirements/../requirements.txt # edx-django-utils -pytest==7.2.2 +pytest==7.4.2 # via # -r requirements/test.in # pytest-cov # pytest-django -pytest-cov==4.0.0 +pytest-cov==4.1.0 # via -r requirements/test.in pytest-django==4.5.2 # via -r requirements/test.in @@ -120,17 +122,17 @@ python-memcached==1.59 # via -r requirements/../requirements.txt python-termstyle==0.1.10 # via -r requirements/../requirements.txt -pytz==2022.7.1 +pytz==2023.3.post1 # via # -r requirements/../requirements.txt # django -pyyaml==6.0 +pyyaml==6.0.1 # via # -r requirements/../requirements.txt # edx-django-release-util -requests==2.28.2 +requests==2.31.0 # via -r requirements/../requirements.txt -s3transfer==0.6.0 +s3transfer==0.6.2 # via # -r requirements/../requirements.txt # boto3 @@ -140,17 +142,23 @@ six==1.16.0 # edx-django-release-util # python-dateutil # python-memcached -sqlparse==0.4.3 +sqlparse==0.4.4 # via # -r requirements/../requirements.txt # django -stevedore==5.0.0 +stevedore==5.1.0 # via # -r requirements/../requirements.txt # edx-django-utils tomli==2.0.1 - # via pytest -urllib3==1.26.15 + # via + # coverage + # pytest +typing-extensions==4.8.0 + # via + # -r requirements/../requirements.txt + # asgiref +urllib3==1.26.16 # via # -r requirements/../requirements.txt # botocore From f52652ad1ae74d1db066133630805ba296978a4a Mon Sep 17 00:00:00 2001 From: zubairshakoorarbisoft Date: Tue, 26 Sep 2023 15:12:45 +0500 Subject: [PATCH 04/15] fix: xqueue image updated --- .github/docker-compose-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/docker-compose-ci.yml b/.github/docker-compose-ci.yml index 3427aa10..d12652fc 100644 --- a/.github/docker-compose-ci.yml +++ b/.github/docker-compose-ci.yml @@ -19,7 +19,7 @@ services: xqueue: container_name: xqueue - image: edxops/xqueue:latest + image: edxops:xqueue-dev:latest command: tail -f /dev/null volumes: - ..:/edx/app/xqueue/xqueue From d7f96849c7685bf3aa2119c6c4016cda73c79ee9 Mon Sep 17 00:00:00 2001 From: zubairshakoorarbisoft Date: Tue, 26 Sep 2023 15:18:54 +0500 Subject: [PATCH 05/15] fix: image slash fixed --- .github/docker-compose-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/docker-compose-ci.yml b/.github/docker-compose-ci.yml index d12652fc..eee3f2eb 100644 --- a/.github/docker-compose-ci.yml +++ b/.github/docker-compose-ci.yml @@ -19,7 +19,7 @@ services: xqueue: container_name: xqueue - image: edxops:xqueue-dev:latest + image: edxops/xqueue-dev:latest command: tail -f /dev/null volumes: - ..:/edx/app/xqueue/xqueue From 43568a2efd91e99b20984078877c75a602196277 Mon Sep 17 00:00:00 2001 From: Awais Qureshi Date: Tue, 26 Sep 2023 16:45:34 +0500 Subject: [PATCH 06/15] chore: Update Makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6cbb7c3f..52cc35a2 100644 --- a/Makefile +++ b/Makefile @@ -44,8 +44,8 @@ $(COMMON_CONSTRAINTS_TXT): export CUSTOM_COMPILE_COMMAND = make upgrade upgrade: $(COMMON_CONSTRAINTS_TXT) ## update the requirements/*.txt files with the latest packages satisfying requirements/*.in - sed 's/Django<4.0/Django<4.3/g' requirements/common_constraints.txt > requirements/common_constraints.tmp mv requirements/common_constraints.tmp requirements/common_constraints.txt + sed 's/Django<4.0//g' requirements/common_constraints.txt > requirements/common_constraints.tmp pip install -qr requirements/pip-tools.txt # Make sure to compile files after any other files they include! pip-compile --upgrade --rebuild --allow-unsafe -o requirements/pip.txt requirements/pip.in From b56e8d17505ae7deff210086d5d6df547b47ae77 Mon Sep 17 00:00:00 2001 From: Awais Qureshi Date: Tue, 26 Sep 2023 16:48:19 +0500 Subject: [PATCH 07/15] chore: Update Makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 52cc35a2..9eb96d68 100644 --- a/Makefile +++ b/Makefile @@ -44,8 +44,8 @@ $(COMMON_CONSTRAINTS_TXT): export CUSTOM_COMPILE_COMMAND = make upgrade upgrade: $(COMMON_CONSTRAINTS_TXT) ## update the requirements/*.txt files with the latest packages satisfying requirements/*.in - mv requirements/common_constraints.tmp requirements/common_constraints.txt sed 's/Django<4.0//g' requirements/common_constraints.txt > requirements/common_constraints.tmp + mv requirements/common_constraints.tmp requirements/common_constraints.txt pip install -qr requirements/pip-tools.txt # Make sure to compile files after any other files they include! pip-compile --upgrade --rebuild --allow-unsafe -o requirements/pip.txt requirements/pip.in From b81990ab9e007d003fe238494e3c8a20e895949a Mon Sep 17 00:00:00 2001 From: Awais Qureshi Date: Tue, 26 Sep 2023 16:54:20 +0500 Subject: [PATCH 08/15] chore: Update base.in --- requirements/base.in | 1 - 1 file changed, 1 deletion(-) diff --git a/requirements/base.in b/requirements/base.in index 9063526b..75b39e5e 100644 --- a/requirements/base.in +++ b/requirements/base.in @@ -4,7 +4,6 @@ mysqlclient backoff boto3 -Django<4 django-storages edx-django-release-util edx-django-utils From 7142ffda57b39534e8109357fe51c275f7275a65 Mon Sep 17 00:00:00 2001 From: edX requirements bot <49161187+edx-requirements-bot@users.noreply.github.com> Date: Tue, 26 Sep 2023 07:56:26 -0400 Subject: [PATCH 09/15] chore: Updating Python Requirements (#904) --- requirements.txt | 10 ++++------ requirements/common_constraints.txt | 2 +- requirements/dev.txt | 11 ++++++----- requirements/test.txt | 9 +++++---- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/requirements.txt b/requirements.txt index 129e398d..1be0c527 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,6 +8,8 @@ asgiref==3.7.2 # via django backoff==2.2.1 # via -r requirements/base.in +backports-zoneinfo==0.2.1 + # via django boto3==1.28.54 # via -r requirements/base.in botocore==1.31.54 @@ -22,10 +24,8 @@ charset-normalizer==3.2.0 # via requests click==8.1.7 # via edx-django-utils -django==3.2.21 +django==4.2.5 # via - # -c requirements/common_constraints.txt - # -r requirements/base.in # django-crum # django-storages # django-waffle @@ -76,9 +76,7 @@ python-memcached==1.59 python-termstyle==0.1.10 # via -r requirements/base.in pytz==2023.3.post1 - # via - # -r requirements/base.in - # django + # via -r requirements/base.in pyyaml==6.0.1 # via edx-django-release-util requests==2.31.0 diff --git a/requirements/common_constraints.txt b/requirements/common_constraints.txt index 01a199cf..0091b9ec 100644 --- a/requirements/common_constraints.txt +++ b/requirements/common_constraints.txt @@ -18,7 +18,7 @@ # using LTS django version -Django<4.3 + # elasticsearch>=7.14.0 includes breaking changes in it which caused issues in discovery upgrade process. # elastic search changelog: https://www.elastic.co/guide/en/enterprise-search/master/release-notes-7.14.0.html diff --git a/requirements/dev.txt b/requirements/dev.txt index a5c69227..22bb6dfb 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -10,6 +10,10 @@ asgiref==3.7.2 # django backoff==2.2.1 # via -r requirements/test.txt +backports-zoneinfo==0.2.1 + # via + # -r requirements/test.txt + # django boto3==1.28.54 # via -r requirements/test.txt botocore==1.31.54 @@ -47,9 +51,8 @@ distlib==0.3.7 # via # -r requirements/ci.txt # virtualenv -django==3.2.21 +django==4.2.5 # via - # -c requirements/common_constraints.txt # -r requirements/test.txt # django-crum # django-storages @@ -173,9 +176,7 @@ python-memcached==1.59 python-termstyle==0.1.10 # via -r requirements/test.txt pytz==2023.3.post1 - # via - # -r requirements/test.txt - # django + # via -r requirements/test.txt pywatchman==1.4.1 ; "linux" in sys_platform # via -r requirements/dev.in pyyaml==6.0.1 diff --git a/requirements/test.txt b/requirements/test.txt index 9bdf07f6..df9448ae 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -10,6 +10,10 @@ asgiref==3.7.2 # django backoff==2.2.1 # via -r requirements/../requirements.txt +backports-zoneinfo==0.2.1 + # via + # -r requirements/../requirements.txt + # django boto3==1.28.54 # via -r requirements/../requirements.txt botocore==1.31.54 @@ -36,7 +40,6 @@ click==8.1.7 coverage[toml]==7.3.1 # via pytest-cov # via - # -c requirements/common_constraints.txt # -r requirements/../requirements.txt # django-crum # django-storages @@ -123,9 +126,7 @@ python-memcached==1.59 python-termstyle==0.1.10 # via -r requirements/../requirements.txt pytz==2023.3.post1 - # via - # -r requirements/../requirements.txt - # django + # via -r requirements/../requirements.txt pyyaml==6.0.1 # via # -r requirements/../requirements.txt From 695b001b9966448f11699a5a801de81de332f7bd Mon Sep 17 00:00:00 2001 From: Awais Qureshi Date: Tue, 26 Sep 2023 16:57:52 +0500 Subject: [PATCH 10/15] chore: Update Makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9eb96d68..23f21a12 100644 --- a/Makefile +++ b/Makefile @@ -44,7 +44,7 @@ $(COMMON_CONSTRAINTS_TXT): export CUSTOM_COMPILE_COMMAND = make upgrade upgrade: $(COMMON_CONSTRAINTS_TXT) ## update the requirements/*.txt files with the latest packages satisfying requirements/*.in - sed 's/Django<4.0//g' requirements/common_constraints.txt > requirements/common_constraints.tmp + sed 's/Django<4.3//g' requirements/common_constraints.txt > requirements/common_constraints.tmp mv requirements/common_constraints.tmp requirements/common_constraints.txt pip install -qr requirements/pip-tools.txt # Make sure to compile files after any other files they include! From 4c90b708d25375691a53ef9f8cdf022a437c3a41 Mon Sep 17 00:00:00 2001 From: zubairshakoorarbisoft Date: Tue, 26 Sep 2023 17:03:53 +0500 Subject: [PATCH 11/15] fix: django32 dropped --- .github/workflows/ci.yml | 9 ++------- tox.ini | 3 +-- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 491aa9c8..dd9504f3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,14 +12,9 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - tox-env: [quality, django32, django42] + tox-env: [quality, django42] python-version: [3.8] - db-version: ['mysql57', 'mysql80'] - # excluding mysql5.7 with Django 4.2 since Django 4.2 has - # dropped support for MySQL<8 - exclude: - - tox-env: 'django42' - db-version: 'mysql57' + db-version: ['mysql80'] steps: - uses: actions/checkout@v2 diff --git a/tox.ini b/tox.ini index df3856b7..83bc7f23 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py38-django{32,42},quality +envlist = py38-django{42},quality skipsdist = True [pycodestyle] @@ -13,7 +13,6 @@ norecursedirs = .* jenkins load_tests log reports script test_framework xqueue [testenv] deps = - django32: Django>=3.2,<4.0 django42: Django>=4.2,<4.3 -r{toxinidir}/requirements/test.txt passenv = From 4e3efe47aa57aec97dcb6059f1011c4190042fe5 Mon Sep 17 00:00:00 2001 From: Muhammad Soban Javed <58461728+iamsobanjaved@users.noreply.github.com> Date: Tue, 26 Sep 2023 18:32:20 +0500 Subject: [PATCH 12/15] fix: update overriding statement as constraint is for 4.0 version currently --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 23f21a12..9eb96d68 100644 --- a/Makefile +++ b/Makefile @@ -44,7 +44,7 @@ $(COMMON_CONSTRAINTS_TXT): export CUSTOM_COMPILE_COMMAND = make upgrade upgrade: $(COMMON_CONSTRAINTS_TXT) ## update the requirements/*.txt files with the latest packages satisfying requirements/*.in - sed 's/Django<4.3//g' requirements/common_constraints.txt > requirements/common_constraints.tmp + sed 's/Django<4.0//g' requirements/common_constraints.txt > requirements/common_constraints.tmp mv requirements/common_constraints.tmp requirements/common_constraints.txt pip install -qr requirements/pip-tools.txt # Make sure to compile files after any other files they include! From 7f9f0cab52c1cc50ffded5e09d6292589d016d0c Mon Sep 17 00:00:00 2001 From: Muhammad Soban Javed <58461728+iamsobanjaved@users.noreply.github.com> Date: Tue, 26 Sep 2023 18:36:14 +0500 Subject: [PATCH 13/15] fix: use pytz while upgrading to avoid unexpected errors --- xqueue/settings.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xqueue/settings.py b/xqueue/settings.py index d10b7896..e5646ab9 100644 --- a/xqueue/settings.py +++ b/xqueue/settings.py @@ -78,6 +78,11 @@ # If you set this to False, Django will not use timezone-aware datetimes. USE_TZ = True +# Django 4.0+ uses zoneinfo if this is not set. We can remove this and +# migrate to zoneinfo after Django 4.2 upgrade. See more on following url +# https://docs.djangoproject.com/en/4.2/releases/4.0/#zoneinfo-default-timezone-implementation +USE_DEPRECATED_PYTZ = True + # Absolute filesystem path to the directory that will hold user-uploaded files. # Example: "/home/media/media.lawrence.com/media/" MEDIA_ROOT = '' From 25f611e2849c9765a499ab404ae1cdc8410b8714 Mon Sep 17 00:00:00 2001 From: Awais Qureshi Date: Tue, 26 Sep 2023 19:09:47 +0500 Subject: [PATCH 14/15] chore: Update base.in --- requirements/base.in | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements/base.in b/requirements/base.in index 75b39e5e..6e21f416 100644 --- a/requirements/base.in +++ b/requirements/base.in @@ -4,6 +4,7 @@ mysqlclient backoff boto3 +Django django-storages edx-django-release-util edx-django-utils From 76f3121054c45ba089e88f05830e0c2a02eb4ea4 Mon Sep 17 00:00:00 2001 From: Awais Qureshi Date: Tue, 26 Sep 2023 19:12:07 +0500 Subject: [PATCH 15/15] chore: Removed sha1 sinces its removed in dj42 --- xqueue/settings.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/xqueue/settings.py b/xqueue/settings.py index e5646ab9..384ba791 100644 --- a/xqueue/settings.py +++ b/xqueue/settings.py @@ -95,8 +95,6 @@ # Make this unique, and don't share it with anybody. SECRET_KEY = 'uofqkujp@z#_vtwct+v716z+^3hijelj1^fkydwo2^pbkxghfq' -DEFAULT_HASHING_ALGORITHM = "sha1" - DEFAULT_AUTO_FIELD = "django.db.models.AutoField" MIDDLEWARE = (