Skip to content

Commit

Permalink
Merge pull request #138 from farhan/farhan/remove-xblockutils
Browse files Browse the repository at this point in the history
Remove xblockutils package
  • Loading branch information
Feanil Patel authored Oct 31, 2023
2 parents 6970a17 + 16b7cc5 commit 6654e1b
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 104 deletions.
2 changes: 1 addition & 1 deletion freetextresponse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
present in order for the student to receive credit.
"""

__version__ = "3.1.0"
__version__ = "3.2.0"
9 changes: 7 additions & 2 deletions freetextresponse/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@
from six import text_type
from xblock.core import XBlock
from xblock.validation import ValidationMessage
from xblockutils.resources import ResourceLoader
from xblockutils.studio_editable import StudioEditableXBlockMixin
try:
from xblock.utils.resources import ResourceLoader
from xblock.utils.studio_editable import StudioEditableXBlockMixin
except ModuleNotFoundError:
# For backward compatibility with releases older than Quince.
from xblockutils.resources import ResourceLoader
from xblockutils.studio_editable import StudioEditableXBlockMixin

from .mixins.dates import EnforceDueDates
from .mixins.fragment import XBlockFragmentBuilderMixin
Expand Down
1 change: 0 additions & 1 deletion requirements/base.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@
Django
six
XBlock
xblock-utils
47 changes: 5 additions & 42 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,81 +8,44 @@ appdirs==1.4.4
# via fs
asgiref==3.7.2
# via django
boto3==1.28.68
# via fs-s3fs
botocore==1.31.68
# via
# boto3
# s3transfer
django==3.2.22
# via
# -c requirements/common_constraints.txt
# -r requirements/base.in
# openedx-django-pyfs
fs==2.4.16
# via
# fs-s3fs
# openedx-django-pyfs
# xblock
fs-s3fs==1.1.1
# via openedx-django-pyfs
jmespath==1.0.1
# via
# boto3
# botocore
lazy==1.6
# via xblock
lxml==4.9.3
# via xblock
mako==1.2.4
# via
# xblock
# xblock-utils
# via xblock
markupsafe==2.1.3
# via
# mako
# xblock
openedx-django-pyfs==3.4.0
# via xblock
python-dateutil==2.8.2
# via
# botocore
# xblock
# via xblock
pytz==2023.3.post1
# via
# django
# xblock
pyyaml==6.0.1
# via xblock
s3transfer==0.7.0
# via boto3
simplejson==3.19.2
# via
# xblock
# xblock-utils
# via xblock
six==1.16.0
# via
# -r requirements/base.in
# fs
# fs-s3fs
# python-dateutil
sqlparse==0.4.4
# via django
typing-extensions==4.8.0
# via asgiref
urllib3==1.26.18
# via botocore
web-fragments==2.1.0
# via
# xblock
# xblock-utils
# via xblock
webob==1.8.7
# via xblock
xblock[django]==1.8.1
# via
# -r requirements/base.in
# xblock-utils
xblock-utils==4.0.0
xblock==1.8.1
# via -r requirements/base.in

# The following packages are considered to be unsafe in a requirements file:
Expand Down
4 changes: 2 additions & 2 deletions requirements/ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ distlib==0.3.7
# virtualenv
docopt==0.6.2
# via coveralls
filelock==3.12.4
filelock==3.13.0
# via
# -r requirements/tox.txt
# tox
Expand Down Expand Up @@ -57,7 +57,7 @@ tox==3.28.0
# -r requirements/tox.txt
urllib3==2.0.7
# via requests
virtualenv==20.24.5
virtualenv==20.24.6
# via
# -r requirements/tox.txt
# tox
2 changes: 1 addition & 1 deletion requirements/pip.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# make upgrade
#
wheel==0.41.2
wheel==0.41.3
# via -r requirements/pip.in

# The following packages are considered to be unsafe in a requirements file:
Expand Down
2 changes: 1 addition & 1 deletion requirements/pip_tools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ tomli==2.0.1
# build
# pip-tools
# pyproject-hooks
wheel==0.41.2
wheel==0.41.3
# via pip-tools
zipp==3.17.0
# via importlib-metadata
Expand Down
34 changes: 4 additions & 30 deletions requirements/quality.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,12 @@ binaryornot==0.4.4
# via
# -r requirements/test.txt
# cookiecutter
boto3==1.28.68
boto3==1.28.73
# via
# -r requirements/base.txt
# -r requirements/test.txt
# fs-s3fs
botocore==1.31.68
botocore==1.31.73
# via
# -r requirements/base.txt
# -r requirements/test.txt
# boto3
# s3transfer
Expand Down Expand Up @@ -67,7 +65,6 @@ django==3.2.22
# -r requirements/base.txt
# -r requirements/test.txt
# django-pyfs
# openedx-django-pyfs
# xblock-sdk
django-pyfs==3.2.0
# via -r requirements/test.txt
Expand All @@ -79,14 +76,11 @@ fs==2.4.16
# -r requirements/test.txt
# django-pyfs
# fs-s3fs
# openedx-django-pyfs
# xblock
fs-s3fs==1.1.1
# via
# -r requirements/base.txt
# -r requirements/test.txt
# django-pyfs
# openedx-django-pyfs
# xblock-sdk
idna==3.4
# via
Expand All @@ -100,15 +94,11 @@ jinja2==3.1.2
# cookiecutter
jmespath==1.0.1
# via
# -r requirements/base.txt
# -r requirements/test.txt
# boto3
# botocore
lazy==1.6
# via
# -r requirements/base.txt
# -r requirements/test.txt
# xblock
# via -r requirements/test.txt
lxml==4.9.3
# via
# -r requirements/base.txt
Expand All @@ -120,7 +110,6 @@ mako==1.2.4
# -r requirements/base.txt
# -r requirements/test.txt
# xblock
# xblock-utils
markdown-it-py==3.0.0
# via
# -r requirements/test.txt
Expand All @@ -140,11 +129,6 @@ mdurl==0.1.2
# markdown-it-py
mock==5.1.0
# via -r requirements/test.txt
openedx-django-pyfs==3.4.0
# via
# -r requirements/base.txt
# -r requirements/test.txt
# xblock
pbr==5.11.1
# via
# -r requirements/test.txt
Expand Down Expand Up @@ -201,7 +185,6 @@ rich==13.6.0
# cookiecutter
s3transfer==0.7.0
# via
# -r requirements/base.txt
# -r requirements/test.txt
# boto3
simplejson==3.19.2
Expand All @@ -210,7 +193,6 @@ simplejson==3.19.2
# -r requirements/test.txt
# xblock
# xblock-sdk
# xblock-utils
six==1.16.0
# via
# -r requirements/base.txt
Expand Down Expand Up @@ -250,7 +232,6 @@ typing-extensions==4.8.0
# rich
urllib3==1.26.18
# via
# -r requirements/base.txt
# -r requirements/test.txt
# botocore
# requests
Expand All @@ -260,26 +241,19 @@ web-fragments==2.1.0
# -r requirements/test.txt
# xblock
# xblock-sdk
# xblock-utils
webob==1.8.7
# via
# -r requirements/base.txt
# -r requirements/test.txt
# xblock
# xblock-sdk
xblock[django]==1.8.1
xblock==1.8.1
# via
# -r requirements/base.txt
# -r requirements/test.txt
# xblock
# xblock-sdk
# xblock-utils
xblock-sdk==0.7.0
# via -r requirements/test.txt
xblock-utils==4.0.0
# via
# -r requirements/base.txt
# -r requirements/test.txt

# The following packages are considered to be unsafe in a requirements file:
# setuptools
1 change: 0 additions & 1 deletion requirements/test.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ edx-opaque-keys
lazy
mock
xblock-sdk
xblock-utils
27 changes: 6 additions & 21 deletions requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ asgiref==3.7.2
# via django
binaryornot==0.4.4
# via cookiecutter
boto3==1.28.68
boto3==1.28.73
# via fs-s3fs
botocore==1.31.68
botocore==1.31.73
# via
# boto3
# s3transfer
Expand All @@ -35,7 +35,6 @@ ddt==1.6.0
# via
# -c requirements/common_constraints.txt
# django-pyfs
# openedx-django-pyfs
# xblock-sdk
django-pyfs==3.2.0
# via -r requirements/test.in
Expand All @@ -45,12 +44,10 @@ fs==2.4.16
# via
# django-pyfs
# fs-s3fs
# openedx-django-pyfs
# xblock
fs-s3fs==1.1.1
# via
# django-pyfs
# openedx-django-pyfs
# xblock-sdk
idna==3.4
# via requests
Expand All @@ -61,17 +58,13 @@ jmespath==1.0.1
# boto3
# botocore
lazy==1.6
# via
# -r requirements/test.in
# xblock
# via -r requirements/test.in
lxml==4.9.3
# via
# xblock
# xblock-sdk
mako==1.2.4
# via
# xblock
# xblock-utils
# via xblock
markdown-it-py==3.0.0
# via rich
markupsafe==2.1.3
Expand All @@ -83,8 +76,6 @@ mdurl==0.1.2
# via markdown-it-py
mock==5.1.0
# via -r requirements/test.in
openedx-django-pyfs==3.4.0
# via xblock
pbr==5.11.1
# via stevedore
pygments==2.16.1
Expand Down Expand Up @@ -120,7 +111,6 @@ simplejson==3.19.2
# via
# xblock
# xblock-sdk
# xblock-utils
six==1.16.0
# via
# fs
Expand All @@ -147,19 +137,14 @@ web-fragments==2.1.0
# via
# xblock
# xblock-sdk
# xblock-utils
webob==1.8.7
# via
# xblock
# xblock-sdk
xblock[django]==1.8.1
# via
# xblock-sdk
# xblock-utils
xblock==1.8.1
# via xblock-sdk
xblock-sdk==0.7.0
# via -r requirements/test.in
xblock-utils==4.0.0
# via -r requirements/test.in

# The following packages are considered to be unsafe in a requirements file:
# setuptools
4 changes: 2 additions & 2 deletions requirements/tox.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
distlib==0.3.7
# via virtualenv
filelock==3.12.4
filelock==3.13.0
# via
# tox
# virtualenv
Expand All @@ -26,5 +26,5 @@ tox==3.28.0
# via
# -c requirements/common_constraints.txt
# -r requirements/tox.in
virtualenv==20.24.5
virtualenv==20.24.6
# via tox

0 comments on commit 6654e1b

Please sign in to comment.