From c9d8a12a7e52c61fdeeb7dfc65096630b5334d13 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Thu, 13 Aug 2026 16:37:06 -0700 Subject: [PATCH 1/6] Test that should fail Refs https://github.com/simonw/sqlite-utils/issues/842#issuecomment-5287583061 --- .github/workflows/test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6c720a1..920ec18 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -53,6 +53,9 @@ jobs: run: | pip install uv uv run ty check sqlite_utils + - name: Check no accidental dev= dependencies needed + run: | + uv run --no-default-groups sqlite-utils --help - name: Check formatting run: black . --check - name: Check if cog needs to be run From cf6a12568bacbfde56a70c7a10ec6c0bf239b20b Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Thu, 13 Aug 2026 16:38:58 -0700 Subject: [PATCH 2/6] Remove from typing_extensions import Self, refs #842 --- sqlite_utils/db.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sqlite_utils/db.py b/sqlite_utils/db.py index 37825bb..c011d9b 100644 --- a/sqlite_utils/db.py +++ b/sqlite_utils/db.py @@ -24,8 +24,6 @@ from typing import ( ) from sqlite_fts4 import rank_bm25 -from typing_extensions import Self - from sqlite_utils.plugins import ensure_plugins_loaded, pm from .create_table_parser import ( @@ -637,7 +635,7 @@ class Database: pm.hook.prepare_connection(conn=self.conn) self.strict = strict - def __enter__(self) -> Self: + def __enter__(self): return self def __exit__( From 8541829c2d28fe20c0afd6c0d15cff313b26685a Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Thu, 13 Aug 2026 16:39:19 -0700 Subject: [PATCH 3/6] Revert "Remove from typing_extensions import Self, refs #842" This reverts commit cf6a12568bacbfde56a70c7a10ec6c0bf239b20b. --- sqlite_utils/db.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sqlite_utils/db.py b/sqlite_utils/db.py index c011d9b..37825bb 100644 --- a/sqlite_utils/db.py +++ b/sqlite_utils/db.py @@ -24,6 +24,8 @@ from typing import ( ) from sqlite_fts4 import rank_bm25 +from typing_extensions import Self + from sqlite_utils.plugins import ensure_plugins_loaded, pm from .create_table_parser import ( @@ -635,7 +637,7 @@ class Database: pm.hook.prepare_connection(conn=self.conn) self.strict = strict - def __enter__(self): + def __enter__(self) -> Self: return self def __exit__( From d7b39f739389f2268145d78d8c5e1070ef60594c Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Thu, 13 Aug 2026 16:39:38 -0700 Subject: [PATCH 4/6] install uv first --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 920ec18..a252861 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -55,6 +55,7 @@ jobs: uv run ty check sqlite_utils - name: Check no accidental dev= dependencies needed run: | + pip install uv uv run --no-default-groups sqlite-utils --help - name: Check formatting run: black . --check From 829aa1438c6398d65d97ce68d5a24d68168c2efd Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Thu, 13 Aug 2026 16:38:58 -0700 Subject: [PATCH 5/6] Remove from typing_extensions import Self, refs #842 --- sqlite_utils/db.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sqlite_utils/db.py b/sqlite_utils/db.py index 37825bb..c011d9b 100644 --- a/sqlite_utils/db.py +++ b/sqlite_utils/db.py @@ -24,8 +24,6 @@ from typing import ( ) from sqlite_fts4 import rank_bm25 -from typing_extensions import Self - from sqlite_utils.plugins import ensure_plugins_loaded, pm from .create_table_parser import ( @@ -637,7 +635,7 @@ class Database: pm.hook.prepare_connection(conn=self.conn) self.strict = strict - def __enter__(self) -> Self: + def __enter__(self): return self def __exit__( From bcf8b564eea75cee06e34296fb0957684a043e24 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Thu, 13 Aug 2026 16:46:31 -0700 Subject: [PATCH 6/6] Only run uv smoke test on Ubuntu Refs https://github.com/simonw/sqlite-utils/pull/843#issuecomment-5287666426 --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a252861..5924fd8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -54,6 +54,7 @@ jobs: pip install uv uv run ty check sqlite_utils - name: Check no accidental dev= dependencies needed + if: matrix.os == 'ubuntu-latest' run: | pip install uv uv run --no-default-groups sqlite-utils --help