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/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" }, 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, )