pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/www/py-daphne



Module Name:    pkgsrc
Committed By:   adam
Date:           Thu Jan  4 22:34:30 UTC 2024

Modified Files:
        pkgsrc/www/py-daphne: Makefile PLIST distinfo

Log Message:
py-daphne: updated to 4.0.0

4.0.0 (2022-10-07)
------------------

Major versioning targeting use with Channels 4.0 and beyond. Except where
noted should remain usable with Channels v3 projects, but updating Channels to the latest version is recommended.

* Added a ``runserver`` command to run an ASGI Django development server.

  Added ``"daphne"`` to the ``INSTALLED_APPS`` setting, before
  ``"django.contrib.staticfiles"`` to enable:

  INSTALLED_APPS = [
    "daphne",
    ...
  ]

  This replaces the Channels implementation of ``runserver``, which is removed
  in Channels 4.0.

* Made the ``DaphneProcess`` tests helper class compatible with the ``spawn``
  process start method, which is used on macOS and Windows.

  Note that requires Channels v4 if using with ``ChannelsLiveServerTestCase``.

* Dropped support for Python 3.6.

* Updated dependencies to the latest versions.

  Previously a range of Twisted versions have been supported. Recent Twisted
  releases (22.2, 22.4) have issued security fixes, so those are now the
  minimum supported version. Given the stability of Twisted, supporting a
  range of versions does not represent a good use of maintainer time. Going
  forward the latest Twisted version will be required.

* Set ``daphne`` as default ``Server`` header.

  This can be configured with the ``--server-name`` CLI argument.

  Added the new ``--no-server-name`` CLI argument to disable the ``Server``
  header, which is equivalent to ``--server-name=` (an empty name).

* Added ``--log-fmt`` CLI argument.

* Added support for ``ASGI_THREADS`` environment variable, setting the maximum
  number of workers used by a ``SyncToAsync`` thread-pool executor.

  Set e.g. ``ASGI_THREADS=4 daphne ...`` when running to limit the number of
  workers.

* Removed deprecated ``--ws_protocols`` CLI option.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 pkgsrc/www/py-daphne/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/www/py-daphne/PLIST
cvs rdiff -u -r1.19 -r1.20 pkgsrc/www/py-daphne/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/www/py-daphne/Makefile
diff -u pkgsrc/www/py-daphne/Makefile:1.25 pkgsrc/www/py-daphne/Makefile:1.26
--- pkgsrc/www/py-daphne/Makefile:1.25  Tue Jun  6 12:42:49 2023
+++ pkgsrc/www/py-daphne/Makefile       Thu Jan  4 22:34:29 2024
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.25 2023/06/06 12:42:49 riastradh Exp $
+# $NetBSD: Makefile,v 1.26 2024/01/04 22:34:29 adam Exp $
 
-DISTNAME=      daphne-3.0.2
+DISTNAME=      daphne-4.0.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   2
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=d/daphne/}
 
@@ -11,20 +10,20 @@ HOMEPAGE=   https://github.com/django/daph
 COMMENT=       HTTP, HTTP2 and WebSocket protocol server for ASGI
 LICENSE=       modified-bsd
 
-DEPENDS+=      ${PYPKGPREFIX}-asgiref>=3.2.10:../../www/py-asgiref
-DEPENDS+=      ${PYPKGPREFIX}-autobahn>=0.18:../../www/py-autobahn
-DEPENDS+=      ${PYPKGPREFIX}-twisted>=18.7:../../net/py-twisted
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
 TOOL_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
+TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
+DEPENDS+=      ${PYPKGPREFIX}-asgiref>=3.5.2:../../www/py-asgiref
+DEPENDS+=      ${PYPKGPREFIX}-autobahn>=22.4.2:../../www/py-autobahn
+DEPENDS+=      ${PYPKGPREFIX}-twisted>=22.4:../../net/py-twisted
 
 USE_LANGUAGES= # none
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
-USE_PKG_RESOURCES=     yes
-
 post-install:
        cd ${DESTDIR}${PREFIX}/bin && \
        ${MV} daphne daphne-${PYVERSSUFFIX} || ${TRUE}
 
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/www/py-daphne/PLIST
diff -u pkgsrc/www/py-daphne/PLIST:1.4 pkgsrc/www/py-daphne/PLIST:1.5
--- pkgsrc/www/py-daphne/PLIST:1.4      Mon Mar  1 09:00:09 2021
+++ pkgsrc/www/py-daphne/PLIST  Thu Jan  4 22:34:29 2024
@@ -1,12 +1,11 @@
-@comment $NetBSD: PLIST,v 1.4 2021/03/01 09:00:09 adam Exp $
+@comment $NetBSD: PLIST,v 1.5 2024/01/04 22:34:29 adam Exp $
 bin/daphne-${PYVERSSUFFIX}
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
-${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
 ${PYSITELIB}/daphne/__init__.py
 ${PYSITELIB}/daphne/__init__.pyc
 ${PYSITELIB}/daphne/__init__.pyo
@@ -16,6 +15,12 @@ ${PYSITELIB}/daphne/__main__.pyo
 ${PYSITELIB}/daphne/access.py
 ${PYSITELIB}/daphne/access.pyc
 ${PYSITELIB}/daphne/access.pyo
+${PYSITELIB}/daphne/apps.py
+${PYSITELIB}/daphne/apps.pyc
+${PYSITELIB}/daphne/apps.pyo
+${PYSITELIB}/daphne/checks.py
+${PYSITELIB}/daphne/checks.pyc
+${PYSITELIB}/daphne/checks.pyo
 ${PYSITELIB}/daphne/cli.py
 ${PYSITELIB}/daphne/cli.pyc
 ${PYSITELIB}/daphne/cli.pyo
@@ -25,6 +30,15 @@ ${PYSITELIB}/daphne/endpoints.pyo
 ${PYSITELIB}/daphne/http_protocol.py
 ${PYSITELIB}/daphne/http_protocol.pyc
 ${PYSITELIB}/daphne/http_protocol.pyo
+${PYSITELIB}/daphne/management/__init__.py
+${PYSITELIB}/daphne/management/__init__.pyc
+${PYSITELIB}/daphne/management/__init__.pyo
+${PYSITELIB}/daphne/management/commands/__init__.py
+${PYSITELIB}/daphne/management/commands/__init__.pyc
+${PYSITELIB}/daphne/management/commands/__init__.pyo
+${PYSITELIB}/daphne/management/commands/runserver.py
+${PYSITELIB}/daphne/management/commands/runserver.pyc
+${PYSITELIB}/daphne/management/commands/runserver.pyo
 ${PYSITELIB}/daphne/server.py
 ${PYSITELIB}/daphne/server.pyc
 ${PYSITELIB}/daphne/server.pyo

Index: pkgsrc/www/py-daphne/distinfo
diff -u pkgsrc/www/py-daphne/distinfo:1.19 pkgsrc/www/py-daphne/distinfo:1.20
--- pkgsrc/www/py-daphne/distinfo:1.19  Tue Oct 26 11:30:29 2021
+++ pkgsrc/www/py-daphne/distinfo       Thu Jan  4 22:34:29 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.19 2021/10/26 11:30:29 nia Exp $
+$NetBSD: distinfo,v 1.20 2024/01/04 22:34:29 adam Exp $
 
-BLAKE2s (daphne-3.0.2.tar.gz) = 1900eaae5933ed0ecd72f3cdc02ccab7fb087e69585030295ab3a6d7f6e99d4b
-SHA512 (daphne-3.0.2.tar.gz) = d21afa16aeed70194f281bc6b9192342cd2af47a966a53f922c81dbce5333e6a8824f197c7ca03fecd020d3449a67ccd2381b2d8f0604e77fbbe0b512e7ca2e8
-Size (daphne-3.0.2.tar.gz) = 25076 bytes
+BLAKE2s (daphne-4.0.0.tar.gz) = 51bd77294c4eed986b4fd1255af122a2c915b5588a4b06c489a65b67fdbc3d05
+SHA512 (daphne-4.0.0.tar.gz) = 1c7f707c3368fcc5c30fbb930effeb0ba1823727692514add4e6438082c9d02300a9031b56d432c1359f8f8299b0af2b925f3f9f32b4c365700f79052606676f
+Size (daphne-4.0.0.tar.gz) = 28600 bytes



Home | Main Index | Thread Index | Old Index