From f1d5f21b3d9cd210609fddef91b549bdd50195fd Mon Sep 17 00:00:00 2001 From: edX requirements bot Date: Fri, 23 Feb 2024 07:37:31 -0500 Subject: [PATCH] feat: add python 3.12 support --- .github/workflows/ci.yml | 6 ++++-- tox.ini | 10 ++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ca50c1e..afe406e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,8 +15,10 @@ jobs: strategy: matrix: os: [ubuntu-20.04] - python-version: ['3.8'] - toxenv: [quality, django32, django40, django42] + python-version: + - '3.8' + - '3.12' + toxenv: [quality, django42] steps: - uses: actions/checkout@v4 - name: setup python diff --git a/tox.ini b/tox.ini index f22bc5d..1882875 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py38-django{32,40,42}, quality +envlist = py{38, 312}-django{42}, quality [doc8] max-line-length = 120 @@ -9,15 +9,13 @@ exclude = .git,.tox,migrations max-line-length = 120 [pytest] -DJANGO_SETTINGS_MODULE = test_settings +django_settings_module = test_settings addopts = --cov splash --cov-report term-missing --cov-report xml norecursedirs = .* docs requirements [testenv] -deps = - django32: Django>=3.2,<4.0 - django40: Django>=4.0,<4.1 - django42: Django>=4.1,<5.0 +deps = + django42: Django>=4.2,<4.3 -r{toxinidir}/requirements/test.txt commands = python -Wd -m pytest {posargs}