Skip to content

Commit

Permalink
feat!: Python 3.12 Upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
UsamaSadiq committed Sep 11, 2024
1 parent 0df7820 commit c3382bd
Show file tree
Hide file tree
Showing 14 changed files with 232 additions and 335 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-20.04]
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-20.04 ]
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

[1.54.0] - 2024-09-11
---------------------
* feat!: Upgraded to Python 3.12

[1.53.0] - 2024-08-22
---------------------
* perf: Introduced db_index on the `created` and `is_blacklisted` fields in `XBlockSkillData` model
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 c3382bd

Please sign in to comment.