Skip to content

Commit 1615d64

Browse files
Drop Python 3.8 and Add Python 3.12 Support (#22)
* feat: drop support for python3.8 and add python3.12 --------- Co-authored-by: Feanil Patel <feanil@axim.org>
1 parent 039adc7 commit 1615d64

File tree

18 files changed

+294
-325
lines changed

18 files changed

+294
-325
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@ jobs:
1515
strategy:
1616
matrix:
1717
os: [ubuntu-latest]
18-
python-version: ['3.8']
19-
toxenv: ["py38", "quality"]
20-
18+
python-version: ['3.11', '3.12']
19+
toxenv: ['default', 'quality']
2120
steps:
22-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v4
2322
- name: setup python
24-
uses: actions/setup-python@v2
23+
uses: actions/setup-python@v5
2524
with:
2625
python-version: ${{ matrix.python-version }}
2726

@@ -32,13 +31,19 @@ jobs:
3231
run: pip install -r requirements/ci.txt
3332

3433
- name: Run Tests
35-
env:
36-
TOXENV: ${{ matrix.toxenv }}
37-
run: tox
34+
run: |
35+
if [ "${{ matrix.toxenv }}" = "default" ]; then
36+
PYVER=${{ matrix.python-version }}
37+
TOXENV=py${PYVER//./}
38+
else
39+
TOXENV=${{ matrix.toxenv }}
40+
fi
41+
echo "Resolved TOXENV=$TOXENV"
42+
TOXENV=$TOXENV tox
3843
3944
- name: Run coverage
40-
if: matrix.python-version == '3.8' && matrix.toxenv == 'py38'
41-
uses: codecov/codecov-action@v4
45+
if: matrix.python-version == '3.12' && matrix.toxenv == 'default'
46+
uses: codecov/codecov-action@v5
4247
with:
4348
flags: unittests
4449
fail_ci_if_error: true

.github/workflows/pypi-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111

1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1515
- name: setup python
16-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@v5
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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ Unreleased
1616

1717
*
1818

19+
[2.0.0] - 2025-05-17
20+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
21+
22+
Changed
23+
_______
24+
25+
* Dropped support for Python 3.8 and added support for Python 3.12.
26+
1927
[1.0.0] - 2022-05-17
2028
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2129

@@ -24,4 +32,3 @@ _____
2432

2533
* First release on PyPI.
2634
* codejail includes moved from edx-platform to individual pypi package.
27-

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ One Time Setup
3030
cd codejail-includes
3131
3232
# Set up a virtualenv using virtualenvwrapper with the same name as the repo and activate it
33-
mkvirtualenv -p python3.8 codejail-includes
33+
mkvirtualenv -p python3.11 codejail-includes
3434
3535
3636
Every time you develop something in this repo

loncapa/loncapa_check.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import math
1010
import random
11-
from six.moves import range
1211

1312

1413
def lc_random(lower, upper, stepsize):

requirements/base.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
# Core requirements for using this application
22
-c constraints.txt
3-
4-
six

requirements/base.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.8
2+
# This file is autogenerated by pip-compile with Python 3.11
33
# by the following command:
44
#
55
# make upgrade
66
#
7-
six==1.16.0
8-
# via -r requirements/base.in

requirements/ci.txt

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,34 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.8
2+
# This file is autogenerated by pip-compile with Python 3.11
33
# by the following command:
44
#
55
# make upgrade
66
#
7-
distlib==0.3.7
7+
cachetools==5.5.2
8+
# via tox
9+
chardet==5.2.0
10+
# via tox
11+
colorama==0.4.6
12+
# via tox
13+
distlib==0.3.9
814
# via virtualenv
9-
filelock==3.12.4
15+
filelock==3.18.0
1016
# via
1117
# tox
1218
# virtualenv
13-
packaging==23.2
14-
# via tox
15-
platformdirs==3.11.0
16-
# via virtualenv
17-
pluggy==1.3.0
18-
# via tox
19-
py==1.11.0
20-
# via tox
21-
six==1.16.0
19+
packaging==25.0
20+
# via
21+
# pyproject-api
22+
# tox
23+
platformdirs==4.3.7
24+
# via
25+
# tox
26+
# virtualenv
27+
pluggy==1.5.0
2228
# via tox
23-
tomli==2.0.1
29+
pyproject-api==1.9.0
2430
# via tox
25-
tox==3.28.0
26-
# via
27-
# -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt
28-
# -r requirements/ci.in
29-
virtualenv==20.24.6
31+
tox==4.25.0
32+
# via -r requirements/ci.in
33+
virtualenv==20.31.1
3034
# via tox

0 commit comments

Comments
 (0)