Skip to content

Commit 48d38d1

Browse files
authored
chore: Post Django32 cleanup (#216)
1 parent c51e4a7 commit 48d38d1

14 files changed

+239
-235
lines changed

.github/workflows/ci.yml

+31-31
Original file line numberDiff line numberDiff line change
@@ -2,46 +2,46 @@ name: Python CI
22
on:
33
push:
44
branches:
5-
- master
5+
- master
66
pull_request:
77
branches:
8-
- '**'
8+
- '**'
99
jobs:
10-
python-tests:
10+
run_tests:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
os: [ ubuntu-20.04 ]
15-
python-version: [ '3.8' ]
16-
toxenv: [ django22, django30, django31, django32 ]
14+
os: [ubuntu-20.04]
15+
python-version: ['3.8']
16+
toxenv: [django32, django40]
1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v2
1919

20-
- name: Python setup
21-
uses: actions/setup-python@v2
22-
with:
23-
python-version: ${{ matrix.python-version }}
20+
- name: Python setup
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: ${{ matrix.python-version }}
2424

25-
- name: Set up test environment
26-
run: |
27-
sudo apt-get install xvfb
28-
wget https://github.com/mozilla/geckodriver/releases/download/v0.15.0/geckodriver-v0.15.0-linux64.tar.gz
29-
mkdir geckodriver
30-
tar -xzf geckodriver-v0.15.0-linux64.tar.gz -C geckodriver
31-
export PATH=$PATH:$(pwd)/geckodriver
32-
export BOTO_CONFIG=/dev/null
25+
- name: Set up test environment
26+
run: |
27+
sudo apt-get install xvfb
28+
wget https://github.com/mozilla/geckodriver/releases/download/v0.15.0/geckodriver-v0.15.0-linux64.tar.gz
29+
mkdir geckodriver
30+
tar -xzf geckodriver-v0.15.0-linux64.tar.gz -C geckodriver
31+
export PATH=$PATH:$(pwd)/geckodriver
32+
export BOTO_CONFIG=/dev/null
3333
34-
- name: Install Requirements
35-
run: |
36-
pip install -r requirements/pip.txt
37-
pip install -r requirements/ci.txt
34+
- name: Install Requirements
35+
run: |
36+
pip install -r requirements/pip.txt
37+
pip install -r requirements/ci.txt
3838
39-
- name: Run Tests
40-
run: xvfb-run --server-args=-ac -- tox -e ${{ matrix.toxenv }}
39+
- name: Run Tests
40+
run: xvfb-run --server-args=-ac -- tox -e ${{ matrix.toxenv }}
4141

42-
- name: Upload coverage to CodeCov
43-
if: matrix.python-version == '3.8' && matrix.toxenv == 'django32'
44-
uses: codecov/codecov-action@v1
45-
with:
46-
file: ./coverage.xml
47-
fail_ci_if_error: true
42+
- name: Upload coverage to CodeCov
43+
if: matrix.python-version == '3.8' && matrix.toxenv == 'django32'
44+
uses: codecov/codecov-action@v1
45+
with:
46+
file: ./coverage.xml
47+
fail_ci_if_error: true

CHANGELOG.rst

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ Change history for XBlock SDK
44

55
These are notable changes in XBlock.
66

7+
0.5.0
8+
-----
9+
* Removed Django22, 30 and 31 support
10+
* Added Django40 support
11+
* Renamed CI job so that our modernizers work fine
12+
* Code changes related to things removed in Django40
13+
714
0.4.0
815
-----
916
* Added support for Django 3.0, Django 3.1 and Django 3.2 tests

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ include README.rst
55
include requirements/base.in
66
include requirements/test.in
77
include requirements/test.txt
8+
include requirements/constraints.txt

requirements/base.txt

+19-17
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,38 @@
66
#
77
appdirs==1.4.4
88
# via fs
9-
arrow==1.2.0
9+
arrow==1.2.1
1010
# via jinja2-time
11+
asgiref==3.5.0
12+
# via django
1113
binaryornot==0.4.4
1214
# via cookiecutter
1315
boto==2.49.0
1416
# via -r requirements/base.in
15-
boto3==1.18.54
17+
boto3==1.20.41
1618
# via fs-s3fs
17-
botocore==1.21.54
19+
botocore==1.23.41
1820
# via
1921
# boto3
2022
# s3transfer
21-
certifi==2021.5.30
23+
certifi==2021.10.8
2224
# via requests
2325
chardet==4.0.0
2426
# via binaryornot
25-
charset-normalizer==2.0.6
27+
charset-normalizer==2.0.10
2628
# via requests
27-
click==8.0.1
29+
click==8.0.3
2830
# via cookiecutter
2931
cookiecutter==1.7.3
3032
# via -r requirements/base.in
31-
django==2.2.24
33+
django==3.2.11
3234
# via
3335
# -c requirements/common_constraints.txt
3436
# -r requirements/base.in
3537
# django-pyfs
36-
django-pyfs==3.1.0
38+
django-pyfs==3.2.0
3739
# via -r requirements/base.in
38-
fs==2.4.13
40+
fs==2.4.14
3941
# via
4042
# django-pyfs
4143
# fs-s3fs
@@ -44,9 +46,9 @@ fs-s3fs==1.1.1
4446
# via
4547
# -r requirements/base.in
4648
# django-pyfs
47-
idna==3.2
49+
idna==3.3
4850
# via requests
49-
jinja2==3.0.2
51+
jinja2==3.0.3
5052
# via
5153
# cookiecutter
5254
# jinja2-time
@@ -58,7 +60,7 @@ jmespath==0.10.0
5860
# botocore
5961
lazy==1.4
6062
# via -r requirements/base.in
61-
lxml==4.6.3
63+
lxml==4.7.1
6264
# via
6365
# -r requirements/base.in
6466
# xblock
@@ -82,15 +84,15 @@ pytz==2021.3
8284
# django
8385
# fs
8486
# xblock
85-
pyyaml==5.4.1
87+
pyyaml==6.0
8688
# via xblock
87-
requests==2.26.0
89+
requests==2.27.1
8890
# via
8991
# -r requirements/base.in
9092
# cookiecutter
9193
s3transfer==0.5.0
9294
# via boto3
93-
simplejson==3.17.5
95+
simplejson==3.17.6
9496
# via -r requirements/base.in
9597
six==1.16.0
9698
# via
@@ -102,11 +104,11 @@ sqlparse==0.4.2
102104
# via django
103105
text-unidecode==1.3
104106
# via python-slugify
105-
urllib3==1.26.7
107+
urllib3==1.26.8
106108
# via
107109
# botocore
108110
# requests
109-
web-fragments==1.1.0
111+
web-fragments==2.0.0
110112
# via
111113
# -r requirements/base.in
112114
# xblock

requirements/ci.txt

+14-16
Original file line numberDiff line numberDiff line change
@@ -4,49 +4,47 @@
44
#
55
# make upgrade
66
#
7-
backports.entry-points-selectable==1.1.0
8-
# via virtualenv
9-
certifi==2021.5.30
7+
certifi==2021.10.8
108
# via requests
11-
charset-normalizer==2.0.6
9+
charset-normalizer==2.0.10
1210
# via requests
1311
codecov==2.1.12
1412
# via -r requirements/ci.in
15-
coverage==6.0
13+
coverage==6.2
1614
# via codecov
17-
distlib==0.3.3
15+
distlib==0.3.4
1816
# via virtualenv
19-
filelock==3.3.0
17+
filelock==3.4.2
2018
# via
2119
# tox
2220
# virtualenv
23-
idna==3.2
21+
idna==3.3
2422
# via requests
25-
packaging==21.0
23+
packaging==21.3
2624
# via tox
27-
platformdirs==2.4.0
25+
platformdirs==2.4.1
2826
# via virtualenv
2927
pluggy==1.0.0
3028
# via tox
31-
py==1.10.0
29+
py==1.11.0
3230
# via tox
33-
pyparsing==2.4.7
31+
pyparsing==3.0.7
3432
# via packaging
35-
requests==2.26.0
33+
requests==2.27.1
3634
# via codecov
3735
six==1.16.0
3836
# via
3937
# tox
4038
# virtualenv
4139
toml==0.10.2
4240
# via tox
43-
tox==3.24.4
41+
tox==3.24.5
4442
# via
4543
# -r requirements/ci.in
4644
# tox-battery
4745
tox-battery==0.6.1
4846
# via -r requirements/ci.in
49-
urllib3==1.26.7
47+
urllib3==1.26.8
5048
# via requests
51-
virtualenv==20.8.1
49+
virtualenv==20.13.0
5250
# via tox

requirements/common_constraints.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
# using LTS django version
16-
Django<2.3
16+
Django<4.0
1717

1818
# latest version is causing e2e failures in edx-platform.
1919
# See pyjwt[crypto]<2.0.0 comment.

0 commit comments

Comments
 (0)