Skip to content

Commit

Permalink
chore: Adds support of python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
farhan committed Feb 26, 2024
1 parent dcf16b4 commit e543fa1
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 20 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04]
python-version: ['3.8']
toxenv: [quality, docs, without-django, django32, django42]
python-version: ['3.8', '3.12']
toxenv: [quality, docs, without-django, django42]

steps:
- uses: actions/checkout@v2
Expand All @@ -36,7 +36,7 @@ jobs:
run: tox -- --hypothesis-profile=ci

- name: Run Coverage
if: matrix.python-version == '3.8' && matrix.toxenv=='django42'
if: matrix.python-version == '3.12' && matrix.toxenv=='django42'
uses: codecov/codecov-action@v1
with:
flags: unittests
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 2.6.0

* Added support for python 3.12
* Dropped support for django 3.2


# 2.5.1

* Fixed - py.typed file wasn't installed properly via setuptools.
Expand Down
2 changes: 1 addition & 1 deletion opaque_keys/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.5.1'
__version__ = '2.6.0'


class InvalidKeyError(Exception):
Expand Down
14 changes: 1 addition & 13 deletions requirements/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,4 @@
# pin when possible. Writing an issue against the offending project and
# linking to it here is good.

# This file contains all common constraints for edx-repos
-c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt

# pytest>=5.6.0 fails to fetch the tests and hence all the tests fail
pytest<5.6.0

pytest-xdist<2.0.0

# pytest (from `test.in`) requires pluggy<1.
# We must constrain it here so that `ci.in` (which doesn't
# include pytest) doesn't generate `ci.txt` with a pluggy version >=1.
# Remove this pin when pytest no longer requires pluggy<1.
pluggy<1
lxml<5.0.0
5 changes: 2 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
[tox]
envlist = py38-django{32,42},quality,without-django
envlist = py{38,312}-django{42},quality,without-django
skip_missing_interpreters = True

[testenv]
deps =
django32: Django>=3.2,<4.0
deps =
django42: Django>=4.2,<4.3
-r{toxinidir}/requirements/django-test.txt
commands = pytest -v --disable-pytest-warnings --nomigrations {posargs}
Expand Down

0 comments on commit e543fa1

Please sign in to comment.