Skip to content

Commit

Permalink
Add a META.json file to support pgxn distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-mlodgenski committed Feb 13, 2025
1 parent a5d1739 commit d00bd24
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
42 changes: 42 additions & 0 deletions META.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "pgcollection",
"abstract": "A collection data type",
"description": "pgcollection is a memory optimized data type for PostgreSQL used as a high performance data structure inside of plpglsql functions to create associative arrays",
"version": "0.9.0",
"maintainer": "Jim Mlodgenski <[email protected]>",
"license": "apache_2_0",
"prereqs": {
"runtime": {
"requires": {
"PostgreSQL": "14.0.0"
}
}
},
"provides": {
"pgcollection": {
"file": "sql/collection--0.9.sql",
"docfile": "pgcollection.md",
"version": "0.9.0"
}
},
"resources": {
"bugtracker": {
"web": "https://github.com/aws/pgcollection/issues"
},
"repository": {
"url": "https://github.com/aws/pgcollection.git" ,
"web": "https://github.com/aws/pgcollection",
"type": "git"
}
},
"meta-spec": {
"version": "1.0.0",
"url": "https://pgxn.org/meta/spec.txt"
},
"tags": [
"data type",
"compatibility",
"associative array",
"key value"
]
}
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ OBJS = src/collection.o \
REGRESS = collection subscript iteration srf
REGRESS_OPTS = --inputdir=test --outputdir=test --load-extension=collection

EXTRA_CLEAN = test/results/ test/regression.diffs test/regression.out
EXTRA_CLEAN = test/results/ test/regression.diffs test/regression.out $(EXTENSION)-$(EXTVERSION).zip

PG_CPPFLAGS += -I./include/

Expand All @@ -26,3 +26,6 @@ PG_CPPFLAGS += -DHASH_BLOOM=16
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)

dist:
git archive --format zip --prefix=$(EXTENSION)-$(EXTVERSION)/ -o $(EXTENSION)-$(EXTVERSION).zip HEAD

0 comments on commit d00bd24

Please sign in to comment.