From eca3fb724c9a21487f37b19c0964c9af352c9cf1 Mon Sep 17 00:00:00 2001 From: "amarbaro.org" Date: Sun, 8 Nov 2026 12:31:49 +0100 Subject: [PATCH 1/5] build: recipe pins mojo-compiler to the build's minor Why: a .mojoc loads only on the Mojo minor it was built with; the run dependency was major-pinned (<2.0a0), so the solver accepted a nightly where the package cannot work. Regenerated with recipe-gen; the pin line is the only functional change. --- recipe.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipe.yaml b/recipe.yaml index a08e637..7fcf579 100644 --- a/recipe.yaml +++ b/recipe.yaml @@ -21,7 +21,7 @@ requirements: build: - mojo-compiler >=1.2.0,<1.3 run: - - ${{ pin_compatible('mojo-compiler') }} + - ${{ pin_compatible('mojo-compiler', upper_bound='x.x') }} # .mojoc loads only on the minor it was built with tests: - script: From 524ebbc9397f6947fa9a9baa6edae53b56a2c3ae Mon Sep 17 00:00:00 2001 From: "amarbaro.org" Date: Sun, 8 Nov 2026 12:39:31 +0100 Subject: [PATCH 2/5] build: bump version to 0.1.5 Why: patch release for the recipe's compiler pin (the package loads only on the Mojo minor it was built with); tags v0.1.4 and earlier stay where they are. --- pyproject.toml | 2 +- recipe.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7254512..203f50c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mojo-sqlite" -version = "0.1.4" +version = "0.1.5" description = "SQLite bindings for Mojo, measured against Python sqlite3" license = "Apache-2.0" requires-python = ">=3.11,<3.15" diff --git a/recipe.yaml b/recipe.yaml index 7fcf579..4f26b15 100644 --- a/recipe.yaml +++ b/recipe.yaml @@ -1,7 +1,7 @@ # rattler-build recipe, modular-community shape. # Build locally: rattler-build build -r recipe.yaml -c https://conda.modular.com/max -c conda-forge context: - version: 0.1.4 + version: 0.1.5 package: name: "mojo-sqlite" From ec7b968d6bef85c3f4d1fc35e2a8c704654bc4d7 Mon Sep 17 00:00:00 2001 From: "amarbaro.org" Date: Sun, 8 Nov 2026 12:39:38 +0100 Subject: [PATCH 3/5] docs: release notes v0.1.5 --- CHANGELOG.md | 1 + docs/releases/v0.1.5.md | 58 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 docs/releases/v0.1.5.md diff --git a/CHANGELOG.md b/CHANGELOG.md index f286c70..4448665 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ Full notes in `docs/releases/`. Newest first. Format: the release-note template. +- [v0.1.5](docs/releases/v0.1.5.md) (2026-11-08): packaging: compiler pin to build minor - [v0.1.4](docs/releases/v0.1.4.md) (2026-11-07): docs: CHANGELOG names no home path - [v0.1.3](docs/releases/v0.1.3.md) (2026-11-04): conda recipe, README install and quickstart block - [v0.1.2](docs/releases/v0.1.2.md) (2026-10-29): builds on the stable Mojo 1.2.0 release diff --git a/docs/releases/v0.1.5.md b/docs/releases/v0.1.5.md new file mode 100644 index 0000000..d188bd2 --- /dev/null +++ b/docs/releases/v0.1.5.md @@ -0,0 +1,58 @@ +# mojo-sqlite-public v0.1.5 + +**Released:** 2026-11-08 · **Commit:** `524ebbc` · **Previous:** [v0.1.4](v0.1.4.md) + +## What it does + + +SQLite for Mojo that returns the same rows as Python's `sqlite3`, byte for byte, and +runs 2.7× faster on inserts and 4× to 5.5× faster on scans. It loads the system +`libsqlite3.so.0` at run time, so it needs no linker flags. + +```mojo +from sqlite import Database + +def main() raises: + var db = Database("jobs.db") + var q = db.prepare("SELECT id, cmd FROM jobs WHERE prio >= ?") + q.bind(1, 10) + while q.step(): + print(q.int(0), q.text(1)) +``` + +## Highlights + + +- Packaging only: the conda recipe pins `mojo-compiler` to the minor the package was built with (`<1.3.0a0`), so it cannot be installed on a Mojo it does not load on. + +## Changes + +### Changed +- `recipe.yaml`: `mojo-compiler` run dependency pinned to the build's minor (`<1.3.0a0`). + + + +## Verified + + +| Check | Result | +|---|---| +| `pkg-conda` dry run on the version commit (H1-H3,H6) | PASS: `mojo-sqlite-0.1.5-hb0f4dca_0.conda` | + +## Known limits + + +- Packages are built on one Mojo minor only; see the package protocol. + +## Upgrade / run + + +``` +None: no API change. +``` + +## Commits + +- `524ebbc` build: bump version to 0.1.5 +- `eca3fb7` build: recipe pins mojo-compiler to the build's minor From 880ae8384731acac3e17184a5d3a0682335b5652 Mon Sep 17 00:00:00 2001 From: "amarbaro.org" Date: Sun, 8 Nov 2026 15:53:29 +0100 Subject: [PATCH 4/5] ci: call the shared lib-ci workflow from mojo-libs One reusable workflow replaces this copy, so a toolchain pin or a badge fix is made once for all libraries. Same steps: checkout, setup-uv, scripts/ci.sh teed to ci.log under pipefail, the checks badge on main pushes. --- .github/workflows/ci.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2c1d177..1248f49 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,10 +3,8 @@ on: push: branches: [main] pull_request: +permissions: + contents: write # the badge step pushes the orphan `badges` branch (main pushes only) jobs: - check: - runs-on: ubuntu-24.04 - steps: - - uses: actions/checkout@v7 - - uses: astral-sh/setup-uv@v10.3.0 - - run: scripts/ci.sh + ci: + uses: amarbaro/mojo-libs/.github/workflows/lib-ci.yml@v1 From 462691cea144dd5214fb907b149d85efbbf926c0 Mon Sep 17 00:00:00 2001 From: "amarbaro.org" Date: Sun, 8 Nov 2026 16:27:06 +0100 Subject: [PATCH 5/5] ci: honour MOJO= for the nightly matrix cell The weekly matrix selects a nightly Mojo by exporting MOJO=. ci.sh and the scripts it calls always used .venv/bin/mojo, so the nightly cell was na. With MOJO set the Mojo install is skipped and every mojo call uses it; unset, the commands are the same as before. --- scripts/check.sh | 2 +- scripts/ci.sh | 6 +++++- uv.lock | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/check.sh b/scripts/check.sh index e469c85..f452e2e 100755 --- a/scripts/check.sh +++ b/scripts/check.sh @@ -3,7 +3,7 @@ set -euo pipefail cd "$(dirname "$0")/.." mkdir -p .work -M=.venv/bin/mojo +M=${MOJO:-.venv/bin/mojo} command -v python3 >/dev/null || { echo "FAIL setup: python3 (the oracle) not found"; exit 1; } for sql in tests/cases/*.sql; do $M run -I src tests/run_sql.mojo "$sql" > .work/mojo.out || { echo "FAIL run: $sql"; exit 1; } diff --git a/scripts/ci.sh b/scripts/ci.sh index 0d04e41..1134570 100755 --- a/scripts/ci.sh +++ b/scripts/ci.sh @@ -5,6 +5,10 @@ cd "$(dirname "$0")/.." command -v uv >/dev/null || { echo "FAIL setup: uv not installed"; exit 1; } libs=$(ldconfig -p 2>/dev/null || true) [[ "$libs" == *"libsqlite3.so.0 "* ]] || { echo "FAIL setup: libsqlite3.so.0 not found"; exit 1; } -uv sync || { echo "FAIL setup: uv sync"; exit 1; } +if [ -z "${MOJO:-}" ]; then + uv sync || { echo "FAIL setup: uv sync"; exit 1; } + MOJO=.venv/bin/mojo +fi +export MOJO python3 -c 'import sqlite3; print("oracle sqlite", sqlite3.sqlite_version)' scripts/check.sh diff --git a/uv.lock b/uv.lock index e169fa5..be328e4 100644 --- a/uv.lock +++ b/uv.lock @@ -73,7 +73,7 @@ wheels = [ [[package]] name = "mojo-sqlite" -version = "0.1.4" +version = "0.1.5" source = { virtual = "." } dependencies = [ { name = "mojo" },