From 78269d3f358bae576c2809ad4027c5545469f7bc Mon Sep 17 00:00:00 2001 From: Eon <123763385+timescale-automation@users.noreply.github.com> Date: Mon, 30 Jun 2025 14:19:08 +0200 Subject: [PATCH] chore(main): release pgai 0.11.3 --- .release-please-manifest.json | 2 +- projects/pgai/CHANGELOG.md | 17 +++++++++++++++++ projects/pgai/db/tests/upgrade/test_upgrade.py | 8 ++++---- projects/pgai/pgai/__init__.py | 2 +- projects/pgai/pgai/data/ai.sql | 2 +- 5 files changed, 24 insertions(+), 7 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 9b35231a3..cd1896ecd 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - "projects/pgai": "0.11.2" + "projects/pgai": "0.11.3" } diff --git a/projects/pgai/CHANGELOG.md b/projects/pgai/CHANGELOG.md index af7234904..d7fb8246e 100644 --- a/projects/pgai/CHANGELOG.md +++ b/projects/pgai/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## [0.11.3](https://github.com/timescale/pgai/compare/pgai-v0.11.2...pgai-v0.11.3) (2025-06-30) + + +### Bug Fixes + +* pass voyage api key to client ([8eab632](https://github.com/timescale/pgai/commit/8eab632ca32c795451935cad6912b30395898a64)) +* store ModelRequest in generate_sql messages list ([#834](https://github.com/timescale/pgai/issues/834)) ([0dd09c0](https://github.com/timescale/pgai/commit/0dd09c0294225373653d36001dcafe28801de336)) +* vectorizer_relationship with tuple table args ([#805](https://github.com/timescale/pgai/issues/805)) ([ae49c48](https://github.com/timescale/pgai/commit/ae49c483e3be91af9842d351ff0328cda4ae1065)) + + +### Miscellaneous + +* ignore line-too-long (E501) lint ([#821](https://github.com/timescale/pgai/issues/821)) ([f3989d7](https://github.com/timescale/pgai/commit/f3989d7306552f5d2604aa25a266ec20f9f69c74)) +* remove git lfs ([2af8fbc](https://github.com/timescale/pgai/commit/2af8fbcb712a92bfa9c13da256c5ef5075949da7)) +* split deps into separate extras ([#800](https://github.com/timescale/pgai/issues/800)) ([3a11921](https://github.com/timescale/pgai/commit/3a1192125fc934d36e063b866cf73f49e306b62a)) +* store golden query results in files ([#819](https://github.com/timescale/pgai/issues/819)) ([fc9e23f](https://github.com/timescale/pgai/commit/fc9e23fc8580665e444cd51647304dd1d081f36e)) + ## [0.11.2](https://github.com/timescale/pgai/compare/pgai-v0.11.1...pgai-v0.11.2) (2025-06-12) diff --git a/projects/pgai/db/tests/upgrade/test_upgrade.py b/projects/pgai/db/tests/upgrade/test_upgrade.py index d1140569f..e079a80cd 100644 --- a/projects/pgai/db/tests/upgrade/test_upgrade.py +++ b/projects/pgai/db/tests/upgrade/test_upgrade.py @@ -154,7 +154,7 @@ def upgrade_and_compare(from_version, to_version, exclude_incrementals, fixups): # STEP 1: Create the "expected" database state by installing the current dev version fresh # This represents what the database should look like after a successful upgrade create_database(target_database_name) - install_pgai_db(target_database_name, "") # Empty string = use local dev version + install_pgai_db(target_database_name, to_version) assert check_version(target_database_name) == to_version init_db_script(target_database_name, "init.sql") # Create test data and vectorizer @@ -337,7 +337,7 @@ def snapshot( f'-v source_version="{source_version}"', f'-v target_version="{current_dev_version}"', # HACK: Inject the exclude list to filter out problematic migrations - f"-v exclude_list=\"{exclude_sql or 'NULL'}\"", + f'-v exclude_list="{exclude_sql or "NULL"}"', f"-f {docker_dir()}/snapshot.sql", # SQL script that generates the snapshot f"-o {docker_dir()}/{filename}", # Output file ] @@ -356,7 +356,7 @@ def is_version_earlier_or_equal_than(v1, v2): return v1_parts <= v2_parts -def install_pgai_db(dbname: str, version: str = "") -> None: +def install_pgai_db(dbname: str, version: str) -> None: """Install or upgrade pgai in the database. This function handles both fresh installations and upgrades by calling the @@ -370,7 +370,7 @@ def install_pgai_db(dbname: str, version: str = "") -> None: """ db = db_url(user=USER, dbname=dbname) - if version == "": + if version == current_dev_version: # Use local development version (from source code) source_root = ( Path(__file__).parents[4].absolute() diff --git a/projects/pgai/pgai/__init__.py b/projects/pgai/pgai/__init__.py index aee37fa6d..9d4e4ff62 100644 --- a/projects/pgai/pgai/__init__.py +++ b/projects/pgai/pgai/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.11.2" +__version__ = "0.11.3" from pgai._install.install import ainstall, install diff --git a/projects/pgai/pgai/data/ai.sql b/projects/pgai/pgai/data/ai.sql index 84f3f32e0..e3830d3c4 100644 --- a/projects/pgai/pgai/data/ai.sql +++ b/projects/pgai/pgai/data/ai.sql @@ -1,5 +1,5 @@ -------------------------------------------------------------------------------- --- ai 0.11.2 (x-release-please-version) +-- ai 0.11.3 (x-release-please-version) set local search_path = pg_catalog, pg_temp;