From patchwork Sun Aug 4 01:16:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Duskett X-Patchwork-Id: 1141642 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="q9UYllBo"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 461NKK6fZbz9sN4 for ; Sun, 4 Aug 2019 11:16:53 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 75CB72040E; Sun, 4 Aug 2019 01:16:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C1ljLAVjcQjQ; Sun, 4 Aug 2019 01:16:45 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 341F8203E0; Sun, 4 Aug 2019 01:16:45 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 0AEE61BF3D0 for ; Sun, 4 Aug 2019 01:16:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 04A90847B3 for ; Sun, 4 Aug 2019 01:16:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SD6PBktya8NO for ; Sun, 4 Aug 2019 01:16:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-io1-f54.google.com (mail-io1-f54.google.com [209.85.166.54]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 9CD148487B for ; Sun, 4 Aug 2019 01:16:42 +0000 (UTC) Received: by mail-io1-f54.google.com with SMTP id f4so160376851ioh.6 for ; Sat, 03 Aug 2019 18:16:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=a/xQJl1kVk4+CHJQGM+VvXVPz6IUm84Z+na2x9K6iLc=; b=q9UYllBotrrVt8bMrjDIQcoOkkbpY/H+p3oHiOHf80oic0KmUwdPgdoOeslM9owwFU 9fxdUf8h+IT9SCO62K1nh4cNz3m4QqGtejkrt1V7pum/Gu6csaXZYvFbb5gkkX4lSLG/ tQ1PR5r8AzkkiYSN81tVy0S23+u/TMmwsyV/YvHSIh/aikkcO/yfLQEOyYpKstBbCoVI sKU/yyhOw2wN3j6y3e1QV9kH1p/G+MZCigm/wa4sfX8sYOD1Bemp7ooH6oqZ9OVp/yM/ hUFO/mKFkrjOOJ/Q9k/rikbXyZ4wwFPrKgyY7Dy+h4OhiyKTwUusvk753gn1ki0VBFNv DyJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=a/xQJl1kVk4+CHJQGM+VvXVPz6IUm84Z+na2x9K6iLc=; b=qKORmaLAVwqZltSTb4yzjkyrtVVRR0uvwZEZq537HJmBX0izW9CXidlgKuygMpDLw0 LNn5HWcrmyFfWDgdBGkDjJPVOkryR5oU7oaWGMl2Vjc3tD6o+QiUWTOB+BvkbqFiRz/g 62VIkG6E2WnLqR2Jjrj4zezNQRVLsHMixxL22KcsekNFCv/KnVoVS28XLZLKIBxaOIYE 3XPgFGE16Wdfo9F6TpWxFntQKuj065flGYGLZKxX/x8D1fKMcUx3oYaCpWwnvG41M+1w pMCIq9k5f9bvUEAtdQSk3v9Fvh0uBey3BZpvOSeVwG7BgzzG6wOr4ZthjUOStdXbiSHw YoUA== X-Gm-Message-State: APjAAAXWRFiLAR1tyQU4V1wBqMTxiHr4X59zTG88KLbuZTUWWlRHEAfD z3KtNZ5xUghJVIhsMQDA2GVuuRwK X-Google-Smtp-Source: APXvYqw2II5FHMXqcbaQH+gv5d9VCttELrGwWL+mdL245AK78+VkDclte13Ksxmicz9+0fdoGLiXYQ== X-Received: by 2002:a02:2245:: with SMTP id o66mr74204880jao.53.1564881401594; Sat, 03 Aug 2019 18:16:41 -0700 (PDT) Received: from localhost.localdomain (68-188-149-81.dhcp.aldl.mi.charter.com. [68.188.149.81]) by smtp.gmail.com with ESMTPSA id u4sm74678275iol.59.2019.08.03.18.16.40 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 03 Aug 2019 18:16:41 -0700 (PDT) From: aduskett@gmail.com To: buildroot@buildroot.org Date: Sat, 3 Aug 2019 21:16:27 -0400 Message-Id: <20190804011631.86261-5-aduskett@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190804011631.86261-1-aduskett@gmail.com> References: <20190804011631.86261-1-aduskett@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 04/08] package/python-daphne: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Adam Duskett Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Adam Duskett 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. In addition, add the patch: remove pytest-runner-requirement. Setup and runtime work without without pytest-runner as such, it is not actually a requirement for building. Signed-off-by: Adam Duskett --- DEVELOPERS | 1 + package/Config.in | 1 + ...001-remove-pytest-runner-requirement.patch | 27 +++++++++++++++++++ package/python-daphne/Config.in | 13 +++++++++ package/python-daphne/python-daphne.hash | 5 ++++ package/python-daphne/python-daphne.mk | 14 ++++++++++ 6 files changed, 61 insertions(+) create mode 100644 package/python-daphne/0001-remove-pytest-runner-requirement.patch create mode 100644 package/python-daphne/Config.in create mode 100644 package/python-daphne/python-daphne.hash create mode 100644 package/python-daphne/python-daphne.mk diff --git a/DEVELOPERS b/DEVELOPERS index df1735cdde..0e3e93b15f 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -57,6 +57,7 @@ F: package/openjdk-bin/ F: package/php/ F: package/policycoreutils/ F: package/python3/ +F: package/python-daphne/ F: package/python-django-enumfields/ F: package/python-flask-sqlalchemy/ F: package/python-hiredis/ diff --git a/package/Config.in b/package/Config.in index e0080d2180..c81067192b 100644 --- a/package/Config.in +++ b/package/Config.in @@ -870,6 +870,7 @@ menu "External python modules" source "package/python-cycler/Config.in" source "package/python-daemon/Config.in" source "package/python-daemonize/Config.in" + source "package/python-daphne/Config.in" source "package/python-dataproperty/Config.in" source "package/python-dateutil/Config.in" source "package/python-decorator/Config.in" diff --git a/package/python-daphne/0001-remove-pytest-runner-requirement.patch b/package/python-daphne/0001-remove-pytest-runner-requirement.patch new file mode 100644 index 0000000000..c471d60e8c --- /dev/null +++ b/package/python-daphne/0001-remove-pytest-runner-requirement.patch @@ -0,0 +1,27 @@ +From f9d881cc55c89f51240f93308713216cfec793eb Mon Sep 17 00:00:00 2001 +From: Adam Duskett +Date: Sat, 3 Aug 2019 14:23:19 -0400 +Subject: [PATCH] remove pytest-runner requirement + +Setup does not actually require pytest-runner. As such, remove it. + +Signed-off-by: Adam Duskett +--- + setup.py | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 64e94f1..4e3abb0 100755 +--- a/setup.py ++++ b/setup.py +@@ -23,7 +23,6 @@ setup( + packages=find_packages() + ["twisted.plugins"], + include_package_data=True, + install_requires=["twisted>=18.7", "autobahn>=0.18", "asgiref~=3.0"], +- setup_requires=["pytest-runner"], + extras_require={ + "tests": ["hypothesis~=3.88", "pytest~=3.10", "pytest-asyncio~=0.8"] + }, +-- +2.21.0 + diff --git a/package/python-daphne/Config.in b/package/python-daphne/Config.in new file mode 100644 index 0000000000..b60004976d --- /dev/null +++ b/package/python-daphne/Config.in @@ -0,0 +1,13 @@ +config BR2_PACKAGE_PYTHON_DAPHNE + bool "python-daphne" + select BR2_PACKAGE_PYTHON_TWISTED # runtime + select BR2_PACKAGE_PYTHON_AUTOBAHN # runtime + select BR2_PACKAGE_PYTHON_ASGIREF # runtime + help + 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. + + https://github.com/django/daphne diff --git a/package/python-daphne/python-daphne.hash b/package/python-daphne/python-daphne.hash new file mode 100644 index 0000000000..71439a77e1 --- /dev/null +++ b/package/python-daphne/python-daphne.hash @@ -0,0 +1,5 @@ +# md5, sha256 from https://pypi.org/pypi/daphne/json +md5 cac7352d0ebdde4f0cc245ae0b0682f8 daphne-2.3.0.tar.gz +sha256 2329b7a74b5559f7ea012879c10ba945c3a53df7d8d2b5932a904e3b4c9abcc2 daphne-2.3.0.tar.gz +# Locally computed sha256 +sha256 55d7d6117493d69de1c7c211b947b910a715030366f1b636d28cf6891dfc1f3d PKG-INFO diff --git a/package/python-daphne/python-daphne.mk b/package/python-daphne/python-daphne.mk new file mode 100644 index 0000000000..ac65dcd779 --- /dev/null +++ b/package/python-daphne/python-daphne.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# python-daphne +# +################################################################################ + +PYTHON_DAPHNE_VERSION = 2.3.0 +PYTHON_DAPHNE_SOURCE = daphne-$(PYTHON_DAPHNE_VERSION).tar.gz +PYTHON_DAPHNE_SITE = https://files.pythonhosted.org/packages/7b/f1/994f55248e27059e160f9d07bf5d325a9891b99daf1eb775a14110e91e5b +PYTHON_DAPHNE_SETUP_TYPE = setuptools +PYTHON_DAPHNE_LICENSE = BSD +PYTHON_DAPHNE_LICENSE_FILES = PKG-INFO + +$(eval $(python-package))