Skip to content

Commit 1aa84fd

Browse files
authored
Adds support of python 3.12 (#288)
* chore: Adds support of python 3.12
1 parent dcf16b4 commit 1aa84fd

12 files changed

Lines changed: 118 additions & 175 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ubuntu-20.04]
17-
python-version: ['3.8']
18-
toxenv: [quality, docs, without-django, django32, django42]
17+
python-version: ['3.8', '3.12']
18+
toxenv: [quality, docs, without-django, django42]
1919

2020
steps:
2121
- uses: actions/checkout@v2
@@ -36,7 +36,7 @@ jobs:
3636
run: tox -- --hypothesis-profile=ci
3737

3838
- name: Run Coverage
39-
if: matrix.python-version == '3.8' && matrix.toxenv=='django42'
39+
if: matrix.python-version == '3.12' && matrix.toxenv=='django42'
4040
uses: codecov/codecov-action@v1
4141
with:
4242
flags: unittests

CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 2.6.0
2+
3+
* Added support for python 3.12
4+
* Dropped support for django 3.2
5+
6+
17
# 2.5.1
28

39
* Fixed - py.typed file wasn't installed properly via setuptools.

opaque_keys/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from stevedore.enabled import EnabledExtensionManager
1515
from typing_extensions import Self # For python 3.11 plus, can just use "from typing import Self"
1616

17-
__version__ = '2.5.1'
17+
__version__ = '2.6.0'
1818

1919

2020
class InvalidKeyError(Exception):

requirements/base.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ pymongo==3.13.0
1010
# via -r requirements/base.in
1111
stevedore==5.2.0
1212
# via -r requirements/base.in
13-
typing-extensions==4.9.0
13+
typing-extensions==4.10.0
1414
# via -r requirements/base.in

requirements/ci.txt

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@
44
#
55
# make upgrade
66
#
7-
coverage==7.4.2
7+
cachetools==5.3.2
8+
# via tox
9+
chardet==5.2.0
10+
# via tox
11+
colorama==0.4.6
12+
# via tox
13+
coverage==7.4.3
814
# via -r requirements/ci.in
915
distlib==0.3.8
1016
# via virtualenv
@@ -13,22 +19,22 @@ filelock==3.13.1
1319
# tox
1420
# virtualenv
1521
packaging==23.2
16-
# via tox
17-
platformdirs==4.2.0
1822
# via
23+
# pyproject-api
1924
# tox
20-
# virtualenv
21-
pluggy==0.13.1
25+
platformdirs==4.2.0
2226
# via
23-
# -c requirements/constraints.txt
2427
# tox
25-
py==1.11.0
28+
# virtualenv
29+
pluggy==1.4.0
2630
# via tox
27-
six==1.16.0
31+
pyproject-api==1.6.1
2832
# via tox
2933
tomli==2.0.1
30-
# via tox
31-
tox==3.28.0
34+
# via
35+
# pyproject-api
36+
# tox
37+
tox==4.13.0
3238
# via -r requirements/ci.in
3339
virtualenv==20.25.1
3440
# via tox

requirements/constraints.txt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,3 @@
77
# link to other information that will help people in the future to remove the
88
# pin when possible. Writing an issue against the offending project and
99
# linking to it here is good.
10-
11-
# This file contains all common constraints for edx-repos
12-
-c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt
13-
14-
# pytest>=5.6.0 fails to fetch the tests and hence all the tests fail
15-
pytest<5.6.0
16-
17-
pytest-xdist<2.0.0
18-
19-
# pytest (from `test.in`) requires pluggy<1.
20-
# We must constrain it here so that `ci.in` (which doesn't
21-
# include pytest) doesn't generate `ci.txt` with a pluggy version >=1.
22-
# Remove this pin when pytest no longer requires pluggy<1.
23-
pluggy<1

requirements/dev.txt

Lines changed: 36 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ alabaster==0.7.13
1212
# via
1313
# -r requirements/doc.txt
1414
# sphinx
15-
astroid==3.0.3
15+
astroid==3.1.0
1616
# via
1717
# -r requirements/doc.txt
1818
# pylint
@@ -21,7 +21,6 @@ attrs==23.2.0
2121
# via
2222
# -r requirements/doc.txt
2323
# hypothesis
24-
# pytest
2524
babel==2.14.0
2625
# via
2726
# -r requirements/doc.txt
@@ -35,10 +34,18 @@ build==1.0.3
3534
# via
3635
# -r requirements/pip-tools.txt
3736
# pip-tools
37+
cachetools==5.3.2
38+
# via
39+
# -r requirements/ci.txt
40+
# tox
3841
certifi==2024.2.2
3942
# via
4043
# -r requirements/doc.txt
4144
# requests
45+
chardet==5.2.0
46+
# via
47+
# -r requirements/ci.txt
48+
# tox
4249
charset-normalizer==3.3.2
4350
# via
4451
# -r requirements/doc.txt
@@ -59,12 +66,16 @@ code-annotations==1.6.0
5966
# via
6067
# -r requirements/doc.txt
6168
# edx-lint
62-
coverage[toml]==7.4.2
69+
colorama==0.4.6
70+
# via
71+
# -r requirements/ci.txt
72+
# tox
73+
coverage[toml]==7.4.3
6374
# via
6475
# -r requirements/ci.txt
6576
# -r requirements/doc.txt
6677
# pytest-cov
67-
ddt==1.7.1
78+
ddt==1.7.2
6879
# via -r requirements/doc.txt
6980
dill==0.3.8
7081
# via
@@ -86,6 +97,7 @@ exceptiongroup==1.2.0
8697
# via
8798
# -r requirements/doc.txt
8899
# hypothesis
100+
# pytest
89101
execnet==2.0.2
90102
# via
91103
# -r requirements/doc.txt
@@ -95,7 +107,7 @@ filelock==3.13.1
95107
# -r requirements/ci.txt
96108
# tox
97109
# virtualenv
98-
hypothesis==6.98.10
110+
hypothesis==6.98.12
99111
# via -r requirements/doc.txt
100112
idna==3.6
101113
# via
@@ -111,6 +123,10 @@ importlib-metadata==7.0.1
111123
# -r requirements/pip-tools.txt
112124
# build
113125
# sphinx
126+
iniconfig==2.0.0
127+
# via
128+
# -r requirements/doc.txt
129+
# pytest
114130
isort==5.13.2
115131
# via
116132
# -r requirements/doc.txt
@@ -130,10 +146,6 @@ mccabe==0.7.0
130146
# pylint
131147
mock==5.1.0
132148
# via -r requirements/doc.txt
133-
more-itertools==10.2.0
134-
# via
135-
# -r requirements/doc.txt
136-
# pytest
137149
mypy==1.8.0
138150
# via -r requirements/doc.txt
139151
mypy-extensions==1.0.0
@@ -151,6 +163,7 @@ packaging==23.2
151163
# -r requirements/pip-tools.txt
152164
# build
153165
# pydata-sphinx-theme
166+
# pyproject-api
154167
# pytest
155168
# sphinx
156169
# tox
@@ -165,20 +178,13 @@ platformdirs==4.2.0
165178
# -r requirements/ci.txt
166179
# -r requirements/doc.txt
167180
# pylint
168-
# virtualenv
169-
pluggy==0.13.1
170-
# via
171-
# -c requirements/constraints.txt
172-
# -r requirements/ci.txt
173-
# -r requirements/doc.txt
174-
# pytest
175181
# tox
176-
py==1.11.0
182+
# virtualenv
183+
pluggy==1.4.0
177184
# via
178185
# -r requirements/ci.txt
179186
# -r requirements/doc.txt
180187
# pytest
181-
# pytest-forked
182188
# tox
183189
pycodestyle==2.11.1
184190
# via -r requirements/doc.txt
@@ -193,7 +199,7 @@ pygments==2.17.2
193199
# pydata-sphinx-theme
194200
# readme-renderer
195201
# sphinx
196-
pylint==3.0.3
202+
pylint==3.1.0
197203
# via
198204
# -r requirements/doc.txt
199205
# edx-lint
@@ -215,28 +221,24 @@ pylint-plugin-utils==0.8.2
215221
# pylint-django
216222
pymongo==3.13.0
217223
# via -r requirements/doc.txt
224+
pyproject-api==1.6.1
225+
# via
226+
# -r requirements/ci.txt
227+
# tox
218228
pyproject-hooks==1.0.0
219229
# via
220230
# -r requirements/pip-tools.txt
221231
# build
222232
# pip-tools
223-
pytest==5.4.3
233+
pytest==8.0.2
224234
# via
225-
# -c requirements/constraints.txt
226235
# -r requirements/doc.txt
227236
# pytest-cov
228-
# pytest-forked
229237
# pytest-xdist
230238
pytest-cov==4.1.0
231239
# via -r requirements/doc.txt
232-
pytest-forked==1.6.0
233-
# via
234-
# -r requirements/doc.txt
235-
# pytest-xdist
236-
pytest-xdist==1.34.0
237-
# via
238-
# -c requirements/constraints.txt
239-
# -r requirements/doc.txt
240+
pytest-xdist==3.5.0
241+
# via -r requirements/doc.txt
240242
python-slugify==8.0.4
241243
# via
242244
# -r requirements/doc.txt
@@ -257,11 +259,8 @@ requests==2.31.0
257259
# sphinx
258260
six==1.16.0
259261
# via
260-
# -r requirements/ci.txt
261262
# -r requirements/doc.txt
262263
# edx-lint
263-
# pytest-xdist
264-
# tox
265264
snowballstemmer==2.2.0
266265
# via
267266
# -r requirements/doc.txt
@@ -323,15 +322,17 @@ tomli==2.0.1
323322
# mypy
324323
# pip-tools
325324
# pylint
325+
# pyproject-api
326326
# pyproject-hooks
327+
# pytest
327328
# tox
328329
tomlkit==0.12.3
329330
# via
330331
# -r requirements/doc.txt
331332
# pylint
332-
tox==3.28.0
333+
tox==4.13.0
333334
# via -r requirements/ci.txt
334-
typing-extensions==4.9.0
335+
typing-extensions==4.10.0
335336
# via
336337
# -r requirements/doc.txt
337338
# astroid
@@ -346,10 +347,6 @@ virtualenv==20.25.1
346347
# via
347348
# -r requirements/ci.txt
348349
# tox
349-
wcwidth==0.2.13
350-
# via
351-
# -r requirements/doc.txt
352-
# pytest
353350
wheel==0.42.0
354351
# via
355352
# -r requirements/pip-tools.txt

0 commit comments

Comments
 (0)