Skip to content

Commit 3816217

Browse files
authored
chore: formalize CPython 3.11 support (#2097)
1 parent 849cabb commit 3816217

10 files changed

Lines changed: 36 additions & 6 deletions

File tree

.github/workflows/create-wheels.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
- "3.8"
3030
- "3.9"
3131
- "3.10"
32+
- "3.11.0-rc.1"
3233
architecture:
3334
- x64
3435

@@ -93,11 +94,11 @@ jobs:
9394
- "ubuntu-latest"
9495
python-version:
9596
# the versions are <python tag>-<abi tag> as specified in PEP 425.
96-
- cp36-cp36m
9797
- cp37-cp37m
9898
- cp38-cp38
9999
- cp39-cp39
100100
- cp310-cp310
101+
- cp311-cp311
101102
architecture:
102103
- x64
103104

@@ -237,11 +238,11 @@ jobs:
237238
- "ubuntu-latest"
238239
python-version:
239240
# the versions are <python tag>-<abi tag> as specified in PEP 425.
240-
- cp36-cp36m
241241
- cp37-cp37m
242242
- cp38-cp38
243243
- cp39-cp39
244244
- cp310-cp310
245+
- cp311-cp311
245246
architecture:
246247
- aarch64
247248
- s390x

.github/workflows/mintest.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
python-version:
1818
- "3.8"
1919
- "3.10"
20+
- "3.11.0-rc.1"
2021

2122
steps:
2223
- name: Checkout repo

.github/workflows/tests.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ jobs:
6767
- python-version: "3.10"
6868
os: ubuntu-20.04
6969
toxenv: py310_cython
70+
- python-version: "3.11.0-rc.1"
71+
os: ubuntu-latest
72+
toxenv: py311
73+
- python-version: "3.11.0-rc.1"
74+
os: ubuntu-latest
75+
toxenv: py311_cython
7076
- python-version: 3.8
7177
os: ubuntu-20.04
7278
toxenv: py38_sans_msgpack

AUTHORS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ listed below by date of first contribution:
119119
* signalw
120120
* Laurent Chriqui (laurent-chriqui)
121121
* Andrii Oriekhov (andriyor)
122+
* Tom Boshoven (TBoshoven)
123+
* Jaakko Lappalainen (jkklapp)
124+
* Oday Alhayek (RioAtHome)
125+
* Christian Clauss (cclauss)
126+
* meetshah133
122127

123128
(et al.)
124129

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $ pip install -U blue
3737
$ blue .
3838
```
3939

40-
You can check all this by running ``tox`` from within the Falcon project directory. Your environment must be based on CPython 3.8 or 3.10:
40+
You can check all this by running ``tox`` from within the Falcon project directory. Your environment must be based on CPython 3.8, 3.10 or 3.11:
4141

4242
```bash
4343
$ pip install -U tox

docs/changes/4.0.0.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ on GitHub.
1212
Changes to Supported Platforms
1313
------------------------------
1414

15-
- End-of-life Python 3.5 & 3.6 are no longer supported.
15+
- CPython 3.11 is now fully supported. (`#2072 <https://github.com/falconry/falcon/issues/2072>`__)
16+
- End-of-life Python 3.5 & 3.6 are no longer supported. (`#2074 <https://github.com/falconry/falcon/pull/2074>`__)
1617

1718

1819
.. towncrier release notes start
@@ -22,6 +23,12 @@ Contributors to this Release
2223

2324
Many thanks to all of our talented and stylish contributors for this release!
2425

26+
- `CaselIT <https://github.com/CaselIT>`__
27+
- `cclauss <https://github.com/cclauss>`__
28+
- `jkklapp <https://github.com/jkklapp>`__
2529
- `kgriffs <https://github.com/kgriffs>`__
30+
- `meetshah133 <https://github.com/meetshah133>`__
2631
- `mgorny <https://github.com/mgorny>`__
32+
- `RioAtHome <https://github.com/RioAtHome>`__
33+
- `TBoshoven <https://github.com/TBoshoven>`__
2734
- `vytas7 <https://github.com/vytas7>`__

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ filterwarnings = [
6060
"ignore:Using or importing the ABCs:DeprecationWarning",
6161
"ignore:cannot collect test class 'TestClient':pytest.PytestCollectionWarning",
6262
"ignore:inspect.getargspec\\(\\) is deprecated:DeprecationWarning",
63+
"ignore:.cgi. is deprecated and slated for removal:DeprecationWarning",
64+
"ignore:path is deprecated\\. Use files\\(\\) instead:DeprecationWarning",
6365
]
6466
testpaths = [
6567
"tests"

requirements/tests

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ mujson
2020
ujson
2121

2222
# it's slow to compile on emulated architectures; wheels missing for some EoL interpreters
23-
python-rapidjson; python_version >= '3.7' and platform_machine != 's390x' and platform_machine != 'aarch64'
23+
python-rapidjson; platform_machine != 's390x' and platform_machine != 'aarch64'
2424

2525
# wheels are missing some EoL interpreters and non-x86 platforms; build would fail unless rust is available
26-
orjson; python_version < '3.11' and platform_python_implementation != 'PyPy' and platform_machine != 's390x' and platform_machine != 'aarch64'
26+
orjson; platform_python_implementation != 'PyPy' and platform_machine != 's390x' and platform_machine != 'aarch64'

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ classifiers =
2828
Programming Language :: Python :: 3.8
2929
Programming Language :: Python :: 3.9
3030
Programming Language :: Python :: 3.10
31+
Programming Language :: Python :: 3.11
3132
Programming Language :: Cython
3233
keywords =
3334
asgi

tox.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,13 @@ deps = {[with-cython]deps}
195195
setenv = {[with-cython]setenv}
196196
commands = {[with-cython]commands}
197197

198+
[testenv:py311_cython]
199+
basepython = python3.11
200+
install_command = {[with-cython]install_command}
201+
deps = {[with-cython]deps}
202+
setenv = {[with-cython]setenv}
203+
commands = {[with-cython]commands}
204+
198205
# --------------------------------------------------------------------
199206
# WSGI servers (Cythonized Falcon)
200207
# --------------------------------------------------------------------

0 commit comments

Comments
 (0)