[build-system] requires = ["setuptools"] build-backend = "setuptools.build_meta" [project] name = "websockets" description = "An implementation of the WebSocket Protocol (RFC 6455 & 7692)" requires-python = ">=3.11" license = "BSD-3-Clause" authors = [ { name = "Aymeric Augustin", email = "aymeric.augustin@m4x.org" }, ] keywords = ["WebSocket"] classifiers = [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "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"] [project.urls] Homepage = "https://github.com/python-websockets/websockets" Changelog = "https://websockets.readthedocs.io/en/stable/project/changelog.html" Documentation = "https://websockets.readthedocs.io/" Funding = "https://tidelift.com/subscription/pkg/pypi-websockets?utm_source=pypi-websockets&utm_medium=referral&utm_campaign=readme" Tracker = "https://github.com/python-websockets/websockets/issues" [project.scripts] websockets = "websockets.cli:main" [tool.cibuildwheel] enable = ["pypy"] [tool.cibuildwheel.linux] archs = ["x86_64", "aarch64", "i686", "armv7l", "ppc64le", "riscv64", "s390x"] [tool.cibuildwheel.macos] archs = ["arm64", "x86_64", "universal2"] [tool.cibuildwheel.windows] archs = ["AMD64", "ARM64", "x86"] [tool.codespell] skip = "docs/_build,docs/_static,*.svg" ignore-words-list = "caf,te" # used in tests [tool.coverage.run] branch = true core = "ctrace" omit = [ # */websockets matches src/websockets and .tox/**/site-packages/websockets "*/websockets/__main__.py", "tests/maxi_cov.py", ] [tool.coverage.paths] source = [ "src/websockets", ".tox/*/lib/python*/site-packages/websockets", ] [tool.coverage.report] exclude_lines = [ "pragma: no cover", "except ImportError:", "if self.debug:", "if sys.platform == \"win32\":", "if sys.platform != \"win32\":", "if TYPE_CHECKING:", "raise AssertionError", "self.fail\\(\".*\"\\)", "@overload", "@unittest.skip", ] partial_branches = [ "pragma: no branch", "with self.assertRaises\\(.*\\)", ] [tool.ruff] target-version = "py312" [tool.ruff.lint] select = [ "E", # pycodestyle "F", # Pyflakes "W", # pycodestyle "I", # isort ] ignore = [ "F403", "F405", ] [tool.ruff.lint.isort] combine-as-imports = true lines-after-imports = 2