self._client[database] can raise InvalidName after the client is already built, leaking it via any exception traceback the caller holds. close it before re-raising, matching the __aenter__ leak fix. also compresses essay docstrings/comments across the module with no behavior change, keeping the swallow-and-default contract note and the matched_count/nInserted footguns. 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.8"
|
|
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"]
|