Skip to content

Include libpg_query upb sources in the sdist - #226

Merged
lelit merged 2 commits into
lelit:v8from
zzoraemon043:fix/sdist-upb-files
Oct 25, 2026
Merged

lelit merged 2 commits into
lelit:v8from
zzoraemon043:fix/sdist-upb-files

Conversation

@zzoraemon043

Copy link
Copy Markdown
Contributor

Fixes #225

libpg_query 18 moved from protobuf-c to upb, but MANIFEST.in still listed the old pg_query.pb-c.* files and only picked up *.c / *.h under vendor. This swaps in pg_query.upb.h and pg_query.upb_minitable.c/.h and adds *.inc for the vendored upb, as suggested in the issue.

Checked with python -m build --sdist: the tarball now contains the three upb files plus def.inc, undef.inc, utf8_range_sse.inc and utf8_range_neon.inc.

@lelit

lelit commented Oct 19, 2026

Copy link
Copy Markdown
Owner

Thank you. May I ask you to try adding a CI test to exercise just that?

@zzoraemon043

Copy link
Copy Markdown
Contributor Author

Added a CI job that builds the sdist and runs the test suite from it. Checked locally: without the MANIFEST.in change the install fails on missing protobuf/pg_query.upb.h, with it all tests pass

@lelit
lelit merged commit 887cac1 into lelit:v8 Oct 25, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v8 sdists miss the upb protobuf files of libpg_query, so they do not build

2 participants