Skip to content

Commit 713a947

Browse files
authored
Merge pull request #207 from openedx/python312-upgrade
feat!: Python 3.12 Upgrade
2 parents 994043a + a37a519 commit 713a947

16 files changed

+240
-340
lines changed

.github/workflows/ci.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ubuntu-latest]
17-
python-version: ['3.8']
18-
toxenv: [quality, docs, pii-annotations, django32, django40]
17+
python-version: ['3.12']
18+
toxenv: [quality, docs, pii-annotations, django42]
1919

2020
steps:
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v4
2222
- name: setup python
23-
uses: actions/setup-python@v2
23+
uses: actions/setup-python@v4
2424
with:
2525
python-version: ${{ matrix.python-version }}
2626

@@ -36,7 +36,7 @@ jobs:
3636
run: tox
3737

3838
- name: Run Coverage
39-
if: matrix.python-version == '3.8' && matrix.toxenv=='django32'
39+
if: matrix.python-version == '3.12' && matrix.toxenv=='django42'
4040
uses: codecov/codecov-action@v4
4141
with:
4242
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/mysql8-migrations.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ ubuntu-latest ]
17-
python-version: [ 3.8 ]
17+
python-version: [ 3.12 ]
1818

1919
steps:
2020
- name: Checkout repo

.github/workflows/pypi-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: setup python
1616
uses: actions/setup-python@v2
1717
with:
18-
python-version: 3.8
18+
python-version: 3.12
1919

2020
- name: Install pip
2121
run: pip install -r requirements/pip.txt

CHANGELOG.rst

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ Change Log
1313
1414
Unreleased
1515

16+
[2.0.0] - 2025-01-02
17+
---------------------
18+
* feat!: Upgraded to Python 3.12
19+
1620
[1.54.1] - 2024-12-05
1721
---------------------
1822
* fix: Fixed the transaction issue in the delete_product util function

requirements/ci.txt

+19-15
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,34 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.9
2+
# This file is autogenerated by pip-compile with Python 3.12
33
# by the following command:
44
#
55
# make upgrade
66
#
7+
cachetools==5.5.0
8+
# via tox
9+
chardet==5.2.0
10+
# via tox
11+
colorama==0.4.6
12+
# via tox
713
distlib==0.3.8
814
# via virtualenv
9-
filelock==3.15.4
15+
filelock==3.16.0
1016
# via
1117
# tox
1218
# virtualenv
1319
packaging==24.1
14-
# via tox
15-
platformdirs==4.2.2
16-
# via virtualenv
20+
# via
21+
# pyproject-api
22+
# tox
23+
platformdirs==4.3.2
24+
# via
25+
# tox
26+
# virtualenv
1727
pluggy==1.5.0
1828
# via tox
19-
py==1.11.0
29+
pyproject-api==1.7.1
2030
# via tox
21-
six==1.16.0
22-
# via tox
23-
tomli==2.0.1
24-
# via tox
25-
tox==3.28.0
26-
# via
27-
# -c requirements/constraints.txt
28-
# -r requirements/ci.in
29-
virtualenv==20.26.3
31+
tox==4.18.1
32+
# via -r requirements/ci.in
33+
virtualenv==20.26.4
3034
# via tox

requirements/constraints.txt

+1-16
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,10 @@
99
# linking to it here is good.
1010

1111
# Stay on an LTS release
12-
django<4.0
12+
django<4.3
1313

1414
path==13.1.0
1515

1616
# latest version causing issues in discovery.
1717
algoliasearch-django<4.0.0
1818
algoliasearch<2.0.0
19-
20-
# tox version greater than 4 is causing problems.
21-
tox<4.0.0
22-
23-
# latest version require python>=3.9
24-
sphinxcontrib-applehelp<=1.0.4
25-
sphinxcontrib-devhelp<=1.0.2
26-
sphinxcontrib-htmlhelp<=2.0.1
27-
sphinxcontrib-qthelp<=1.0.3
28-
sphinxcontrib-serializinghtml<=1.1.5
29-
accessible-pygments<=0.0.4
30-
alabaster<=0.7.13
31-
pydata-sphinx-theme<=0.14.4
32-
sphinx<=7.1.2
33-
sphinx-book-theme<=1.0.1

0 commit comments

Comments
 (0)