Skip to content

Commit

Permalink
Adds support of python 3.12 (#288)
Browse files Browse the repository at this point in the history
* chore: Adds support of python 3.12
  • Loading branch information
farhan authored Feb 29, 2024
1 parent dcf16b4 commit 1aa84fd
Show file tree
Hide file tree
Showing 12 changed files with 118 additions and 175 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
2 changes: 1 addition & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ pymongo==3.13.0
# via -r requirements/base.in
stevedore==5.2.0
# via -r requirements/base.in
typing-extensions==4.9.0
typing-extensions==4.10.0
# via -r requirements/base.in
26 changes: 16 additions & 10 deletions requirements/ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
#
# make upgrade
#
coverage==7.4.2
cachetools==5.3.2
# via tox
chardet==5.2.0
# via tox
colorama==0.4.6
# via tox
coverage==7.4.3
# via -r requirements/ci.in
distlib==0.3.8
# via virtualenv
Expand All @@ -13,22 +19,22 @@ filelock==3.13.1
# tox
# virtualenv
packaging==23.2
# via tox
platformdirs==4.2.0
# via
# pyproject-api
# tox
# virtualenv
pluggy==0.13.1
platformdirs==4.2.0
# via
# -c requirements/constraints.txt
# tox
py==1.11.0
# virtualenv
pluggy==1.4.0
# via tox
six==1.16.0
pyproject-api==1.6.1
# via tox
tomli==2.0.1
# via tox
tox==3.28.0
# via
# pyproject-api
# tox
tox==4.13.0
# via -r requirements/ci.in
virtualenv==20.25.1
# via tox
14 changes: 0 additions & 14 deletions requirements/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,3 @@
# link to other information that will help people in the future to remove the
# 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
75 changes: 36 additions & 39 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ alabaster==0.7.13
# via
# -r requirements/doc.txt
# sphinx
astroid==3.0.3
astroid==3.1.0
# via
# -r requirements/doc.txt
# pylint
Expand All @@ -21,7 +21,6 @@ attrs==23.2.0
# via
# -r requirements/doc.txt
# hypothesis
# pytest
babel==2.14.0
# via
# -r requirements/doc.txt
Expand All @@ -35,10 +34,18 @@ build==1.0.3
# via
# -r requirements/pip-tools.txt
# pip-tools
cachetools==5.3.2
# via
# -r requirements/ci.txt
# tox
certifi==2024.2.2
# via
# -r requirements/doc.txt
# requests
chardet==5.2.0
# via
# -r requirements/ci.txt
# tox
charset-normalizer==3.3.2
# via
# -r requirements/doc.txt
Expand All @@ -59,12 +66,16 @@ code-annotations==1.6.0
# via
# -r requirements/doc.txt
# edx-lint
coverage[toml]==7.4.2
colorama==0.4.6
# via
# -r requirements/ci.txt
# tox
coverage[toml]==7.4.3
# via
# -r requirements/ci.txt
# -r requirements/doc.txt
# pytest-cov
ddt==1.7.1
ddt==1.7.2
# via -r requirements/doc.txt
dill==0.3.8
# via
Expand All @@ -86,6 +97,7 @@ exceptiongroup==1.2.0
# via
# -r requirements/doc.txt
# hypothesis
# pytest
execnet==2.0.2
# via
# -r requirements/doc.txt
Expand All @@ -95,7 +107,7 @@ filelock==3.13.1
# -r requirements/ci.txt
# tox
# virtualenv
hypothesis==6.98.10
hypothesis==6.98.12
# via -r requirements/doc.txt
idna==3.6
# via
Expand All @@ -111,6 +123,10 @@ importlib-metadata==7.0.1
# -r requirements/pip-tools.txt
# build
# sphinx
iniconfig==2.0.0
# via
# -r requirements/doc.txt
# pytest
isort==5.13.2
# via
# -r requirements/doc.txt
Expand All @@ -130,10 +146,6 @@ mccabe==0.7.0
# pylint
mock==5.1.0
# via -r requirements/doc.txt
more-itertools==10.2.0
# via
# -r requirements/doc.txt
# pytest
mypy==1.8.0
# via -r requirements/doc.txt
mypy-extensions==1.0.0
Expand All @@ -151,6 +163,7 @@ packaging==23.2
# -r requirements/pip-tools.txt
# build
# pydata-sphinx-theme
# pyproject-api
# pytest
# sphinx
# tox
Expand All @@ -165,20 +178,13 @@ platformdirs==4.2.0
# -r requirements/ci.txt
# -r requirements/doc.txt
# pylint
# virtualenv
pluggy==0.13.1
# via
# -c requirements/constraints.txt
# -r requirements/ci.txt
# -r requirements/doc.txt
# pytest
# tox
py==1.11.0
# virtualenv
pluggy==1.4.0
# via
# -r requirements/ci.txt
# -r requirements/doc.txt
# pytest
# pytest-forked
# tox
pycodestyle==2.11.1
# via -r requirements/doc.txt
Expand All @@ -193,7 +199,7 @@ pygments==2.17.2
# pydata-sphinx-theme
# readme-renderer
# sphinx
pylint==3.0.3
pylint==3.1.0
# via
# -r requirements/doc.txt
# edx-lint
Expand All @@ -215,28 +221,24 @@ pylint-plugin-utils==0.8.2
# pylint-django
pymongo==3.13.0
# via -r requirements/doc.txt
pyproject-api==1.6.1
# via
# -r requirements/ci.txt
# tox
pyproject-hooks==1.0.0
# via
# -r requirements/pip-tools.txt
# build
# pip-tools
pytest==5.4.3
pytest==8.0.2
# via
# -c requirements/constraints.txt
# -r requirements/doc.txt
# pytest-cov
# pytest-forked
# pytest-xdist
pytest-cov==4.1.0
# via -r requirements/doc.txt
pytest-forked==1.6.0
# via
# -r requirements/doc.txt
# pytest-xdist
pytest-xdist==1.34.0
# via
# -c requirements/constraints.txt
# -r requirements/doc.txt
pytest-xdist==3.5.0
# via -r requirements/doc.txt
python-slugify==8.0.4
# via
# -r requirements/doc.txt
Expand All @@ -257,11 +259,8 @@ requests==2.31.0
# sphinx
six==1.16.0
# via
# -r requirements/ci.txt
# -r requirements/doc.txt
# edx-lint
# pytest-xdist
# tox
snowballstemmer==2.2.0
# via
# -r requirements/doc.txt
Expand Down Expand Up @@ -323,15 +322,17 @@ tomli==2.0.1
# mypy
# pip-tools
# pylint
# pyproject-api
# pyproject-hooks
# pytest
# tox
tomlkit==0.12.3
# via
# -r requirements/doc.txt
# pylint
tox==3.28.0
tox==4.13.0
# via -r requirements/ci.txt
typing-extensions==4.9.0
typing-extensions==4.10.0
# via
# -r requirements/doc.txt
# astroid
Expand All @@ -346,10 +347,6 @@ virtualenv==20.25.1
# via
# -r requirements/ci.txt
# tox
wcwidth==0.2.13
# via
# -r requirements/doc.txt
# pytest
wheel==0.42.0
# via
# -r requirements/pip-tools.txt
Expand Down
Loading

0 comments on commit 1aa84fd

Please sign in to comment.