Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove xblock-utils package #127

Merged
merged 2 commits into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,7 @@ Version 1.1.0
Version 1.2.0

Added support for django 4.2


Version 1.3.0

Remove xblock-utils package and migrate to xblock.utils
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
49 changes: 1 addition & 48 deletions requirements/quality.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,6 @@ asgiref==3.7.2
# django
astroid==3.0.1
# via pylint
boto3==1.28.68
# via
# -r requirements/base.txt
# fs-s3fs
botocore==1.31.68
# via
# -r requirements/base.txt
# boto3
# s3transfer
coverage==7.3.2
# via -r requirements/test.txt
dill==0.3.7
Expand All @@ -31,30 +22,14 @@ django==3.2.22
# via
# -c requirements/common_constraints.txt
# -r requirements/base.txt
# openedx-django-pyfs
edx-opaque-keys==2.5.1
# via -r requirements/test.txt
fs==2.4.16
# via
# -r requirements/base.txt
# fs-s3fs
# openedx-django-pyfs
# xblock
fs-s3fs==1.1.1
# via
# -r requirements/base.txt
# openedx-django-pyfs
isort==5.12.0
# via pylint
jmespath==1.0.1
# via
# -r requirements/base.txt
# boto3
# botocore
lazy==1.6
# via
# -r requirements/base.txt
# xblock
lxml==4.9.3
# via
# -r requirements/base.txt
Expand All @@ -63,7 +38,6 @@ mako==1.2.4
# via
# -r requirements/base.txt
# xblock
# xblock-utils
markupsafe==2.1.3
# via
# -r requirements/base.txt
Expand All @@ -73,10 +47,6 @@ mccabe==0.7.0
# via pylint
mock==5.1.0
# via -r requirements/test.txt
openedx-django-pyfs==3.4.0
# via
# -r requirements/base.txt
# xblock
pbr==5.11.1
# via
# -r requirements/test.txt
Expand All @@ -94,7 +64,6 @@ pymongo==3.13.0
python-dateutil==2.8.2
# via
# -r requirements/base.txt
# botocore
# xblock
pytz==2023.3.post1
# via
Expand All @@ -105,20 +74,14 @@ pyyaml==6.0.1
# via
# -r requirements/base.txt
# xblock
s3transfer==0.7.0
# via
# -r requirements/base.txt
# boto3
simplejson==3.19.2
# via
# -r requirements/base.txt
# xblock
# xblock-utils
six==1.16.0
# via
# -r requirements/base.txt
# fs
# fs-s3fs
# python-dateutil
sqlparse==0.4.4
# via
Expand All @@ -140,25 +103,15 @@ typing-extensions==4.8.0
# astroid
# edx-opaque-keys
# pylint
urllib3==1.26.18
# via
# -r requirements/base.txt
# botocore
web-fragments==2.1.0
# via
# -r requirements/base.txt
# xblock
# xblock-utils
webob==1.8.7
# via
# -r requirements/base.txt
# xblock
xblock[django]==1.8.1
# via
# -r requirements/base.txt
# xblock
# xblock-utils
xblock-utils==4.0.0
xblock==1.8.1
# via -r requirements/base.txt

# The following packages are considered to be unsafe in a requirements file:
Expand Down
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
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from setuptools import find_packages, setup

version = '1.2.0'
version = '1.3.0'
description = __doc__.strip().split('\n')[0]
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.rst')) as file_in:
Expand Down
5 changes: 4 additions & 1 deletion submit_and_compare/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
from lxml import etree
from six import StringIO
from xblock.core import XBlock
from xblockutils.resources import ResourceLoader
try:
from xblock.utils.resources import ResourceLoader
except ModuleNotFoundError: # For backward compatibility with releases older than Quince.
from xblockutils.resources import ResourceLoader

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this be removed in future?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not near, perhaps once we will deprecate all open edX releases before Quince


from .mixins.fragment import XBlockFragmentBuilderMixin

Expand Down
Loading