1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177
|
[project]
name = "sse-starlette"
version = "3.2.0"
description = "SSE plugin for Starlette"
readme = "README.md"
license = "BSD-3-Clause"
requires-python = ">=3.9"
authors = [
{ name = "sysid", email = "sysid@gmx.de" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet :: WWW/HTTP",
]
dependencies = [
"starlette>=0.49.1",
"anyio>=4.7.0",
]
[project.optional-dependencies]
examples = [
"uvicorn>=0.34.0",
"fastapi>=0.115.12",
"sqlalchemy[asyncio]>=2.0.41",
"aiosqlite>=0.21.0",
]
uvicorn = [
"uvicorn>=0.34.0",
]
granian = [
"granian>=2.3.1",
]
daphne = [
"daphne>=4.2.0",
]
[dependency-groups] # new standard, included by default
dev = [
"asgi-lifespan>=2.1.0",
"async-timeout>=5.0.1",
"httpx>=0.28.1",
"mypy>=1.14.0",
"portend>=3.2.0",
"psutil>=6.1.1",
"pytest>=8.3.4",
"pytest-asyncio>=0.25.0",
"pytest-cov>=6.0.0",
"ruff>=0.8.4",
"starlette>=0.49.1",
"tenacity>=9.0.0",
"testcontainers>=4.9.0",
"uvicorn>=0.34.0",
"build>=1.2.2.post1",
"pre-commit>=4.0.0",
]
[project.urls]
Source = "https://github.com/sysid/sse-starlette"
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["sse_starlette*"]
[tool.bumpversion]
current_version = "3.2.0"
commit = true
tag = false
message = "Bump version to {new_version}"
[tool.bumpversion.file_patterns]
"sse_starlette/__init__.py" = [
{search = "__version__ = '{current_version}'", replace = "__version__ = '{new_version}'"},
]
"VERSION" = [
{search = "{current_version}", replace = "{new_version}"},
]
"pyproject.toml" = [
{search = "version = {current_version}", replace = "version = {new_version}"},
]
[[tool.bumpversion.files]]
filename = "VERSION"
[[tool.bumpversion.files]]
filename = "pyproject.toml"
[[tool.bumpversion.files]]
filename = "sse_starlette/__init__.py"
[tool.pytest.ini_options]
markers = [
"integration: marks tests as integration tests",
"experimentation: marks tests as experimental tests, not to be run in CICD"
]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
filterwarnings = [
# testcontainers internal deprecation warning (triggered at import time by their own code)
"ignore:The @wait_container_is_ready decorator is deprecated:DeprecationWarning",
]
#addopts = "--cov=my_package --cov-report=term-missing"
[tool.mypy]
ignore_missing_imports = false
namespace_packages = true
[tool.coverage.run]
source = ["sse_starlette"]
omit = [
"tests/*",
"**/__main__.py",
"**/.venv/*",
"**/site-packages/*",
]
branch = true
[tool.coverage.report]
show_missing = true
skip_covered = true
fail_under = 85
[tool.ruff]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
line-length = 88
indent-width = 4
target-version = "py312"
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F"]
ignore = []
fixable = ["ALL"]
unfixable = []
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
|