From 5b0aafd9474ecc3695a6fcafb4a5744aac2b4beb Mon Sep 17 00:00:00 2001 From: edX requirements bot Date: Fri, 23 Feb 2024 07:37:35 -0500 Subject: [PATCH] feat: add python 3.12 support --- .github/workflows/ci.yml | 11 +++++------ tox.ini | 22 ++++++++++------------ 2 files changed, 15 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ff8e5e29..389b9ad2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,12 +13,11 @@ jobs: strategy: matrix: os: [ubuntu-20.04] - python-version: ['3.8'] - toxenv: [ - django32-celery53-drf313, django32-celery53-drflatest, - django42-celery53-drflatest, - quality, docs - ] + python-version: + - '3.8' + - '3.12' + toxenv: [django32-celery53-drf313, django32-celery53-drflatest, django42-celery53-drflatest, + quality, docs, django42] steps: - uses: actions/checkout@v4 diff --git a/tox.ini b/tox.ini index d70c7231..773bd5c0 100644 --- a/tox.ini +++ b/tox.ini @@ -1,26 +1,24 @@ [tox] -envlist = - py38-django{32,42}-celery{53}-drf{313,latest} - quality +envlist = + py{38, 312}-django{42}quality docs [testenv] -deps = - django32: Django>=3.2,<4.0 +deps = django42: Django>=4.2,<4.3 drf313: djangorestframework>=3.13,<3.14 drflatest: djangorestframework -r{toxinidir}/requirements/test.txt -commands = +commands = python -Wd -m pytest --cov user_tasks {posargs} [testenv:docs] -allowlist_externals = +allowlist_externals = make rm -deps = +deps = -r{toxinidir}/requirements/doc.txt -commands = +commands = doc8 --ignore-path docs/_build --ignore-path docs/rest_api.rst README.rst docs rm -f docs/user_tasks.rst rm -f docs/modules.rst @@ -30,15 +28,15 @@ commands = twine check dist/* [testenv:quality] -allowlist_externals = +allowlist_externals = make rm touch -deps = +deps = -r{toxinidir}/requirements/doc.txt -r{toxinidir}/requirements/quality.txt -r{toxinidir}/requirements/test.txt -commands = +commands = touch tests/__init__.py pylint user_tasks pylint tests