Skip to content

Add META.json and a dist target for PGXN - #9

Merged
jdatcmd merged 1 commit into
masterfrom
feature/pgxn-meta
Aug 26, 2026
Merged

Add META.json and a dist target for PGXN#9
jdatcmd merged 1 commit into
masterfrom
feature/pgxn-meta

Conversation

@jdatcmd

@jdatcmd jdatcmd commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

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:

  • version 2.5.0, matching plruby.control / the CHANGELOG
  • provides all four extensions: plruby (2.5.0) plus the jsonb_plruby,
    hstore_plruby, and ltree_plruby transforms (1.0.0 each), pointing at the
    SQL file each installs from
  • doc/plruby.md as the plruby docfile, so PGXN renders the language reference
  • runtime prereq PostgreSQL 11.0.0, MIT license, repository/bugtracker/homepage
    resources, and search tags

make dist

make dist        # wrote plruby-2.5.0.zip

git archive of the committed tree, with the version read from META.json so
the 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-*.zip is gitignored.

Uploading the distribution to PGXN stays a manual maintainer step.

🤖 Generated with Claude Code

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>
@jdatcmd
jdatcmd merged commit 519628f into master Aug 26, 2026
9 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.

1 participant