From patchwork Fri Sep 4 14:33:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jugurtha BELKALEM X-Patchwork-Id: 1357548 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=smile.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=smile-fr.20150623.gappssmtp.com header.i=@smile-fr.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=D2VM0vXO; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BjgC64vdLz9sVM for ; Sat, 5 Sep 2020 00:33:22 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id CEC6A861B5; Fri, 4 Sep 2020 14:33:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rEUM4wSEALrH; Fri, 4 Sep 2020 14:33:17 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 003C087549; Fri, 4 Sep 2020 14:33:15 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id D92421BF599 for ; Fri, 4 Sep 2020 14:33:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id CE2DD874F5 for ; Fri, 4 Sep 2020 14:33:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9fVdfgbqjYow for ; Fri, 4 Sep 2020 14:33:07 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by hemlock.osuosl.org (Postfix) with ESMTPS id E2C60873FF for ; Fri, 4 Sep 2020 14:33:06 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id c15so6932577wrs.11 for ; Fri, 04 Sep 2020 07:33:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KZO85c7AKOmh4AgQMkxZK8rah8t9MA8EHtwWEIvFRhM=; b=D2VM0vXOTOVeUr3FTyNrtMso1Ezwd0yfKWiRTxY1BW46e2LzcJ9tjKXZZmtBNtEaSR UPUi36tQZlpfQ7LRu5UQK6taTe2HE6xBUgX26ewaY8h9dW0GgX5Gs1Qm4p9CNbQr1Mhv Vs8bGREAFccO+KCtXUYU1x4RuBLFfuMxfS9Q6wmwBIJH7HuZXMi86SBf2N7DT8kyU+0J +FuchIoNqXHrVHuzkvibSAnoAGZaDWjJiX7KOOmD2kUV+h3l8s2YiaqhDkfmZJUikHuG QJa+Ae7n83fGiSZpIv1mAB7gPwIWE/ozHO4a6CRn7Lz1BB86d3PX0NsQS8XlP6WNQ/iK rHdw== 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=KZO85c7AKOmh4AgQMkxZK8rah8t9MA8EHtwWEIvFRhM=; b=KC68OytqAm0sua/ZG3t7gd7cz3IcsKcKg4oF0Rnc4oipd5C8U4+6Ia1TYpwtISaVjh Y1QmBDBDHmNk37H5ukigMFv97EYJ7Ukj8zK8R9G5CFOsuyyM76QhhU6GtY27ssQ8w/eI o55/Ut2grM/Y7xWkxVXqZ2biPvtUtGELQZl0y6ynnBkgJdONTGAxNwyRbjDPHF44TEHH S0BWvjUL7oLM6bW0NTLjNsJyWmPCwvHcFPJ/clnXhp1H4fBEeQu0CDBhhHbYLte/NpSt 9JjMWJ/IsTqWjiXsrC3+w7VbRi4TU+kxj/avd8HCN7EYoGd2M1BS9ISqj4TGQCeozRbt hdwQ== X-Gm-Message-State: AOAM532wQy8lPJIPBtBAgU/fktzvrL8i9L/IZ/3xb8vhGmeXUA+Gw3kZ RV/0u/syGnJN3ZGhpHGfcdjwE9NQSpOT2A== X-Google-Smtp-Source: ABdhPJy5pVsxdZKQlQckUxO3q42akUkD6ysnBBWgbYAgTdjwljYfL8E4Yyw5b9wpAqTsDEOx4HWlAw== X-Received: by 2002:adf:ba05:: with SMTP id o5mr7925050wrg.7.1599229984665; Fri, 04 Sep 2020 07:33:04 -0700 (PDT) Received: from P-NAN-SUCRE.numericable.fr (122.57.26.93.rev.sfr.net. [93.26.57.122]) by smtp.gmail.com with ESMTPSA id s124sm11853835wme.29.2020.09.04.07.33.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Sep 2020 07:33:04 -0700 (PDT) From: Jugurtha BELKALEM To: buildroot@buildroot.org Date: Fri, 4 Sep 2020 16:33:00 +0200 Message-Id: <20200904143301.6657-2-jugurtha.belkalem@smile.fr> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20200904143301.6657-1-jugurtha.belkalem@smile.fr> References: <20200904143301.6657-1-jugurtha.belkalem@smile.fr> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/2] package/python-aiofiles : 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: Jugurtha BELKALEM Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Ordinary local file IO is blocking, and cannot easily and portably made asynchronous. This means doing file IO may interfere with asyncio applications, which shouldn’t block the executing thread. aiofiles helps with this y introducing asynchronous versions of files that support delegating operations to a separate thread pool. More information is available at : https://pypi.org/project/aiofiles. Signed-off-by: Jugurtha BELKALEM --- Package has been tested with check-package: $ ./utils/check-package package/python-aiofiles/* 27 lines processed 0 warnings generated DEVELOPERS | 1 + package/Config.in | 1 + package/python-aiofiles/Config.in | 8 ++++++++ package/python-aiofiles/python-aiofiles.hash | 5 +++++ package/python-aiofiles/python-aiofiles.mk | 14 ++++++++++++++ 5 files changed, 29 insertions(+) create mode 100644 package/python-aiofiles/Config.in create mode 100644 package/python-aiofiles/python-aiofiles.hash create mode 100644 package/python-aiofiles/python-aiofiles.mk diff --git a/DEVELOPERS b/DEVELOPERS index d306c5f025..5f66576b6f 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1419,6 +1419,7 @@ N: Joshua Henderson F: package/qt5/qt5wayland/ N: Jugurtha BELKALEM +F: package/python-aiofiles/ F: package/python-cycler/ F: package/python-matplotlib/ diff --git a/package/Config.in b/package/Config.in index 3b6ced8f0f..f99fa83cd9 100644 --- a/package/Config.in +++ b/package/Config.in @@ -856,6 +856,7 @@ menu "External python modules" source "package/python-aiocoap/Config.in" source "package/python-aioconsole/Config.in" source "package/python-aiodns/Config.in" + source "package/python-aiofiles/Config.in" source "package/python-aiohttp/Config.in" source "package/python-aiohttp-cors/Config.in" source "package/python-aiohttp-debugtoolbar/Config.in" diff --git a/package/python-aiofiles/Config.in b/package/python-aiofiles/Config.in new file mode 100644 index 0000000000..9cc3d7fe59 --- /dev/null +++ b/package/python-aiofiles/Config.in @@ -0,0 +1,8 @@ +config BR2_PACKAGE_PYTHON_AIOFILES + bool "python-aiofiles" + depends on BR2_PACKAGE_PYTHON3 + help + aiofiles aims to handle local disk files in + asyncio applications. + + https://pypi.org/project/aiofiles diff --git a/package/python-aiofiles/python-aiofiles.hash b/package/python-aiofiles/python-aiofiles.hash new file mode 100644 index 0000000000..3c3e8565a3 --- /dev/null +++ b/package/python-aiofiles/python-aiofiles.hash @@ -0,0 +1,5 @@ +# md5, sha256 from https://pypi.org/pypi/aiofiles/json +md5 2243eff06072115e8afe8907677ca51d aiofiles-0.5.0.tar.gz +sha256 98e6bcfd1b50f97db4980e182ddd509b7cc35909e903a8fe50d8849e02d815af aiofiles-0.5.0.tar.gz +# Locally computed sha256 checksums +sha256 cb5e8e7e5f4a3988e1063c142c60dc2df75605f4c46515e776e3aca6df976e14 LICENSE diff --git a/package/python-aiofiles/python-aiofiles.mk b/package/python-aiofiles/python-aiofiles.mk new file mode 100644 index 0000000000..28f41e3967 --- /dev/null +++ b/package/python-aiofiles/python-aiofiles.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# python-aiofiles +# +################################################################################ + +PYTHON_AIOFILES_VERSION = 0.5.0 +PYTHON_AIOFILES_SOURCE = aiofiles-$(PYTHON_AIOFILES_VERSION).tar.gz +PYTHON_AIOFILES_SITE = https://files.pythonhosted.org/packages/2b/64/437053d6a4ba3b3eea1044131a25b458489320cb9609e19ac17261e4dc9b +PYTHON_AIOFILES_SETUP_TYPE = setuptools +PYTHON_AIOFILES_LICENSE = Apache-2.0 +PYTHON_AIOFILES_LICENSE_FILES = LICENSE + +$(eval $(python-package))