From bb6b7b42e0dba8733f7037ca2b5443ffb9d7a39f Mon Sep 17 00:00:00 2001 From: edX requirements bot Date: Fri, 23 Feb 2024 07:37:29 -0500 Subject: [PATCH] feat: add python 3.12 support --- .github/workflows/ci.yml | 6 ++++-- tox.ini | 21 ++++++++++----------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f6efaec..163cbf4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,8 +14,10 @@ jobs: strategy: matrix: os: [ubuntu-20.04] - python-version: ['3.8'] - toxenv: [quality, docs, django32, django42] + python-version: + - '3.8' + - '3.12' + toxenv: [quality, docs, django42] steps: - uses: actions/checkout@v2 diff --git a/tox.ini b/tox.ini index ef3da1a..44666d1 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py38-django{32, 42} +envlist = py{38, 312}-django{42} [doc8] ignore = D001 @@ -16,23 +16,22 @@ addopts = --cov code_annotations --cov-report term-missing --cov-report xml norecursedirs = .* docs requirements [testenv] -deps = - django32: Django>=3.2,<4.0 +deps = django42: Django>=4.2,<4.3 -r{toxinidir}/requirements/test.txt -commands = +commands = python -Wd -m pytest {posargs} [testenv:docs] -setenv = +setenv = PYTHONPATH = {toxinidir} -allowlist_externals = +allowlist_externals = make rm twine -deps = +deps = -r{toxinidir}/requirements/doc.txt -commands = +commands = doc8 --ignore-path docs/_build README.rst docs rm -f docs/code_annotations.rst rm -f docs/modules.rst @@ -42,11 +41,11 @@ commands = twine check dist/* [testenv:quality] -allowlist_externals = +allowlist_externals = make -deps = +deps = -r{toxinidir}/requirements/quality.txt -commands = +commands = pylint code_annotations tests test_utils setup.py pycodestyle code_annotations tests setup.py pydocstyle code_annotations tests setup.py