From 9a1bbd894089e17fbb686b6618d1d042378e31ae Mon Sep 17 00:00:00 2001 From: Maxime Petazzoni Date: Fri, 19 Dec 2025 17:38:04 -0500 Subject: [PATCH 1/2] fix: don't default to 'latest' runtime version client-side `version` is an optional parameter. The backend already has logic to determine the most appropriate default value. Always passing a value from the client side prevents us from leveraging that (smarter) logic. --- README.md | 3 ++- wherobots/db/constants.py | 1 - wherobots/db/driver.py | 6 ++---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index edcafa2..4c9fa66 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,8 @@ users may find useful: libraries like Shapely. * `version`: one of the WherobotsDB runtime versions that is available to you, if you need to pin your usage to a particular, supported - WherobotsDB version. Defaults to `"latest"`. + WherobotsDB version. Defaults to the latest, most-optimized version + of WherobotsDB available to your subscription. * `session_type`: `"single"` or `"multi"`; if set to `"single"`, then each call to `connect()` establishes an exclusive connection to a distinct and dedicated Wherobots runtime; if set to "multi", then diff --git a/wherobots/db/constants.py b/wherobots/db/constants.py index 95f2555..8c3d9c7 100644 --- a/wherobots/db/constants.py +++ b/wherobots/db/constants.py @@ -12,7 +12,6 @@ DEFAULT_RUNTIME: Runtime = Runtime.TINY DEFAULT_REGION: Region = Region.AWS_US_WEST_2 -DEFAULT_VERSION: str = "latest" DEFAULT_SESSION_TYPE: SessionType = SessionType.MULTI DEFAULT_READ_TIMEOUT_SECONDS: float = 0.25 DEFAULT_SESSION_WAIT_TIMEOUT_SECONDS: float = 900 diff --git a/wherobots/db/driver.py b/wherobots/db/driver.py index ef26191..5470f06 100644 --- a/wherobots/db/driver.py +++ b/wherobots/db/driver.py @@ -24,7 +24,6 @@ DEFAULT_READ_TIMEOUT_SECONDS, DEFAULT_SESSION_TYPE, DEFAULT_SESSION_WAIT_TIMEOUT_SECONDS, - DEFAULT_VERSION, MAX_MESSAGE_SIZE, PARAM_STYLE, PROTOCOL_VERSION, @@ -88,14 +87,13 @@ def connect( host = host or DEFAULT_ENDPOINT runtime = runtime or DEFAULT_RUNTIME region = region or DEFAULT_REGION - version = version or DEFAULT_VERSION session_type = session_type or DEFAULT_SESSION_TYPE logging.info( - "Requesting %s%s runtime running %s in %s from %s ...", + "Requesting %s%s runtime %sin %s from %s ...", "new " if force_new else "", runtime.value, - version, + f"running {version} " if version else "", region.value, host, ) From 496d5e4183423ec7ae8a30dd8c93304e49dd000b Mon Sep 17 00:00:00 2001 From: Maxime Petazzoni Date: Fri, 19 Dec 2025 17:41:38 -0500 Subject: [PATCH 2/2] chore: 0.22.0 release --- pyproject.toml | 2 +- uv.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 54201ba..42e82f7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "wherobots-python-dbapi" -version = "0.21.0" +version = "0.22.0" description = "Python DB-API driver for Wherobots DB" authors = [{ name = "Maxime Petazzoni", email = "max@wherobots.com" }] requires-python = ">=3.8, <4" diff --git a/uv.lock b/uv.lock index 8eb878c..d297756 100644 --- a/uv.lock +++ b/uv.lock @@ -1593,7 +1593,7 @@ wheels = [ [[package]] name = "wherobots-python-dbapi" -version = "0.21.0" +version = "0.22.0" source = { editable = "." } dependencies = [ { name = "cbor2" },