Skip to content

Commit 5311e73

Browse files
authored
Merge pull request #167 from open-craft/jenkins/upgrade-python-requirements-4e213b3
Python Requirements Update
2 parents 4e213b3 + 7487f6a commit 5311e73

File tree

11 files changed

+184
-132
lines changed

11 files changed

+184
-132
lines changed

CHANGELOG.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ Change Log
1414
Unreleased
1515
~~~~~~~~~~
1616

17+
[4.0.3] - 2023-10-24
18+
~~~~~~~~~~~~~~~~~~~~
19+
20+
* Replace `xblockutils.*` imports with `xblock.utils.*`. The old imports are
21+
used as a fallback for compatibility with older releases.
22+
* Remove `xblockutils` dependency.
23+
1724
[4.0.2] - 2023-03-03
1825
~~~~~~~~~~~~~~~~~~~~
1926

completion_aggregator/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
from __future__ import absolute_import, unicode_literals
77

8-
__version__ = '4.0.2'
8+
__version__ = '4.0.3'

completion_aggregator/views.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,17 @@
33
"""
44
from __future__ import absolute_import, unicode_literals
55

6-
from xblockutils.resources import ResourceLoader
7-
86
from django.contrib.auth.mixins import LoginRequiredMixin
97
from django.db import transaction
108
from django.shortcuts import render
119
from django.views.decorators.clickjacking import xframe_options_exempt
1210
from django.views.generic import TemplateView
1311

12+
try:
13+
from xblock.utils.resources import ResourceLoader
14+
except ModuleNotFoundError: # For backward compatibility with releases older than Quince.
15+
from xblockutils.resources import ResourceLoader
16+
1417
from .api.v1.views import CompletionDetailView
1518

1619
loader = ResourceLoader(__name__)

requirements/base.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ edx-opaque-keys # Provides CourseKey and UsageKey
1010
edx-completion
1111
edx-toggles
1212
six
13-
xblock-utils
13+
XBlock[django]

requirements/base.txt

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,24 @@ backports-zoneinfo[tzdata]==0.2.1
1616
# kombu
1717
billiard==4.1.0
1818
# via celery
19-
boto3==1.28.57
19+
boto3==1.28.70
2020
# via fs-s3fs
21-
botocore==1.31.57
21+
botocore==1.31.70
2222
# via
2323
# boto3
2424
# s3transfer
2525
celery==5.3.4
2626
# via
2727
# -r requirements/base.in
2828
# edx-celeryutils
29+
# event-tracking
2930
certifi==2023.7.22
3031
# via requests
3132
cffi==1.16.0
3233
# via
3334
# cryptography
3435
# pynacl
35-
charset-normalizer==3.3.0
36+
charset-normalizer==3.3.1
3637
# via requests
3738
click==8.1.7
3839
# via
@@ -50,9 +51,9 @@ click-repl==0.3.0
5051
# via celery
5152
code-annotations==1.5.0
5253
# via edx-toggles
53-
cryptography==41.0.4
54+
cryptography==41.0.5
5455
# via pyjwt
55-
django==3.2.21
56+
django==3.2.22
5657
# via
5758
# -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt
5859
# -r requirements/base.in
@@ -66,6 +67,7 @@ django==3.2.21
6667
# edx-django-utils
6768
# edx-drf-extensions
6869
# edx-toggles
70+
# event-tracking
6971
# jsonfield
7072
# openedx-django-pyfs
7173
django-crum==0.7.9
@@ -92,13 +94,14 @@ drf-jwt==1.19.2
9294
# via edx-drf-extensions
9395
edx-celeryutils==1.2.3
9496
# via -r requirements/base.in
95-
edx-completion==4.3.0
97+
edx-completion==4.4.0
9698
# via -r requirements/base.in
9799
edx-django-utils==5.7.0
98100
# via
99101
# edx-drf-extensions
100102
# edx-toggles
101-
edx-drf-extensions==8.10.0
103+
# event-tracking
104+
edx-drf-extensions==8.12.0
102105
# via edx-completion
103106
edx-opaque-keys==2.5.1
104107
# via
@@ -109,6 +112,8 @@ edx-toggles==5.1.0
109112
# via
110113
# -r requirements/base.in
111114
# edx-completion
115+
event-tracking==2.2.0
116+
# via edx-completion
112117
fs==2.4.16
113118
# via
114119
# fs-s3fs
@@ -133,30 +138,33 @@ lazy==1.6
133138
lxml==4.9.3
134139
# via xblock
135140
mako==1.2.4
136-
# via xblock-utils
141+
# via xblock
137142
markupsafe==2.1.3
138143
# via
139144
# jinja2
140145
# mako
141146
# xblock
142-
newrelic==9.1.0
147+
newrelic==9.1.1
143148
# via edx-django-utils
144149
openedx-django-pyfs==3.4.0
145150
# via xblock
146151
pbr==5.11.1
147152
# via stevedore
148153
prompt-toolkit==3.0.39
149154
# via click-repl
150-
psutil==5.9.5
155+
psutil==5.9.6
151156
# via edx-django-utils
152157
pycparser==2.21
153158
# via cffi
154159
pyjwt[crypto]==2.8.0
155160
# via
156161
# drf-jwt
157162
# edx-drf-extensions
163+
# pyjwt
158164
pymongo==3.13.0
159-
# via edx-opaque-keys
165+
# via
166+
# edx-opaque-keys
167+
# event-tracking
160168
pynacl==1.5.0
161169
# via edx-django-utils
162170
python-dateutil==2.8.2
@@ -171,6 +179,7 @@ pytz==2023.3.post1
171179
# django
172180
# djangorestframework
173181
# edx-completion
182+
# event-tracking
174183
# xblock
175184
pyyaml==6.0.1
176185
# via
@@ -182,11 +191,12 @@ s3transfer==0.7.0
182191
# via boto3
183192
semantic-version==2.10.0
184193
# via edx-drf-extensions
185-
simplejson==3.19.1
186-
# via xblock-utils
194+
simplejson==3.19.2
195+
# via xblock
187196
six==1.16.0
188197
# via
189198
# -r requirements/base.in
199+
# event-tracking
190200
# fs
191201
# fs-s3fs
192202
# python-dateutil
@@ -208,7 +218,7 @@ tzdata==2023.3
208218
# via
209219
# backports-zoneinfo
210220
# celery
211-
urllib3==1.26.16
221+
urllib3==1.26.18
212222
# via
213223
# botocore
214224
# requests
@@ -220,17 +230,13 @@ vine==5.0.0
220230
wcwidth==0.2.8
221231
# via prompt-toolkit
222232
web-fragments==2.1.0
223-
# via
224-
# xblock
225-
# xblock-utils
233+
# via xblock
226234
webob==1.8.7
227235
# via xblock
228-
xblock[django]==1.8.0
236+
xblock[django]==1.8.1
229237
# via
238+
# -r requirements/base.in
230239
# edx-completion
231-
# xblock-utils
232-
xblock-utils==3.4.1
233-
# via -r requirements/base.in
234240

235241
# The following packages are considered to be unsafe in a requirements file:
236242
# setuptools

requirements/ci.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ filelock==3.12.4
1212
# virtualenv
1313
packaging==23.2
1414
# via tox
15-
platformdirs==3.10.0
15+
platformdirs==3.11.0
1616
# via virtualenv
1717
pluggy==0.13.1
1818
# via
@@ -31,5 +31,5 @@ tox==3.28.0
3131
# tox-battery
3232
tox-battery==0.6.2
3333
# via -r requirements/ci.in
34-
virtualenv==20.24.5
34+
virtualenv==20.24.6
3535
# via tox

0 commit comments

Comments
 (0)