Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Dec 2024 16:57:23 GMT
From:      Kai Knoblich <kai@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 6e0d3b5fc73f - main - www/py-dj50-channels: New port
Message-ID:  <202412141657.4BEGvN4l029702@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kai:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6e0d3b5fc73fd05df664b07c8b1ab3a8aa41c9e3

commit 6e0d3b5fc73fd05df664b07c8b1ab3a8aa41c9e3
Author:     James TD Smith <ahktenzero+freebsd@mohorovi.cc>
AuthorDate: 2024-12-14 16:51:20 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2024-12-14 16:55:45 +0000

    www/py-dj50-channels: New port
    
    Channels augments Django to bring WebSocket, long-poll HTTP, task
    offloading and other async support to your code, using familiar Django
    design patterns and a flexible underlying framework that lets you not
    only customize behaviours but also write support for your own protocols
    and needs.
    
    Happy to pass this port to its maintainer who already maintain the
    Django 4.2 variant of it.
    
    Co-authored-by: Kai Knoblich <kai@FreeBSD.org>
    PR:             283044, 283045 [1]
    Reported by:    James TD Smith
    MFH:            2024Q4 (required to fix [1])
---
 www/Makefile                   |  1 +
 www/py-dj50-channels/Makefile  | 27 +++++++++++++++++++++++++++
 www/py-dj50-channels/distinfo  |  3 +++
 www/py-dj50-channels/pkg-descr |  4 ++++
 4 files changed, 35 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 542d1376ea1c..7936fa88328e 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1502,6 +1502,7 @@
     SUBDIR += py-daphne
     SUBDIR += py-dash
     SUBDIR += py-dj-database-url
+    SUBDIR += py-dj50-channels
     SUBDIR += py-dj50-django-auth-ldap
     SUBDIR += py-dj50-django-choices-field
     SUBDIR += py-dj50-django-cors-headers
diff --git a/www/py-dj50-channels/Makefile b/www/py-dj50-channels/Makefile
new file mode 100644
index 000000000000..91b5259f6186
--- /dev/null
+++ b/www/py-dj50-channels/Makefile
@@ -0,0 +1,27 @@
+PORTNAME=	channels
+PORTVERSION=	4.2.0
+CATEGORIES=	www python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}dj50-
+
+MAINTAINER=	kai@FreeBSD.org
+COMMENT=	Brings async, event-driven capabilities to Django
+WWW=		https://channels.readthedocs.io/en/latest/ \
+		https://github.com/django/channels
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}asgiref>=3.6.0<4:www/py-asgiref@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}django50>=4.2:www/py-django50@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+CONFLICTS_INSTALL=	${PYTHON_PKGNAMEPREFIX}*${PORTNAME}
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/www/py-dj50-channels/distinfo b/www/py-dj50-channels/distinfo
new file mode 100644
index 000000000000..cfa8d2a5103d
--- /dev/null
+++ b/www/py-dj50-channels/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1732202562
+SHA256 (channels-4.2.0.tar.gz) = d9e707487431ba5dbce9af982970dab3b0efd786580fadb99e45dca5e39fdd59
+SIZE (channels-4.2.0.tar.gz) = 26554
diff --git a/www/py-dj50-channels/pkg-descr b/www/py-dj50-channels/pkg-descr
new file mode 100644
index 000000000000..01296180bc27
--- /dev/null
+++ b/www/py-dj50-channels/pkg-descr
@@ -0,0 +1,4 @@
+Channels augments Django to bring WebSocket, long-poll HTTP, task offloading and
+other async support to your code, using familiar Django design patterns and a
+flexible underlying framework that lets you not only customize behaviours but
+also write support for your own protocols and needs.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202412141657.4BEGvN4l029702>