Skip to content

Commit

Permalink
build: upgrade Django from 2.2 to 3.2 (#986)
Browse files Browse the repository at this point in the history
Since edx-platform is already upgraded to django 3.2, this is a change that should minimum effect in production

Co-authored-by: Simon Chen <[email protected]>
  • Loading branch information
schenedx and Simon Chen authored Oct 28, 2021
1 parent b2f7932 commit a8510c5
Show file tree
Hide file tree
Showing 12 changed files with 88 additions and 72 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ jobs:
node-version:
- 10
toxenv:
- django22-drf310
- django22-drflatest
- django30-drflatest
- django31-drflatest
- django32-drflatest
Expand Down Expand Up @@ -60,7 +58,7 @@ jobs:
run: tox

- name: Run Coverage
if: matrix.toxenv == 'django22-drf310' || matrix.toxenv == 'django22-drflatest'
if: matrix.toxenv == 'django32-drflatest'
uses: codecov/codecov-action@v1
with:
flags: unittests
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ Change Log
Unreleased
~~~~~~~~~~

[4.3.0] - 2021-10-28
~~~~~~~~~~~~~~~~~~~~
* Upgrade the requirements and move edx-proctoring to be on Django 3.2 instead of Django 2.2

[4.2.0] - 2021-10-20
~~~~~~~~~~~~~~~~~~~~
* Timed exams should remain visible after the course end date has passed
Expand Down
2 changes: 1 addition & 1 deletion edx_proctoring/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"""

# Be sure to update the version number in edx_proctoring/package.json
__version__ = '4.2.0'
__version__ = '4.3.0'

default_app_config = 'edx_proctoring.apps.EdxProctoringConfig' # pylint: disable=invalid-name
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@edx/edx-proctoring",
"//": "Note that the version format is slightly different than that of the Python version when using prereleases.",
"version": "4.2.0",
"version": "4.3.0",
"main": "edx_proctoring/static/index.js",
"scripts": {
"test": "gulp test"
Expand Down
31 changes: 17 additions & 14 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ amqp==5.0.6
# via kombu
appdirs==1.4.4
# via fs
asgiref==3.4.1
# via django
billiard==3.6.4.0
# via celery
celery==5.0.4
Expand All @@ -16,9 +18,9 @@ celery==5.0.4
# event-tracking
certifi==2021.10.8
# via requests
cffi==1.14.6
cffi==1.15.0
# via cryptography
charset-normalizer==2.0.6
charset-normalizer==2.0.7
# via requests
click==7.1.2
# via
Expand All @@ -35,7 +37,7 @@ click-repl==0.2.0
# via celery
cryptography==35.0.0
# via pyjwt
django==2.2.24
django==3.2.8
# via
# -c requirements/common_constraints.txt
# -r requirements/base.in
Expand All @@ -54,7 +56,7 @@ django-crum==0.7.9
# edx-django-utils
django-ipware==4.0.0
# via -r requirements/base.in
django-model-utils==4.1.1
django-model-utils==4.2.0
# via
# -r requirements/base.in
# edx-when
Expand All @@ -74,7 +76,7 @@ djangorestframework==3.12.4
# -r requirements/base.in
# drf-jwt
# edx-drf-extensions
drf-jwt==1.19.0
drf-jwt==1.19.1
# via
# -c requirements/common_constraints.txt
# edx-drf-extensions
Expand All @@ -83,6 +85,7 @@ edx-django-utils==4.4.0
# edx-drf-extensions
# edx-rest-api-client
# edx-when
# event-tracking
edx-drf-extensions==8.0.0
# via
# -r requirements/base.in
Expand All @@ -94,15 +97,15 @@ edx-opaque-keys==2.2.2
# edx-when
edx-rest-api-client==5.4.0
# via -r requirements/base.in
edx-when==2.2.1
edx-when==2.2.2
# via -r requirements/base.in
event-tracking==1.1.1
event-tracking==1.1.3
# via -r requirements/base.in
fs==2.4.13
# via xblock
future==0.18.2
# via pyjwkest
idna==3.2
idna==3.3
# via requests
jsonfield==3.1.0
# via -r requirements/base.in
Expand All @@ -112,11 +115,11 @@ lxml==4.6.3
# via xblock
markupsafe==2.0.1
# via xblock
newrelic==7.0.0.166
newrelic==7.2.2.169
# via edx-django-utils
pbr==5.6.0
# via stevedore
prompt-toolkit==3.0.20
prompt-toolkit==3.0.21
# via click-repl
psutil==5.8.0
# via edx-django-utils
Expand All @@ -128,13 +131,13 @@ pycryptodomex==3.11.0
# pyjwkest
pyjwkest==1.4.2
# via edx-drf-extensions
pyjwt[crypto]==2.2.0
pyjwt[crypto]==2.3.0
# via
# -r requirements/base.in
# drf-jwt
# edx-drf-extensions
# edx-rest-api-client
pymongo==3.12.0
pymongo==3.12.1
# via
# edx-opaque-keys
# event-tracking
Expand All @@ -151,7 +154,7 @@ pytz==2021.3
# event-tracking
# fs
# xblock
pyyaml==5.4.1
pyyaml==6.0
# via xblock
requests==2.26.0
# via
Expand All @@ -175,7 +178,7 @@ slumber==0.7.1
# via edx-rest-api-client
sqlparse==0.4.2
# via django
stevedore==3.4.0
stevedore==3.5.0
# via
# edx-django-utils
# edx-opaque-keys
Expand Down
2 changes: 1 addition & 1 deletion requirements/celery50.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ click==7.1.2
click-didyoumean==0.3.0
click-repl==0.2.0
kombu==5.1.0
prompt-toolkit==3.0.20
prompt-toolkit==3.0.21
vine==5.0.0
12 changes: 6 additions & 6 deletions requirements/ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ backports.entry-points-selectable==1.1.0
# via virtualenv
certifi==2021.10.8
# via requests
charset-normalizer==2.0.6
charset-normalizer==2.0.7
# via requests
codecov==2.1.12
# via -r requirements/ci.in
coverage==6.0.1
coverage==6.0.2
# via codecov
distlib==0.3.3
# via virtualenv
filelock==3.3.0
filelock==3.3.1
# via
# tox
# virtualenv
idna==3.2
idna==3.3
# via requests
packaging==21.0
# via tox
Expand All @@ -30,7 +30,7 @@ pluggy==1.0.0
# via tox
py==1.10.0
# via tox
pyparsing==2.4.7
pyparsing==3.0.2
# via packaging
requests==2.26.0
# via codecov
Expand All @@ -48,5 +48,5 @@ tox-battery==0.6.1
# via -r requirements/ci.in
urllib3==1.26.7
# via requests
virtualenv==20.8.1
virtualenv==20.9.0
# via tox
9 changes: 7 additions & 2 deletions requirements/common_constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
# See BOM-2721 for more details.
# Below is the copied and edited version of common_constraints

# This is a temporary solution to override the real common_constraints.txt
# In edx-lint, until the pyjwt constraint in edx-lint has been removed.
# See BOM-2721 for more details.
# Below is the copied and edited version of common_constraints

# A central location for most common version constraints
# (across edx repos) for pip-installation.
#
Expand All @@ -18,11 +23,11 @@


# using LTS django version
Django<2.3
Django<3.3

# latest version is causing e2e failures in edx-platform.
# See comment.
drf-jwt<1.19.1
drf-jwt<1.19.2

# 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
Expand Down
30 changes: 16 additions & 14 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
#
# make upgrade
#
astroid==2.8.2
asgiref==3.4.1
# via django
astroid==2.8.4
# via
# pylint
# pylint-celery
Expand All @@ -27,21 +29,21 @@ diff-cover==6.4.2
# via -r requirements/dev.in
distlib==0.3.3
# via virtualenv
django==2.2.24
django==3.2.8
# via
# -c requirements/common_constraints.txt
# -r requirements/dev.in
# -r requirements/quality.in
# edx-i18n-tools
docutils==0.17.1
docutils==0.18
# via rstcheck
edx-i18n-tools==0.8.1
# via -r requirements/dev.in
edx-lint==5.2.0
edx-lint==5.2.1
# via
# -r requirements/dev.in
# -r requirements/quality.in
filelock==3.3.0
filelock==3.3.1
# via
# tox
# virtualenv
Expand Down Expand Up @@ -74,9 +76,9 @@ path.py==12.5.0
# via -r requirements/dev.in
pbr==5.6.0
# via stevedore
pep517==0.11.0
pep517==0.12.0
# via pip-tools
pip-tools==6.3.1
pip-tools==6.4.0
# via -r requirements/dev.in
platformdirs==2.4.0
# via
Expand All @@ -90,7 +92,7 @@ polib==1.1.1
# via edx-i18n-tools
py==1.10.0
# via tox
pycodestyle==2.7.0
pycodestyle==2.8.0
# via -r requirements/quality.in
pydocstyle==6.1.1
# via -r requirements/quality.in
Expand All @@ -110,13 +112,13 @@ pylint-plugin-utils==0.6
# via
# pylint-celery
# pylint-django
pyparsing==2.4.7
pyparsing==3.0.2
# via packaging
python-slugify==5.0.2
# via code-annotations
pytz==2021.3
# via django
pyyaml==5.4.1
pyyaml==6.0
# via
# code-annotations
# edx-i18n-tools
Expand All @@ -131,15 +133,15 @@ snowballstemmer==2.1.0
# via pydocstyle
sqlparse==0.4.2
# via django
stevedore==3.4.0
stevedore==3.5.0
# via code-annotations
text-unidecode==1.3
# via python-slugify
toml==0.10.2
# via
# pylint
# tox
tomli==1.2.1
tomli==1.2.2
# via pep517
tox==3.24.4
# via
Expand All @@ -151,13 +153,13 @@ typing-extensions==3.10.0.2
# via
# astroid
# pylint
virtualenv==20.8.1
virtualenv==20.9.0
# via tox
wheel==0.37.0
# via
# -r requirements/dev.in
# pip-tools
wrapt==1.12.1
wrapt==1.13.2
# via astroid

# The following packages are considered to be unsafe in a requirements file:
Expand Down
Loading

0 comments on commit a8510c5

Please sign in to comment.