| 1 |
[build-system] |
| 2 |
requires = ["setuptools"] |
| 3 |
build-backend = "setuptools.build_meta" |
| 4 |
|
| 5 |
[project] |
| 6 |
name = "websockets" |
| 7 |
description = "An implementation of the WebSocket Protocol (RFC 6455 & 7692)" |
| 8 |
requires-python = ">=3.11" |
| 9 |
license = "BSD-3-Clause" |
| 10 |
authors = [ |
| 11 |
{ name = "Aymeric Augustin", email = "[email protected]" }, |
| 12 |
] |
| 13 |
keywords = ["WebSocket"] |
| 14 |
classifiers = [ |
| 15 |
"Development Status :: 5 - Production/Stable", |
| 16 |
"Environment :: Web Environment", |
| 17 |
"Intended Audience :: Developers", |
| 18 |
"Operating System :: OS Independent", |
| 19 |
"Programming Language :: Python", |
| 20 |
"Programming Language :: Python :: 3", |
| 21 |
"Programming Language :: Python :: 3.11", |
| 22 |
"Programming Language :: Python :: 3.12", |
| 23 |
"Programming Language :: Python :: 3.13", |
| 24 |
"Programming Language :: Python :: 3.14", |
| 25 |
"Programming Language :: Python :: 3.15", |
| 26 |
] |
| 27 |
dynamic = ["version", "readme"] |
| 28 |
|
| 29 |
[project.urls] |
| 30 |
Homepage = "https://github.com/python-websockets/websockets" |
| 31 |
Changelog = "https://websockets.readthedocs.io/en/stable/project/changelog.html" |
| 32 |
Documentation = "https://websockets.readthedocs.io/" |
| 33 |
Funding = "https://tidelift.com/subscription/pkg/pypi-websockets?utm_source=pypi-websockets&utm_medium=referral&utm_campaign=readme" |
| 34 |
Tracker = "https://github.com/python-websockets/websockets/issues" |
| 35 |
|
| 36 |
[project.scripts] |
| 37 |
websockets = "websockets.cli:main" |
| 38 |
|
| 39 |
[tool.cibuildwheel] |
| 40 |
enable = ["pypy"] |
| 41 |
|
| 42 |
[tool.cibuildwheel.linux] |
| 43 |
archs = ["x86_64", "aarch64", "i686", "armv7l", "ppc64le", "riscv64", "s390x"] |
| 44 |
|
| 45 |
[tool.cibuildwheel.macos] |
| 46 |
archs = ["arm64", "x86_64", "universal2"] |
| 47 |
|
| 48 |
[tool.cibuildwheel.windows] |
| 49 |
archs = ["AMD64", "ARM64", "x86"] |
| 50 |
|
| 51 |
[tool.codespell] |
| 52 |
skip = "docs/_build,docs/_static,*.svg" |
| 53 |
ignore-words-list = "caf,te" # used in tests |
| 54 |
|
| 55 |
[tool.coverage.run] |
| 56 |
branch = true |
| 57 |
core = "ctrace" |
| 58 |
omit = [ |
| 59 |
# */websockets matches src/websockets and .tox/**/site-packages/websockets |
| 60 |
"*/websockets/__main__.py", |
| 61 |
"tests/maxi_cov.py", |
| 62 |
] |
| 63 |
|
| 64 |
[tool.coverage.paths] |
| 65 |
source = [ |
| 66 |
"src/websockets", |
| 67 |
".tox/*/lib/python*/site-packages/websockets", |
| 68 |
] |
| 69 |
|
| 70 |
[tool.coverage.report] |
| 71 |
exclude_lines = [ |
| 72 |
"pragma: no cover", |
| 73 |
"except ImportError:", |
| 74 |
"if self.debug:", |
| 75 |
"if sys.platform == \"win32\":", |
| 76 |
"if sys.platform != \"win32\":", |
| 77 |
"if TYPE_CHECKING:", |
| 78 |
"raise AssertionError", |
| 79 |
"self.fail\\(\".*\"\\)", |
| 80 |
"@overload", |
| 81 |
"@unittest.skip", |
| 82 |
] |
| 83 |
partial_branches = [ |
| 84 |
"pragma: no branch", |
| 85 |
"with self.assertRaises\\(.*\\)", |
| 86 |
] |
| 87 |
|
| 88 |
[tool.ruff] |
| 89 |
target-version = "py312" |
| 90 |
|
| 91 |
[tool.ruff.lint] |
| 92 |
select = [ |
| 93 |
"E", # pycodestyle |
| 94 |
"F", # Pyflakes |
| 95 |
"W", # pycodestyle |
| 96 |
"I", # isort |
| 97 |
] |
| 98 |
ignore = [ |
| 99 |
"F403", |
| 100 |
"F405", |
| 101 |
] |
| 102 |
|
| 103 |
[tool.ruff.lint.isort] |
| 104 |
combine-as-imports = true |
| 105 |
lines-after-imports = 2 |