Skip to content

Confirm support for Python 3.14. #1642

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

Merged
merged 1 commit into from
Jul 15, 2025
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
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
with:
platforms: all
- name: Build wheels
uses: pypa/cibuildwheel@v2.22.0
uses: pypa/cibuildwheel@v3.0.1
env:
BUILD_EXTENSION: yes
- name: Save wheels
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
- "3.11"
- "3.12"
- "3.13"
- "3.14"
- "pypy-3.10"
is_main:
- ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
Expand Down
5 changes: 5 additions & 0 deletions docs/project/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ Backwards-incompatible changes

websockets 15.0 is the last version supporting Python 3.9.

New features
............

* Validated compatibility with Python 3.14.

Improvements
............

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dynamic = ["version", "readme"]

Expand Down
3 changes: 2 additions & 1 deletion tests/legacy/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import asyncio
import functools
import inspect
import sys
import unittest

Expand All @@ -23,7 +24,7 @@ def __init_subclass__(cls, **kwargs):
super().__init_subclass__(**kwargs)
for name in unittest.defaultTestLoader.getTestCaseNames(cls):
test = getattr(cls, name)
if asyncio.iscoroutinefunction(test):
if inspect.iscoroutinefunction(test):
setattr(cls, name, cls.convert_async_to_sync(test))

@staticmethod
Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ env_list =
py311
py312
py313
py314
coverage
ruff
mypy
Expand All @@ -14,8 +15,8 @@ commands =
pass_env =
WEBSOCKETS_*
deps =
py311,py312,py313,coverage,maxi_cov: mitmproxy
py311,py312,py313,coverage,maxi_cov: python-socks[asyncio]
py311,py312,py313,py314,coverage,maxi_cov: mitmproxy
py311,py312,py313,py314,coverage,maxi_cov: python-socks[asyncio]
werkzeug

[testenv:coverage]
Expand Down
Loading