Add META.json and a dist target for PGXN - #9
Merged
Merged
Conversation
PGXN is the right distribution channel for a PostgreSQL extension, and it needs a spec 1.0.0 META.json at the root of the release archive. Describe the distribution there: version 2.5.0, the four extensions it provides (plruby plus the jsonb, hstore, and ltree transforms, each with its own version from its .control file), the PostgreSQL 11 floor, and the repository and bug tracker links. "make dist" builds the upload archive with git archive, taking the version from META.json so the two cannot drift, and expanding into a single plruby-<version>/ directory as PGXN Manager expects. INSTALL documents the release step and the fields to keep in step when cutting a version. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
Packages PL/Ruby for PGXN, the item left open under
"possible next steps" since 2.5.0.
META.json
Spec 1.0.0 metadata at the root of the distribution:
2.5.0, matchingplruby.control/ the CHANGELOGprovidesall four extensions:plruby(2.5.0) plus thejsonb_plruby,hstore_plruby, andltree_plrubytransforms (1.0.0 each), pointing at theSQL file each installs from
doc/plruby.mdas the plruby docfile, so PGXN renders the language referenceresources, and search tags
make dist
git archiveof the committed tree, with the version read from META.json sothe two cannot drift. The archive expands into a single
plruby-2.5.0/directory, the shape PGXN Manager expects at its upload form. Verified: 149
tracked files, no build artifacts, valid JSON in place.
INSTALL gains a section on the release step and which fields to keep in step
when cutting a version.
plruby-*.zipis gitignored.Uploading the distribution to PGXN stays a manual maintainer step.
🤖 Generated with Claude Code