added check_document_exists(collection, target) -> bool (count_documents(target, limit=1) > 0) — it existed only in the talos origin and was not carried over, but the talos caller relies on it. renamed the do_upsert param to upsert on update_document/find_one_and_update/find_one_and_replace, standardizing on motor's name (the talos caller already passes upsert=). param rename is breaking; patch is fine under the no-consumer policy. bump to v0.1.1. 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.1"
|
|
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"]
|