From 88390b64dcbdec2d6f8cb02c81ebc99eb19c24e0 Mon Sep 17 00:00:00 2001 From: edX requirements bot Date: Sat, 23 Mar 2024 20:20:11 -0400 Subject: [PATCH 1/2] chore: Updating Python Requirements --- requirements/base.txt | 14 +++++++------- requirements/common_constraints.txt | 11 ++++++++++- requirements/pip.txt | 4 ++-- requirements/pip_tools.txt | 16 +++++++++------- requirements/quality.txt | 21 ++++++++++++--------- requirements/test.txt | 6 +++--- requirements/tox.txt | 6 +++--- requirements/travis.txt | 6 +++--- 8 files changed, 49 insertions(+), 35 deletions(-) diff --git a/requirements/base.txt b/requirements/base.txt index 02d6a5a..839f28c 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -6,9 +6,11 @@ # appdirs==1.4.4 # via fs -asgiref==3.7.2 +asgiref==3.8.1 # via django -django==3.2.24 +backports-zoneinfo==0.2.1 + # via django +django==4.2.11 # via # -c requirements/common_constraints.txt # -r requirements/base.in @@ -22,12 +24,10 @@ markupsafe==2.1.5 # via # mako # xblock -python-dateutil==2.8.2 +python-dateutil==2.9.0.post0 # via xblock pytz==2024.1 - # via - # django - # xblock + # via xblock pyyaml==6.0.1 # via xblock simplejson==3.19.2 @@ -45,7 +45,7 @@ web-fragments==2.1.0 # via xblock webob==1.8.7 # via xblock -xblock==1.10.0 +xblock==3.0.0 # via -r requirements/base.in # The following packages are considered to be unsafe in a requirements file: diff --git a/requirements/common_constraints.txt b/requirements/common_constraints.txt index 15aafb2..e3bf8ea 100644 --- a/requirements/common_constraints.txt +++ b/requirements/common_constraints.txt @@ -13,7 +13,7 @@ # using LTS django version -Django<4.0 +Django<5.0 # 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 @@ -21,3 +21,12 @@ elasticsearch<7.14.0 # django-simple-history>3.0.0 adds indexing and causes a lot of migrations to be affected django-simple-history==3.0.0 + +# opentelemetry requires version 6.x at the moment: +# https://github.com/open-telemetry/opentelemetry-python/issues/3570 +# Normally this could be added as a constraint in edx-django-utils, where we're +# adding the opentelemetry dependency. However, when we compile pip-tools.txt, +# that uses version 7.x, and then there's no undoing that when compiling base.txt. +# So we need to pin it globally, for now. +# Ticket for unpinning: https://github.com/openedx/edx-lint/issues/407 +importlib-metadata<7 diff --git a/requirements/pip.txt b/requirements/pip.txt index 6665603..cf44902 100644 --- a/requirements/pip.txt +++ b/requirements/pip.txt @@ -4,11 +4,11 @@ # # make upgrade # -wheel==0.42.0 +wheel==0.43.0 # via -r requirements/pip.in # The following packages are considered to be unsafe in a requirements file: pip==24.0 # via -r requirements/pip.in -setuptools==69.1.1 +setuptools==69.2.0 # via -r requirements/pip.in diff --git a/requirements/pip_tools.txt b/requirements/pip_tools.txt index fb84d10..3db2d4c 100644 --- a/requirements/pip_tools.txt +++ b/requirements/pip_tools.txt @@ -4,15 +4,17 @@ # # make upgrade # -build==1.0.3 +build==1.1.1 # via pip-tools click==8.1.7 # via pip-tools -importlib-metadata==7.0.1 - # via build -packaging==23.2 +importlib-metadata==6.11.0 + # via + # -c requirements/common_constraints.txt + # build +packaging==24.0 # via build -pip-tools==7.4.0 +pip-tools==7.4.1 # via -r requirements/pip_tools.in pyproject-hooks==1.0.0 # via @@ -23,9 +25,9 @@ tomli==2.0.1 # build # pip-tools # pyproject-hooks -wheel==0.42.0 +wheel==0.43.0 # via pip-tools -zipp==3.17.0 +zipp==3.18.1 # via importlib-metadata # The following packages are considered to be unsafe in a requirements file: diff --git a/requirements/quality.txt b/requirements/quality.txt index af0d52f..61837dd 100644 --- a/requirements/quality.txt +++ b/requirements/quality.txt @@ -8,17 +8,21 @@ appdirs==1.4.4 # via # -r requirements/base.txt # fs -asgiref==3.7.2 +asgiref==3.8.1 # via # -r requirements/base.txt # django astroid==3.1.0 # via pylint -coverage==7.4.3 +backports-zoneinfo==0.2.1 + # via + # -r requirements/base.txt + # django +coverage==7.4.4 # via -r requirements/test.txt dill==0.3.8 # via pylint -django==3.2.24 +django==4.2.11 # via # -c requirements/common_constraints.txt # -r requirements/base.txt @@ -53,7 +57,7 @@ mccabe==0.7.0 # via pylint mock==5.1.0 # via -r requirements/test.txt -packaging==23.2 +packaging==24.0 # via # -r requirements/test.txt # pytest @@ -67,20 +71,19 @@ pycodestyle==2.11.1 # via -r requirements/quality.in pylint==3.1.0 # via -r requirements/quality.in -pytest==8.0.2 +pytest==8.1.1 # via # -r requirements/test.txt # pytest-django pytest-django==4.8.0 # via -r requirements/test.txt -python-dateutil==2.8.2 +python-dateutil==2.9.0.post0 # via # -r requirements/base.txt # xblock pytz==2024.1 # via # -r requirements/base.txt - # django # xblock pyyaml==6.0.1 # via @@ -104,7 +107,7 @@ tomli==2.0.1 # -r requirements/test.txt # pylint # pytest -tomlkit==0.12.3 +tomlkit==0.12.4 # via pylint typing-extensions==4.10.0 # via @@ -120,7 +123,7 @@ webob==1.8.7 # via # -r requirements/base.txt # xblock -xblock==1.10.0 +xblock==3.0.0 # via -r requirements/base.txt # The following packages are considered to be unsafe in a requirements file: diff --git a/requirements/test.txt b/requirements/test.txt index 539f04d..7d8e8ee 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -4,7 +4,7 @@ # # make upgrade # -coverage==7.4.3 +coverage==7.4.4 # via -r requirements/test.in exceptiongroup==1.2.0 # via pytest @@ -12,11 +12,11 @@ iniconfig==2.0.0 # via pytest mock==5.1.0 # via -r requirements/test.in -packaging==23.2 +packaging==24.0 # via pytest pluggy==1.4.0 # via pytest -pytest==8.0.2 +pytest==8.1.1 # via pytest-django pytest-django==4.8.0 # via -r requirements/test.in diff --git a/requirements/tox.txt b/requirements/tox.txt index 9a12d68..a1d22d5 100644 --- a/requirements/tox.txt +++ b/requirements/tox.txt @@ -4,7 +4,7 @@ # # make upgrade # -cachetools==5.3.2 +cachetools==5.3.3 # via tox chardet==5.2.0 # via tox @@ -16,7 +16,7 @@ filelock==3.13.1 # via # tox # virtualenv -packaging==23.2 +packaging==24.0 # via # pyproject-api # tox @@ -32,7 +32,7 @@ tomli==2.0.1 # via # pyproject-api # tox -tox==4.13.0 +tox==4.14.2 # via -r requirements/tox.in virtualenv==20.25.1 # via tox diff --git a/requirements/travis.txt b/requirements/travis.txt index 8276a4b..04ec893 100644 --- a/requirements/travis.txt +++ b/requirements/travis.txt @@ -4,7 +4,7 @@ # # make upgrade # -cachetools==5.3.2 +cachetools==5.3.3 # via # -r requirements/tox.txt # tox @@ -37,7 +37,7 @@ filelock==3.13.1 # virtualenv idna==3.6 # via requests -packaging==23.2 +packaging==24.0 # via # -r requirements/tox.txt # pyproject-api @@ -62,7 +62,7 @@ tomli==2.0.1 # -r requirements/tox.txt # pyproject-api # tox -tox==4.13.0 +tox==4.14.2 # via -r requirements/tox.txt urllib3==2.2.1 # via requests From bbe4243459165f68d7b24d4162a8e03450b5d84d Mon Sep 17 00:00:00 2001 From: farhan Date: Tue, 26 Mar 2024 11:16:38 +0500 Subject: [PATCH 2/2] chore: fix test case --- invideoquiz/invideoquiz.py | 10 ++++++++-- requirements/base.txt | 6 ++++-- requirements/constraints.txt | 1 + requirements/quality.txt | 3 ++- requirements/tox.txt | 2 +- requirements/travis.txt | 2 +- 6 files changed, 17 insertions(+), 7 deletions(-) diff --git a/invideoquiz/invideoquiz.py b/invideoquiz/invideoquiz.py index f902bbe..9c5cde4 100644 --- a/invideoquiz/invideoquiz.py +++ b/invideoquiz/invideoquiz.py @@ -3,14 +3,20 @@ videos at specific time points. """ -import os import json +import os + import pkg_resources from xblock.core import XBlock from xblock.fields import Scope from xblock.fields import String -from xblock.fragment import Fragment + +try: + from web_fragments.fragment import Fragment +except ImportError: + # For backward compatibility with quince and earlier. + from xblock.fragment import Fragment from xblock.validation import ValidationMessage try: from xblock.utils.studio_editable import StudioEditableXBlockMixin diff --git a/requirements/base.txt b/requirements/base.txt index 839f28c..b9e2758 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 django==4.2.11 # via # -c requirements/common_constraints.txt diff --git a/requirements/constraints.txt b/requirements/constraints.txt index 7cdb2df..24d00dc 100644 --- a/requirements/constraints.txt +++ b/requirements/constraints.txt @@ -12,3 +12,4 @@ # This file contains all common constraints for edx-repos -c common_constraints.txt +backports.zoneinfo;python_version<"3.9" diff --git a/requirements/quality.txt b/requirements/quality.txt index 61837dd..c1c6911 100644 --- a/requirements/quality.txt +++ b/requirements/quality.txt @@ -14,8 +14,9 @@ asgiref==3.8.1 # django astroid==3.1.0 # via pylint -backports-zoneinfo==0.2.1 +backports-zoneinfo==0.2.1 ; python_version < "3.9" # via + # -c requirements/constraints.txt # -r requirements/base.txt # django coverage==7.4.4 diff --git a/requirements/tox.txt b/requirements/tox.txt index a1d22d5..cc5293d 100644 --- a/requirements/tox.txt +++ b/requirements/tox.txt @@ -12,7 +12,7 @@ colorama==0.4.6 # via tox distlib==0.3.8 # via virtualenv -filelock==3.13.1 +filelock==3.13.3 # via # tox # virtualenv diff --git a/requirements/travis.txt b/requirements/travis.txt index 04ec893..06902e6 100644 --- a/requirements/travis.txt +++ b/requirements/travis.txt @@ -30,7 +30,7 @@ distlib==0.3.8 # virtualenv docopt==0.6.2 # via coveralls -filelock==3.13.1 +filelock==3.13.3 # via # -r requirements/tox.txt # tox