Skip to content
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
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,17 @@ jobs:
strategy:
matrix:
python:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
- "3.14t"
- "pypy-3.10"
- "3.15"
- "3.15t"
- "pypy-3.11"
is_main:
- ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
exclude:
- python: "pypy-3.10"
- python: "pypy-3.11"
is_main: false
steps:
- name: Check out repository
Expand Down
6 changes: 1 addition & 5 deletions docs/faq/common.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,11 @@ you can adjust it with the ``ping_timeout`` argument.
How do I set a timeout on :meth:`~Connection.recv`?
---------------------------------------------------

On Python ≥ 3.11, use :func:`asyncio.timeout`::
Use :func:`asyncio.timeout`::

async with asyncio.timeout(timeout=10):
message = await websocket.recv()

On older versions of Python, use :func:`asyncio.wait_for`::

message = await asyncio.wait_for(websocket.recv(), timeout=10)

This technique works for most APIs. When it doesn't, for example with
asynchronous context managers, websockets provides an ``open_timeout`` argument.

Expand Down
2 changes: 1 addition & 1 deletion docs/intro/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Getting started
Requirements
------------

websockets requires Python ≥ 3.10.
websockets requires Python ≥ 3.11.

.. admonition:: Use the most recent Python release
:class: tip
Expand Down
10 changes: 10 additions & 0 deletions docs/project/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ notice.
Backwards-incompatible changes
..............................

.. admonition:: websockets 17.0 requires Python ≥ 3.11.
:class: tip

websockets 16.1 is the last version supporting Python 3.10.

.. admonition:: In the :mod:`threading` implementation, the ``socket`` argument
is renamed to ``sock``.
:class: note
Expand All @@ -46,6 +51,11 @@ Backwards-incompatible changes
:class:`~sync.server.Server` is also renamed. If you're passing it as a
keyword argument, you must change your code.

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

* Validated compatibility with Python 3.15.

.. _16.1:

16.1
Expand Down
6 changes: 2 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "websockets"
description = "An implementation of the WebSocket Protocol (RFC 6455 & 7692)"
requires-python = ">=3.10"
requires-python = ">=3.11"
license = "BSD-3-Clause"
authors = [
{ name = "Aymeric Augustin", email = "aymeric.augustin@m4x.org" },
Expand All @@ -18,11 +18,11 @@ classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
]
dynamic = ["version", "readme"]

Expand Down Expand Up @@ -57,8 +57,6 @@ core = "ctrace"
omit = [
# */websockets matches src/websockets and .tox/**/site-packages/websockets
"*/websockets/__main__.py",
"*/websockets/asyncio/async_timeout.py",
"*/websockets/asyncio/compatibility.py",
"tests/maxi_cov.py",
]

Expand Down
282 changes: 0 additions & 282 deletions src/websockets/asyncio/async_timeout.py

This file was deleted.

Loading