From cde50d065f373544be313118179bc45c41ba8fe4 Mon Sep 17 00:00:00 2001 From: salmannawaz Date: Thu, 4 Apr 2024 09:30:21 +0500 Subject: [PATCH] chore: Add python 3.11 support (#297) * chore: Add python 3.11 support * chore: update package version --- .github/workflows/ci.yml | 4 ++-- opaque_keys/__init__.py | 2 +- setup.py | 2 ++ tox.ini | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6136b40a..bf6248ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: os: [ubuntu-20.04] - python-version: ['3.8', '3.12'] + python-version: ['3.8', '3.11', '3.12'] toxenv: [quality, docs, without-django, django42] steps: @@ -36,7 +36,7 @@ jobs: run: tox -- --hypothesis-profile=ci - name: Run Coverage - if: matrix.python-version == '3.12' && matrix.toxenv=='django42' + if: matrix.python-version == '3.11' && matrix.toxenv=='django42' uses: codecov/codecov-action@v1 with: flags: unittests diff --git a/opaque_keys/__init__.py b/opaque_keys/__init__.py index 7bbeaea5..5f7b1cee 100644 --- a/opaque_keys/__init__.py +++ b/opaque_keys/__init__.py @@ -14,7 +14,7 @@ from stevedore.enabled import EnabledExtensionManager from typing_extensions import Self # For python 3.11 plus, can just use "from typing import Self" -__version__ = '2.6.0' +__version__ = '2.7.0' class InvalidKeyError(Exception): diff --git a/setup.py b/setup.py index f5c46ebd..8760cbc1 100644 --- a/setup.py +++ b/setup.py @@ -102,6 +102,8 @@ def get_version(*file_paths): "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Framework :: Django", "Framework :: Django :: 3.2", "Framework :: Django :: 4.0", diff --git a/tox.ini b/tox.ini index 1246cf44..c7539073 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py{38,312}-django{42},quality,without-django +envlist = py{38,311,312}-django{42},quality,without-django skip_missing_interpreters = True [testenv]