Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.11 support #578

Merged
merged 6 commits into from
Apr 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 9 additions & 12 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,18 +196,15 @@ jobs:
python-version: ["3.7", "3.9", "pypy-3.8"]
twisted: ["19.2", "20.3", "current"]
optional: [false]

#
# Including the following matrix addition results in the "Run unit
# tests" step hanging in a queued state for 30+ minutes. We should put
# it back at some point.
#

# include:
# - os: "ubuntu-latest"
# python-version: "3.10"
# twisted: "trunk"
# optional: true
include:
- os: "ubuntu-latest"
python-version: "3.10"
twisted: "current"
optional: false
- os: "ubuntu-latest"
python-version: "3.11"
twisted: "current"
optional: false

steps:

Expand Down
3 changes: 3 additions & 0 deletions NEWS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ NEXT
----

* Fixed a compatibility issue with Werkzeug versions greater than 2.2. [`#575 <https://github.com/twisted/klein/pull/575>`]
* Added explicit support for Python 3.10 and 3.11, although in practice they did work previously in 21.8. [`#578 <https://github.com/twisted/klein/pull/578>`]
* Python 3.6 is no longer supported by Klein.


21.8.0 - 2021-08-08
-------------------
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
Expand All @@ -25,7 +26,7 @@
description="werkzeug + twisted.web",
long_description=long_description,
long_description_content_type="text/x-rst",
python_requires=">=3.5",
python_requires=">=3.7",
setup_requires=["incremental"],
use_incremental=True,
install_requires=[
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
envlist =
lint, mypy
coverage-py{36,37,38,39,310,py3}-tw{192,203,current,trunk}
coverage-py311-tw{current,trunk}
coverage_report
docs, docs-linkcheck
packaging
Expand Down Expand Up @@ -52,7 +53,7 @@ basepython =
py38: python3.8
py39: python3.9
py310: python3.10

py311: python3.11
pypy3: pypy3
pypy38: pypy3.8

Expand Down