__aenter__ delegated to connect(); when the ping raised on a bad server, __aexit__ was not called so the eagerly-constructed motor client (with its background topology monitor + pool) leaked. a retry loop against a flapping DB accumulated live clients. now close-on-failure. verified: 5 failed async-with blocks leave 0 open clients (was 5). bump v0.1.4 -> v0.1.5 Signed-off-by: disqualifier <dev@disqualifier.me>
17 lines
334 B
TOML
17 lines
334 B
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "mongo"
|
|
version = "0.1.5"
|
|
description = "async mongodb wrapper over motor with a raw escape hatch"
|
|
requires-python = ">=3.10"
|
|
dependencies = [
|
|
"motor>=3.0",
|
|
"pymongo>=4.0",
|
|
]
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/mongo"]
|