Skip to content

Commit

Permalink
Merge pull request #143 from learningequality/python3.13
Browse files Browse the repository at this point in the history
Add support for Python 3.13.
  • Loading branch information
rtibbles authored Oct 24, 2024
2 parents 4ab63dc + 7090974 commit 8c29d9a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 37 deletions.
27 changes: 1 addition & 26 deletions .github/workflows/pythontest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
strategy:
max-parallel: 5
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: [3.6, 3.7, 3.8, 3.9, '3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -51,28 +51,3 @@ jobs:
key: ${{ runner.os }}-tox-py${{ matrix.python-version }}-${{ hashFiles('setup.py') }}
- name: Test with tox
run: tox -e py${{ matrix.python-version }}
unit_test27:
name: Python unit tests (2.7)
needs: pre_job
runs-on: ubuntu-20.04
container:
image: python:2.7.18-buster
steps:
- uses: actions/checkout@v4
- name: Cache pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-py2.7-${{ hashFiles('setup.py') }}
- name: Install tox
run: |
python -m pip install --upgrade pip
pip install tox
- name: tox env cache
if: ${{ !startsWith(runner.os, 'windows') }}
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/.tox/py2.7
key: ${{ runner.os }}-tox-py2.7-${{ hashFiles('setup.py') }}
- name: Test with tox
run: tox -e py2.7
2 changes: 1 addition & 1 deletion js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"version": "0.2.7"
"version": "0.2.8"
}
5 changes: 2 additions & 3 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
pycountry==17.5.14
pytest==3.7.1
attrs==20.3.0
jsonschema==3.2.0;python_version!="3.4"
pytest==6.2.5
jsonschema==3.2.0
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
setup(
name="le-utils",
packages=find_packages(),
version="0.2.7",
version="0.2.8",
description="LE-Utils contains shared constants used in Kolibri, Ricecooker, and Kolibri Studio.",
long_description=long_description,
long_description_content_type="text/markdown",
Expand All @@ -33,5 +33,5 @@
],
author="Learning Equality",
author_email="[email protected]",
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <3.13",
python_requires=">=3.6, <3.14",
)
12 changes: 7 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
[tox]
envlist = py{2.7,3.4,3.5,3.6,3.7,3.8}
envlist = py{3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13}

[testenv]
basepython =
py2.7: python2.7
py3.4: python3.4
py3.5: python3.5
py3.6: python3.6
py3.7: python3.7
py3.8: python3.8
py3.9: python3.9
py3.10: python3.10
py3.11: python3.11
py3.12: python3.12
py3.13: python3.13
deps = -r{toxinidir}/requirements-test.txt
setenv =
PYTHONPATH = {toxinidir}
commands =
pip install -U pip
py.test --basetemp={envtmpdir}
pytest --basetemp={envtmpdir}

0 comments on commit 8c29d9a

Please sign in to comment.