-
Notifications
You must be signed in to change notification settings - Fork 40
/
pyproject.toml
128 lines (112 loc) · 2.88 KB
/
pyproject.toml
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
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[project]
name = "sse-starlette"
version = "2.1.3"
description = "SSE plugin for Starlette"
readme = "README.md"
license = {text = "BSD-3-Clause"}
requires-python = ">=3.8"
authors = [
{ name = "sysid", email = "sysid@gmx.de" },
]
url = "https://github.com/sysid/sse-starlette"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"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",
"Topic :: Internet :: WWW/HTTP",
]
dependencies = [
"starlette",
"uvicorn",
"anyio",
]
homepage = "https://github.com/sysid/sse-starlette"
[project.urls]
Source = "https://github.com/sysid/sse-starlette"
[project.optional-dependencies]
examples = ["fastapi"]
[tool.pytest.ini_options]
markers = [
"integration: marks tests as integration tests",
"e2e: marks tests as e2e tests, not to be run in CICD"
]
asyncio_mode = "auto"
#addopts = "--cov=my_package --cov-report=term-missing"
[tool.bumpversion]
current_version = "2.1.3"
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.pdm.build]
excludes = ["./**/.git"]
package-dir = "src"
includes = ["sse_starlette"]
source-includes = ["tests", "CHANGELOG.md", "LICENSE", "README.md", "tox.ini"]
# editables backend doesn't work well with namespace packages
editable-backend = "path"
[[tool.pdm.source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[tool.pdm.dev-dependencies]
dev = [
"mypy",
"codecov",
"isort",
"pytest",
"pytest-cov",
"pytest-asyncio",
"httpx",
"asgi-lifespan",
"psutil",
"black>=23.11.0",
"ruff",
]
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
line_length = 88
[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