Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
84 lines (75 loc) · 2.69 KB
/
Copy pathpyproject.toml
File metadata and controls
84 lines (75 loc) · 2.69 KB
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
[build-system]
requires = ["setuptools>=77", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "eventful"
dynamic = ["version"]
description = "Typed event dispatch, transport, and persistence building blocks for Python applications"
readme = "README.md"
requires-python = ">=3.13,<3.15"
license = "MIT"
authors = [{name = "Eventful maintainers", email = "team@eventful.org"}]
keywords = ["events", "pubsub", "event-bus", "dispatch"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Typing :: Typed",
]
dependencies = []
[project.urls]
Homepage = "https://github.com/Forebase/Eventful"
Documentation = "https://github.com/Forebase/Eventful/tree/main/docs"
Issues = "https://github.com/Forebase/Eventful/issues"
Changelog = "https://github.com/Forebase/Eventful/blob/main/CHANGELOG.md"
[project.optional-dependencies]
redis = ["redis>=5,<7"]
postgres = ["asyncpg>=0.29,<1"]
file = [] # Dependency-free UTF-8 JSON Lines persistence backend.
fastapi = ["fastapi>=0.110,<1"]
starlette = ["starlette>=0.37,<1"]
test = ["asyncpg>=0.29", "build>=1.2", "fastapi>=0.110", "pytest>=8.2", "pytest-asyncio>=0.23", "pytest-cov>=5", "redis>=5", "starlette>=0.37"]
docs = ["mkdocs>=1.6"]
dev = ["asyncpg>=0.29", "build>=1.2", "fastapi>=0.110", "mkdocs>=1.6", "mypy>=1.10", "pre-commit>=3.7", "pytest>=8.2", "pytest-asyncio>=0.23", "pytest-cov>=5", "redis>=5", "ruff>=0.5", "starlette>=0.37"]
all = ["asyncpg>=0.29", "fastapi>=0.110", "redis>=5", "starlette>=0.37"]
[tool.setuptools.dynamic]
version = {attr = "eventful.__version__.__version__"}
[tool.setuptools.packages.find]
where = ["src"]
include = ["eventful*"]
[tool.setuptools.package-data]
eventful = ["py.typed"]
[tool.ruff]
line-length = 88
target-version = "py313"
[tool.ruff.lint]
select = ["E", "F"]
ignore = ["E501", "E741", "E731", "F401", "F403"]
[tool.mypy]
python_version = "3.13"
strict = true
packages = ["eventful"]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--strict-config --strict-markers --tb=short -ra"
asyncio_mode = "auto"
filterwarnings = ["error", "ignore:.*deprecated.*:DeprecationWarning"]
markers = [
"postgres_integration: requires PostgreSQL configured by EVENTFUL_POSTGRES_URL",
"redis_integration: requires Redis configured by EVENTFUL_REDIS_URL",
]
[[tool.mypy.overrides]]
module = [
"eventful.adapters.starlette",
"eventful.utilities.debounce",
"eventful.utilities.logging_handler",
"eventful.utilities.rate_limit",
]
ignore_errors = true
[[tool.mypy.overrides]]
module = "eventful.contracts"
ignore_errors = false
strict = true