Conversation
Adds a riscv64 wheel build for sqlean-py, a drop-in stdlib sqlite3 replacement bundling a SQLite amalgamation plus the sqlean.py C extensions. Mirrors upstream's publish.yaml wheels job: cibuildwheel builds directly from the tagged checkout, and CIBW_BEFORE_BUILD runs the same make targets upstream's own CI uses to fetch the SQLite and sqlean sources (not checked into the repo). Tests run upstream's own 'python -m tests' suite against the built wheel.
The Makefile fetches sqlean's extensions (MIT) and their bundled PCRE2 (BSD-3-Clause) at build time; neither is checked into the repo so neither licence text ships in the wheel. Add both at the project root so setuptools' default LICEN[CS]E* glob picks them up.
luhenry
added a commit
that referenced
this pull request
Sep 7, 2026
tests/extensions.py imports setup.py (for SQLEAN_VERSION), which imports setuptools; cibuildwheel's test venv doesn't install build deps, so 'python -m tests' failed with ModuleNotFoundError on every interpreter (confirmed on cp312/cp314 CI logs, reproduced locally).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
sqlean-py3.50.4.5Builds the
sqlean._sqlite3extension, a drop-in stdlibsqlite3replacement bundling a SQLite amalgamation plus the sqlean.py C extensions. Upstream publishes no riscv64 wheel.Mirrors upstream's
publish.yamlwheelsjob.Differs from upstream
CIBW_BEFORE_BUILDruns upstream's ownmake prepare-src download-sqlite download-sqlean- those sources aren't checked into the repoLICENSE.sqlean/LICENSE.pcre2- see License belowTesting
License: wheel compiles sqlean (MIT) and its bundled PCRE2 (BSD-3-Clause) straight into the extension; upstream ships neither licence text, so the patch adds both.
Patches
0001-add-the-vendored-sqlean-and-PCRE2-licences-next-to-the-package-s-own.patch- To upstream [blocked: this port may only touch riseproject-dev/python-wheels]. Without it the wheel ships only the wrapper's own LICENSE; reproduces on any platform.Built locally on cp39/macOS (portability rehearsal): 361 passed, 2 skipped.