py-channels: updated to 4.0.0

4.0.0 (2022-10-15)
------------------

Channels 4 is the next major version of the Channels package. Together with the
matching Daphne v4 and channels-redis v4 releases, it updates dependencies,
fixes issues, and removes outdated code. It so provides the foundation for
Channels development going forward.

In most cases, you can update now by updating ``channels``, ``daphne``, and
``channels-redis`` as appropriate, with ``pip``, and by adding ``daphne`` at
the top of your ``INSTALLED_APPS`` setting.

First ``pip``::

    pip install -U 'channels[daphne]' channels-redis

Then in your Django settings file::

    INSTALLED_APPS = [
        "daphne",
        ...
    ]

Again, this is a major version change. Amongst other changes, large amounts of
the Django-wrapping code deprecated in Channels v3 has now been removed, in
favour of Django's own ASGI handling, and the ``runserver`` command has been
moved into the Daphne package.
This commit is contained in:
adam 2024-01-04 22:36:43 +00:00
parent 3815296279
commit c4a8199014
3 changed files with 18 additions and 32 deletions

View File

@ -1,8 +1,7 @@
# $NetBSD: Makefile,v 1.24 2023/07/13 10:03:26 wiz Exp $
# $NetBSD: Makefile,v 1.25 2024/01/04 22:36:43 adam Exp $
DISTNAME= channels-3.0.5
DISTNAME= channels-4.0.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 1
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=c/channels/}
@ -11,13 +10,15 @@ HOMEPAGE= https://github.com/django/channels
COMMENT= Brings event-driven capabilities to Django with a channel system
LICENSE= modified-bsd
DEPENDS+= ${PYPKGPREFIX}-asgiref>=3.3.1:../../www/py-asgiref
DEPENDS+= ${PYPKGPREFIX}-daphne>=3.0:../../www/py-daphne
DEPENDS+= ${PYPKGPREFIX}-django>=3:../../www/py-django3
TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
DEPENDS+= ${PYPKGPREFIX}-asgiref>=3.5.0:../../www/py-asgiref
DEPENDS+= ${PYPKGPREFIX}-daphne>=4.0.0:../../www/py-daphne
DEPENDS+= ${PYPKGPREFIX}-django>=3.2:../../www/py-django
USE_LANGUAGES= # none
PYTHON_VERSIONS_INCOMPATIBLE= 27
.include "../../lang/python/egg.mk"
.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"

View File

@ -1,9 +1,9 @@
@comment $NetBSD: PLIST,v 1.5 2018/11/06 14:21:51 adam Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
${PYSITELIB}/${EGG_INFODIR}/requires.txt
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
@comment $NetBSD: PLIST,v 1.6 2024/01/04 22:36:43 adam Exp $
${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
${PYSITELIB}/channels/__init__.py
${PYSITELIB}/channels/__init__.pyc
${PYSITELIB}/channels/__init__.pyo
@ -31,12 +31,6 @@ ${PYSITELIB}/channels/generic/http.pyo
${PYSITELIB}/channels/generic/websocket.py
${PYSITELIB}/channels/generic/websocket.pyc
${PYSITELIB}/channels/generic/websocket.pyo
${PYSITELIB}/channels/hacks.py
${PYSITELIB}/channels/hacks.pyc
${PYSITELIB}/channels/hacks.pyo
${PYSITELIB}/channels/http.py
${PYSITELIB}/channels/http.pyc
${PYSITELIB}/channels/http.pyo
${PYSITELIB}/channels/layers.py
${PYSITELIB}/channels/layers.pyc
${PYSITELIB}/channels/layers.pyo
@ -46,9 +40,6 @@ ${PYSITELIB}/channels/management/__init__.pyo
${PYSITELIB}/channels/management/commands/__init__.py
${PYSITELIB}/channels/management/commands/__init__.pyc
${PYSITELIB}/channels/management/commands/__init__.pyo
${PYSITELIB}/channels/management/commands/runserver.py
${PYSITELIB}/channels/management/commands/runserver.pyc
${PYSITELIB}/channels/management/commands/runserver.pyo
${PYSITELIB}/channels/management/commands/runworker.py
${PYSITELIB}/channels/management/commands/runworker.pyc
${PYSITELIB}/channels/management/commands/runworker.pyo
@ -67,12 +58,6 @@ ${PYSITELIB}/channels/security/websocket.pyo
${PYSITELIB}/channels/sessions.py
${PYSITELIB}/channels/sessions.pyc
${PYSITELIB}/channels/sessions.pyo
${PYSITELIB}/channels/signals.py
${PYSITELIB}/channels/signals.pyc
${PYSITELIB}/channels/signals.pyo
${PYSITELIB}/channels/staticfiles.py
${PYSITELIB}/channels/staticfiles.pyc
${PYSITELIB}/channels/staticfiles.pyo
${PYSITELIB}/channels/testing/__init__.py
${PYSITELIB}/channels/testing/__init__.pyc
${PYSITELIB}/channels/testing/__init__.pyo

View File

@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.21 2022/07/06 15:30:19 adam Exp $
$NetBSD: distinfo,v 1.22 2024/01/04 22:36:43 adam Exp $
BLAKE2s (channels-3.0.5.tar.gz) = 53bed9bc0d17f5ccc337d3b3dc24ffc235d155802f5c79de9ce27c950411cda9
SHA512 (channels-3.0.5.tar.gz) = 44bf4eea6764ba116c4db2c85653bdb277389eb5c010d67b19653bb4c1c5c2b2a1fe490d71afb33555a58b626bfb80bb863432a7fb7c404cdfb534c483a27852
Size (channels-3.0.5.tar.gz) = 31725 bytes
BLAKE2s (channels-4.0.0.tar.gz) = f4690402382fcbd2b1c21ea94a87f471bd53b99127d2cc3bd33582df711b563a
SHA512 (channels-4.0.0.tar.gz) = 903d7e8cc95de8d2754afc665dac828cc9ee19f0938f4908a16e40b5b0e18c62bf45380311c0cc318f106e2ba4997bb5784e31c85914779bd76f69473e4636f5
Size (channels-4.0.0.tar.gz) = 24446 bytes