git: 69716433476a - main - databases/py-django-pgware: New port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 04 Sep 2026 16:33:50 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=69716433476a9930a7f5d2fa9ed29e7f8e246c4d
commit 69716433476a9930a7f5d2fa9ed29e7f8e246c4d
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2026-09-04 14:28:20 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2026-09-04 16:33:22 +0000
databases/py-django-pgware: New port
A small, dependency-light toolkit of three independent PostgreSQL
utilities for Django. Each is a context manager (and, where it makes
sense, a decorator) that borrows Django's database connection, performs
a session-scoped action, and reliably undoes it on exit: advisory locks
(sync + async), GUC setting (pg_set/atomic_set), and logging suppression
(hush, for keeping sensitive query parameters out of the logs).
WWW: https://github.com/Xof/django-pgware
Event: Berlin Hackathon 202609
---
databases/Makefile | 1 +
databases/py-django-pgware/Makefile | 25 +++++++++++++++++++++++++
databases/py-django-pgware/distinfo | 3 +++
databases/py-django-pgware/pkg-descr | 6 ++++++
4 files changed, 35 insertions(+)
diff --git a/databases/Makefile b/databases/Makefile
index 0a235855a9a0..fd400cf76be3 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -802,6 +802,7 @@
SUBDIR += py-dbt-snowflake
SUBDIR += py-dbutils
SUBDIR += py-deltalake
+ SUBDIR += py-django-pgware
SUBDIR += py-duckdb
SUBDIR += py-duckdb_engine
SUBDIR += py-fakeredis
diff --git a/databases/py-django-pgware/Makefile b/databases/py-django-pgware/Makefile
new file mode 100644
index 000000000000..c71812ed0ac4
--- /dev/null
+++ b/databases/py-django-pgware/Makefile
@@ -0,0 +1,25 @@
+PORTNAME= django-pgware
+DISTVERSION= 1.0.0
+CATEGORIES= databases python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSION}
+
+MAINTAINER= bofh@FreeBSD.org
+COMMENT= PostgreSQL utilities for Django
+WWW= https://github.com/Xof/django-pgware
+
+LICENSE= PostgreSQL
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=1.28.0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlalchemy20>0:databases/py-sqlalchemy20@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent pep517 pytest
+
+post-patch:
+ @${REINPLACE_CMD} '/license-files/d; s|^license = "PostgreSQL"|license = { text = "PostgreSQL" }|' \
+ ${WRKSRC}/pyproject.toml
+
+.include <bsd.port.mk>
diff --git a/databases/py-django-pgware/distinfo b/databases/py-django-pgware/distinfo
new file mode 100644
index 000000000000..80ad724ec387
--- /dev/null
+++ b/databases/py-django-pgware/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1788531597
+SHA256 (django_pgware-1.0.0.tar.gz) = e7aa705861881bf5c7f4a955220051049c86045a56c1c3933f44fc411c447ee6
+SIZE (django_pgware-1.0.0.tar.gz) = 23623
diff --git a/databases/py-django-pgware/pkg-descr b/databases/py-django-pgware/pkg-descr
new file mode 100644
index 000000000000..6eafaed3c4af
--- /dev/null
+++ b/databases/py-django-pgware/pkg-descr
@@ -0,0 +1,6 @@
+A small, dependency-light toolkit of three independent PostgreSQL
+utilities for Django. Each is a context manager (and, where it makes
+sense, a decorator) that borrows Django's database connection, performs
+a session-scoped action, and reliably undoes it on exit: advisory locks
+(sync + async), GUC setting (pg_set/atomic_set), and logging suppression
+(hush, for keeping sensitive query parameters out of the logs).