From 4e2dc72655e83bc6372e3bc0ae112865d329fb35 Mon Sep 17 00:00:00 2001 From: Eddie A Tejeda <669988+eddietejeda@users.noreply.github.com> Date: Wed, 27 May 2026 15:12:21 -0700 Subject: [PATCH] deps: upgrade hotdata SDK to 0.2.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps hotdata dependency to >=0.2.4 and fixes callers for the breaking rename of `description` → `name` on `CreateDatabaseRequest`, `DatabaseSummary`, and `DatabaseDetailResponse`. - `databases.py`: read `detail.name` instead of `detail.description` - `client.py`: use `name=` on `CreateDatabaseRequest`; scan list by `db.name` - `tests/`: update SimpleNamespace fixtures to match renamed SDK attributes --- hotdata_runtime/client.py | 4 ++-- hotdata_runtime/databases.py | 2 +- pyproject.toml | 2 +- tests/test_databases.py | 4 ++-- uv.lock | 8 ++++---- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/hotdata_runtime/client.py b/hotdata_runtime/client.py index 66ddc0b..226a0f7 100644 --- a/hotdata_runtime/client.py +++ b/hotdata_runtime/client.py @@ -180,7 +180,7 @@ def resolve_managed_database(self, name_or_id: str) -> ManagedDatabase: listing = self._databases_api().list_databases() match_id: str | None = None for db in listing.databases: - if db.description == name_or_id: + if db.name == name_or_id: match_id = db.id break if match_id is None: @@ -208,7 +208,7 @@ def create_managed_database( ) ] request = CreateDatabaseRequest( - description=description, + name=description, schemas=schemas, expires_at=expires_at, ) diff --git a/hotdata_runtime/databases.py b/hotdata_runtime/databases.py index 4d0756b..dc50a67 100644 --- a/hotdata_runtime/databases.py +++ b/hotdata_runtime/databases.py @@ -52,7 +52,7 @@ def is_parquet_path(path: str) -> bool: def managed_database_from_detail(detail: Any) -> ManagedDatabase: return ManagedDatabase( id=str(detail.id), - description=detail.description, + description=detail.name, default_connection_id=str(detail.default_connection_id), ) diff --git a/pyproject.toml b/pyproject.toml index 9058ead..4fa4ad7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ readme = "README.md" requires-python = ">=3.10" license = { text = "MIT" } dependencies = [ - "hotdata>=0.2.3", + "hotdata>=0.2.4", "pandas>=2.0", ] diff --git a/tests/test_databases.py b/tests/test_databases.py index 7b39490..d917376 100644 --- a/tests/test_databases.py +++ b/tests/test_databases.py @@ -20,7 +20,7 @@ def _client() -> HotdataClient: def _detail(id="db_1", description="sales", default_connection_id="conn_1"): return SimpleNamespace( id=id, - description=description, + name=description, default_connection_id=default_connection_id, ) @@ -86,7 +86,7 @@ def test_resolve_managed_database_by_id(): def test_resolve_managed_database_by_description(): client = _client() - summary = SimpleNamespace(id="db_1", description="sales") + summary = SimpleNamespace(id="db_1", name="sales") listing = SimpleNamespace(databases=[summary]) detail = _detail() with patch.object(client, "_databases_api") as dbs: diff --git a/uv.lock b/uv.lock index e4a1fdb..cdee305 100644 --- a/uv.lock +++ b/uv.lock @@ -43,7 +43,7 @@ wheels = [ [[package]] name = "hotdata" -version = "0.2.3" +version = "0.2.4" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "pydantic" }, @@ -51,9 +51,9 @@ dependencies = [ { name = "typing-extensions" }, { name = "urllib3" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/4f/20/5d016d4aec39fe04eb77a6394651e3b18f6ecc701dc678563889debd79ed/hotdata-0.2.3.tar.gz", hash = "sha256:bc415af4ac475e5bd5fe3320d1c14aaac92942462a0ef9dac22b89bcc120ad55", size = 118187, upload-time = "2026-05-23T04:41:10.835Z" } +sdist = { url = "https://files.pythonhosted.org/packages/43/31/4b13883c5b3bc50892210dc1e3cac71b5bb08d352e70ac557c78383c1e9e/hotdata-0.2.4.tar.gz", hash = "sha256:7fc64448eaf65b822b50249c51350bf5ec05edd03c611b92ce881a495ae336ab", size = 121635, upload-time = "2026-05-27T22:05:28.424Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/09/87/d3cb845ba01e5b4e9bfb1e59d0032a246b94497e470d171f2ee2a56bd850/hotdata-0.2.3-py3-none-any.whl", hash = "sha256:aed2ae884d184cf143572c84d068a9ceedbe021a6d14005332647a46aa7be11c", size = 275718, upload-time = "2026-05-23T04:41:09.355Z" }, + { url = "https://files.pythonhosted.org/packages/20/cb/fb9e48af1d105ff18b0732bc87e552a32f4d816ab50c093d901f9fe7e8cd/hotdata-0.2.4-py3-none-any.whl", hash = "sha256:e6652ee2f88bc214938784747e3f644a4ecc4987f9887d302ca3b8940fc52028", size = 285813, upload-time = "2026-05-27T22:05:26.766Z" }, ] [[package]] @@ -74,7 +74,7 @@ dev = [ [package.metadata] requires-dist = [ - { name = "hotdata", specifier = ">=0.2.3" }, + { name = "hotdata", specifier = ">=0.2.4" }, { name = "pandas", specifier = ">=2.0" }, ]