Skip to content

Commit

Permalink
Merge pull request #207 from openedx/python312-upgrade
Browse files Browse the repository at this point in the history
feat!: Python 3.12 Upgrade
  • Loading branch information
UsamaSadiq authored Jan 2, 2025
2 parents 994043a + a37a519 commit 713a947
Show file tree
Hide file tree
Showing 16 changed files with 240 additions and 340 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.8']
toxenv: [quality, docs, pii-annotations, django32, django40]
python-version: ['3.12']
toxenv: [quality, docs, pii-annotations, django42]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -36,7 +36,7 @@ jobs:
run: tox

- name: Run Coverage
if: matrix.python-version == '3.8' && matrix.toxenv=='django32'
if: matrix.python-version == '3.12' && matrix.toxenv=='django42'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mysql8-migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ 3.8 ]
python-version: [ 3.12 ]

steps:
- name: Checkout repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.12

- name: Install pip
run: pip install -r requirements/pip.txt
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ Change Log
Unreleased

[2.0.0] - 2025-01-02
---------------------
* feat!: Upgraded to Python 3.12

[1.54.1] - 2024-12-05
---------------------
* fix: Fixed the transaction issue in the delete_product util function
Expand Down
34 changes: 19 additions & 15 deletions requirements/ci.txt
Original file line number Diff line number Diff line change
@@ -1,30 +1,34 @@
#
# This file is autogenerated by pip-compile with Python 3.9
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# make upgrade
#
cachetools==5.5.0
# via tox
chardet==5.2.0
# via tox
colorama==0.4.6
# via tox
distlib==0.3.8
# via virtualenv
filelock==3.15.4
filelock==3.16.0
# via
# tox
# virtualenv
packaging==24.1
# via tox
platformdirs==4.2.2
# via virtualenv
# via
# pyproject-api
# tox
platformdirs==4.3.2
# via
# tox
# virtualenv
pluggy==1.5.0
# via tox
py==1.11.0
pyproject-api==1.7.1
# via tox
six==1.16.0
# via tox
tomli==2.0.1
# via tox
tox==3.28.0
# via
# -c requirements/constraints.txt
# -r requirements/ci.in
virtualenv==20.26.3
tox==4.18.1
# via -r requirements/ci.in
virtualenv==20.26.4
# via tox
17 changes: 1 addition & 16 deletions requirements/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,10 @@
# linking to it here is good.

# Stay on an LTS release
django<4.0
django<4.3

path==13.1.0

# latest version causing issues in discovery.
algoliasearch-django<4.0.0
algoliasearch<2.0.0

# tox version greater than 4 is causing problems.
tox<4.0.0

# latest version require python>=3.9
sphinxcontrib-applehelp<=1.0.4
sphinxcontrib-devhelp<=1.0.2
sphinxcontrib-htmlhelp<=2.0.1
sphinxcontrib-qthelp<=1.0.3
sphinxcontrib-serializinghtml<=1.1.5
accessible-pygments<=0.0.4
alabaster<=0.7.13
pydata-sphinx-theme<=0.14.4
sphinx<=7.1.2
sphinx-book-theme<=1.0.1
Loading

0 comments on commit 713a947

Please sign in to comment.