pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Florents Tselai <florents.tselai@gmail.com>
To: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: cookiecutter template for Postgres extensions
Date: Thu, 8 Feb 2024 15:09:15 +0200
Message-ID: <35742751-9F47-4E72-AA4A-EC69650CDDDA@gmail.com> (raw)


Hi all,

I built a cookiecutter template for Postgres extensions. 

This cookiecutter prompts for some basic extension metadata (e.g., name, Postgres version) and then automatically generates the necessary boilerplate files. 

These include:

* Standard extension files (Makefile, .control, c, .h, .sql) pre-populated with stubs.
* Regression Tests
* GitHub Actions for building and testing on multiple Postgres versions
* Docker support
* pgxn integration


To use it: 

pip install cookiecutter
cookiecutter gh:Florents-Tselai/cookiecutter-postgres-extension  


Demo video: https://youtu.be/zVxY3ZmE5bU

All the best,
Flo=

Message-ID: <35742751-9F47-4E72-AA4A-EC69650CDDDA@gmail.com>
Permalink:  ../35742751-9F47-4E72-AA4A-EC69650CDDDA@gmail.com/
Also on:    postgresql.org/message-id/35742751-9F47-4E72-AA4A-EC69650CDDDA@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: florents.tselai@gmail.com
  Subject: Re: cookiecutter template for Postgres extensions
  In-Reply-To: <35742751-9F47-4E72-AA4A-EC69650CDDDA@gmail.com>
  References: <35742751-9F47-4E72-AA4A-EC69650CDDDA@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox