From nobody Wed Oct 11 12:59:33 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4S5CXQ2ZSCz4xM80; Wed, 11 Oct 2023 12:59:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S5CXQ1kDtz4ZDD; Wed, 11 Oct 2023 12:59:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697029174; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0DCLFcJxca960lJzZVpK181mjN0iYmLXuIZ1ART+oR0=; b=x067TCJcx8lx7ekRte7nGGPALF/9hMAIRMuYbOCvjNt5P4Hx9Ak5orU6zxELOf1wMEFNfa vKi+1K3Gjqr3phKEkMCLTAzdZaLIpwxgUjjQL+gTQ6bSmQ3wgVx9F6SBkWgjUZ9dgqqWrm YCp1BZsRrmQ0rXyD7/eKkVJcdU4ViTpSuXkjeZQmx0o41lmiRYCMfJqutZQdqmrePBucLI MpgbmO4epuPCmPSUTI+my3PmG0FN8Bzpl4HeSfLZ+nXceQ6g++Z5dzZ+UTbkyO2d3P2tSV Bpynejq+iPqVODLjPtHKCdoWkcEa1gCxYnevivEaHitI1Cdf4knuJ/6+3i5LJQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697029174; a=rsa-sha256; cv=none; b=hgMo3kI73wwZx4cjPJg4ImH1X43Sqi/3WiFjt08Rcs5w0DVnR2OUeH5uC697lbI+rWMtky GoDXJByxAMfmxzfHpwmFDyC8nUKICqKYgivwZZfQ7pOpEX+x3sXnt79dIhVFeN3eiYBJOq fqv+mxqi+iWhGYUmzbt+lGm/IfLSCCZs/Z1H+rl45QJmSVX8aX1M8xlLVrn3GgKF7dyS+/ 3pjzuMztgrCjj2KBvm6sSMhy6r1kGGMIMq4T67Q0Ij0nTZFCn85313SQZWYGnMUm/f7PvO KJDk3KvN4OTPJtwrBA2w3/rAA7kIkvQbCiTfs+1wKmNk7qrSIWBI8E1ZiAR8Ng== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697029174; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0DCLFcJxca960lJzZVpK181mjN0iYmLXuIZ1ART+oR0=; b=xGVt2WvBWLVZqmFb05rLIR1hsvDl/3K2YX4LMH8ZDi46nqb8GuNcy8W0GYzc2YZzUlAAHI wR7KD+rMFzWVtyFIOHc5O+ZgMURJbumHEdjfXKwgtyB1ub4qJhNKuz/eLaavIDu87l47HJ T/iPNrxRVfgeLi4BlcK9Xz1GWx2rhBwisMc+mrAGK+1RG9jYd1njN7xv0XIQXSB1tldow/ H7KwtuLXy6UKBqaW/QITciCz+c/wyspcOMJCLRl3gAQuoBs64MuWxdQJQDhCBEeVKbYKDt 4bAQP9GC4daEQpbdqj/ti0/LHw9sZq+ZsZ6TIqLE0xXsJLiBg+qEzGaKK3q76Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4S5CXQ0cfyz70D; Wed, 11 Oct 2023 12:59:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39BCxXbA036063; Wed, 11 Oct 2023 12:59:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39BCxXtg036060; Wed, 11 Oct 2023 12:59:33 GMT (envelope-from git) Date: Wed, 11 Oct 2023 12:59:33 GMT Message-Id: <202310111259.39BCxXtg036060@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 62ddbb548726 - main - www/py-daphne: Add py-daphne 4.0.0 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 62ddbb54872647f4cb6370ad9ec671d8099f39ab Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=62ddbb54872647f4cb6370ad9ec671d8099f39ab commit 62ddbb54872647f4cb6370ad9ec671d8099f39ab Author: Po-Chuan Hsieh AuthorDate: 2023-10-11 12:53:48 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-10-11 12:53:48 +0000 www/py-daphne: Add py-daphne 4.0.0 Daphne is a HTTP, HTTP2 and WebSocket protocol server for ASGI and ASGI-HTTP, developed to power Django Channels. It supports automatic negotiation of protocols; there's no need for URL prefixing to determine WebSocket endpoints versus HTTP endpoints. --- www/Makefile | 1 + www/py-daphne/Makefile | 23 +++++++++++++++++++++++ www/py-daphne/distinfo | 3 +++ www/py-daphne/files/patch-setup.py | 10 ++++++++++ www/py-daphne/pkg-descr | 5 +++++ 5 files changed, 42 insertions(+) diff --git a/www/Makefile b/www/Makefile index 9934a09cb41e..2d4d3b09f9bb 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1489,6 +1489,7 @@ SUBDIR += py-cssmin SUBDIR += py-cssselect SUBDIR += py-cssutils + SUBDIR += py-daphne SUBDIR += py-dj-database-url SUBDIR += py-dj41-django-auth-ldap SUBDIR += py-dj41-django-cors-headers diff --git a/www/py-daphne/Makefile b/www/py-daphne/Makefile new file mode 100644 index 000000000000..9340cdd57072 --- /dev/null +++ b/www/py-daphne/Makefile @@ -0,0 +1,23 @@ +PORTNAME= daphne +PORTVERSION= 4.0.0 +CATEGORIES= www python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Django ASGI (HTTP/WebSocket) server +WWW= https://github.com/django/daphne + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asgiref>=3.5.2<4:www/py-asgiref@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}autobahn>=22.4.2:www/py-autobahn@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}twisted>=22.4:devel/py-twisted@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include diff --git a/www/py-daphne/distinfo b/www/py-daphne/distinfo new file mode 100644 index 000000000000..9420c7dc4fe7 --- /dev/null +++ b/www/py-daphne/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1696904102 +SHA256 (daphne-4.0.0.tar.gz) = cce9afc8f49a4f15d4270b8cfb0e0fe811b770a5cc795474e97e4da287497666 +SIZE (daphne-4.0.0.tar.gz) = 28600 diff --git a/www/py-daphne/files/patch-setup.py b/www/py-daphne/files/patch-setup.py new file mode 100644 index 000000000000..7f1471e1dd55 --- /dev/null +++ b/www/py-daphne/files/patch-setup.py @@ -0,0 +1,10 @@ +--- setup.py.orig 2022-10-07 10:10:21 UTC ++++ setup.py +@@ -24,7 +24,6 @@ setup( + include_package_data=True, + install_requires=["twisted[tls]>=22.4", "autobahn>=22.4.2", "asgiref>=3.5.2,<4"], + python_requires=">=3.7", +- setup_requires=["pytest-runner"], + extras_require={"tests": ["hypothesis", "pytest", "pytest-asyncio", "django"]}, + entry_points={ + "console_scripts": ["daphne = daphne.cli:CommandLineInterface.entrypoint"] diff --git a/www/py-daphne/pkg-descr b/www/py-daphne/pkg-descr new file mode 100644 index 000000000000..d1c4e0751340 --- /dev/null +++ b/www/py-daphne/pkg-descr @@ -0,0 +1,5 @@ +Daphne is a HTTP, HTTP2 and WebSocket protocol server for ASGI and ASGI-HTTP, +developed to power Django Channels. + +It supports automatic negotiation of protocols; there's no need for URL +prefixing to determine WebSocket endpoints versus HTTP endpoints.