Skip to content

Commit 9d98675

Browse files
authored
Merge pull request #383 from openedx/jenkins/add-python312-support-1b3f20d
feat: add Python 3.11 and 3.12 support, drop Django 3.2
2 parents 7a7e8d0 + d72d394 commit 9d98675

File tree

14 files changed

+169
-134
lines changed

14 files changed

+169
-134
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,28 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
os: [ubuntu-20.04]
22-
python-version: [3.8]
23-
toxenv: [py38-django32, py38-django42, quality, translations-django32, translations-django42]
22+
toxenv: [py38-django42, py311-django42, py312-django42, py38-quality, py311-quality, py312-quality, translations]
2423

2524
steps:
2625
- name: checkout repo
2726
uses: actions/checkout@v3
2827
with:
2928
submodules: recursive
3029

30+
- name: Extract the Python version from tox environment
31+
run: |
32+
if [[ "${{ matrix.toxenv }}" =~ py[0-9]+ ]]; then
33+
PYTHON_VERSION=$(echo "${{ matrix.toxenv }}" | sed -E 's/py([0-9])([0-9]+).*/\1.\2/')
34+
else
35+
# Default version
36+
PYTHON_VERSION=3.8
37+
fi
38+
echo "PYTHON_VERSION=$PYTHON_VERSION" >> $GITHUB_ENV
39+
3140
- name: setup python
3241
uses: actions/setup-python@v4
3342
with:
34-
python-version: ${{ matrix.python-version }}
43+
python-version: ${{ env.PYTHON_VERSION }}
3544

3645
- name: Install translations dependencies
3746
if: ${{ startsWith(matrix.toxenv, 'translations') }}

Changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ Drag and Drop XBlock changelog
44
Unreleased
55
---------------------------
66

7+
Version 4.0.1 (2024-04-17)
8+
--------------------------
9+
10+
* Add Python 3.11 support.
11+
* Add Python 3.12 support.
12+
* Drop Django 3.2 support.
13+
714
Version 4.0.0 (2024-03-12)
815
--------------------------
916

drag_and_drop_v2/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
""" Drag and Drop v2 XBlock """
22
from .drag_and_drop_v2 import DragAndDropBlock
33

4-
__version__ = "4.0.0"
4+
__version__ = "4.0.1"

requirements/base.txt

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,21 @@
66
#
77
appdirs==1.4.4
88
# via fs
9-
asgiref==3.7.2
9+
asgiref==3.8.1
1010
# via django
11+
backports-zoneinfo==0.2.1 ; python_version < "3.9"
12+
# via
13+
# -c requirements/constraints.txt
14+
# django
1115
bleach[css]==6.1.0
1216
# via -r requirements/base.in
13-
boto3==1.34.49
17+
boto3==1.34.85
1418
# via fs-s3fs
15-
botocore==1.34.49
19+
botocore==1.34.85
1620
# via
1721
# boto3
1822
# s3transfer
19-
django==3.2.24
23+
django==4.2.11
2024
# via
2125
# -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt
2226
# django-appconf
@@ -39,27 +43,27 @@ jmespath==1.0.1
3943
# botocore
4044
lazy==1.6
4145
# via xblock
42-
lxml==5.1.0
43-
# via xblock
44-
mako==1.3.2
46+
lxml==4.9.4
47+
# via
48+
# -c requirements/constraints.txt
49+
# xblock
50+
mako==1.3.3
4551
# via xblock
4652
markupsafe==2.1.5
4753
# via
4854
# mako
4955
# xblock
50-
openedx-django-pyfs==3.5.0
56+
openedx-django-pyfs==3.6.0
5157
# via xblock
52-
python-dateutil==2.8.2
58+
python-dateutil==2.9.0.post0
5359
# via
5460
# botocore
5561
# xblock
5662
pytz==2024.1
57-
# via
58-
# django
59-
# xblock
63+
# via xblock
6064
pyyaml==6.0.1
6165
# via xblock
62-
s3transfer==0.10.0
66+
s3transfer==0.10.1
6367
# via boto3
6468
simplejson==3.19.2
6569
# via xblock
@@ -69,23 +73,23 @@ six==1.16.0
6973
# fs
7074
# fs-s3fs
7175
# python-dateutil
72-
sqlparse==0.4.4
76+
sqlparse==0.5.0
7377
# via django
7478
tinycss2==1.2.1
7579
# via bleach
76-
typing-extensions==4.10.0
80+
typing-extensions==4.11.0
7781
# via asgiref
7882
urllib3==1.26.18
7983
# via botocore
80-
web-fragments==2.1.0
84+
web-fragments==2.2.0
8185
# via xblock
8286
webencodings==0.5.1
8387
# via
8488
# bleach
8589
# tinycss2
8690
webob==1.8.7
8791
# via xblock
88-
xblock[django]==1.10.0
92+
xblock[django]==3.1.0
8993
# via -r requirements/base.in
9094

9195
# The following packages are considered to be unsafe in a requirements file:

requirements/ci.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
#
55
# make upgrade
66
#
7-
cachetools==5.3.2
7+
cachetools==5.3.3
88
# via tox
99
chardet==5.2.0
1010
# via tox
1111
colorama==0.4.6
1212
# via tox
1313
distlib==0.3.8
1414
# via virtualenv
15-
filelock==3.13.1
15+
filelock==3.13.4
1616
# via
1717
# tox
1818
# virtualenv
19-
packaging==23.2
19+
packaging==24.0
2020
# via
2121
# pyproject-api
2222
# tox
@@ -32,7 +32,7 @@ tomli==2.0.1
3232
# via
3333
# pyproject-api
3434
# tox
35-
tox==4.13.0
35+
tox==4.14.2
3636
# via -r requirements/ci.in
37-
virtualenv==20.25.1
37+
virtualenv==20.25.2
3838
# via tox

requirements/constraints.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,9 @@
1212
-c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt
1313

1414
pylint==2.4.2
15+
16+
# For python greater than or equal to 3.9 backports.zoneinfo causing failures
17+
backports.zoneinfo; python_version<"3.9"
18+
19+
# https://github.com/openedx/xblock-sdk/issues/347
20+
lxml<5.0.0

0 commit comments

Comments
 (0)