From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CE3D21382C5 for ; Thu, 10 Jun 2021 09:58:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 32181E088A; Thu, 10 Jun 2021 09:58:25 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0EB20E088A for ; Thu, 10 Jun 2021 09:58:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D12E7340D49 for ; Thu, 10 Jun 2021 09:58:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1538478E for ; Thu, 10 Jun 2021 09:58:19 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1623319093.4988fd0c3cd4efafb5a961eb4c98170a0dbb1a7f.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/anyio/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/anyio/Manifest dev-python/anyio/anyio-3.1.0.ebuild dev-python/anyio/metadata.xml X-VCS-Directories: dev-python/anyio/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 4988fd0c3cd4efafb5a961eb4c98170a0dbb1a7f X-VCS-Branch: master Date: Thu, 10 Jun 2021 09:58:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: eacd93c9-9da1-403e-82a0-6de3e2bb3636 X-Archives-Hash: 92e4f894e048c351d279a98eb9bf8207 commit: 4988fd0c3cd4efafb5a961eb4c98170a0dbb1a7f Author: Andrew Ammerlaan gentoo org> AuthorDate: Thu Jun 10 08:50:04 2021 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Thu Jun 10 09:58:13 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4988fd0c dev-python/anyio: import from ::guru Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Andrew Ammerlaan gentoo.org> dev-python/anyio/Manifest | 1 + dev-python/anyio/anyio-3.1.0.ebuild | 42 +++++++++++++++++++++++++++++++++++++ dev-python/anyio/metadata.xml | 34 ++++++++++++++++++++++++++++++ 3 files changed, 77 insertions(+) diff --git a/dev-python/anyio/Manifest b/dev-python/anyio/Manifest new file mode 100644 index 00000000000..d37dd4e2703 --- /dev/null +++ b/dev-python/anyio/Manifest @@ -0,0 +1 @@ +DIST anyio-3.1.0.tar.gz 122097 BLAKE2B 4a16a5d231cc5262dd4138f628b9d210180733bda4b9e81ced0c0e0c7f49e1760c8dd22db0a1db3b7a21f3210072f4e1c543e52a7dc716ad3f0415827da48e38 SHA512 120d8e3e24f542c06caedd0a67d16b3fb69c94f5feaebde5262e54f8ffba3f1cf927c82030d65fa2efb3479ee64abd968b6ce67aee767ea33ccef6b0e3fbd358 diff --git a/dev-python/anyio/anyio-3.1.0.ebuild b/dev-python/anyio/anyio-3.1.0.ebuild new file mode 100644 index 00000000000..53b2893ab60 --- /dev/null +++ b/dev-python/anyio/anyio-3.1.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) + +inherit distutils-r1 + +DESCRIPTION="Compatibility layer for multiple asynchronous event loop implementations" +HOMEPAGE=" + https://github.com/agronholm/anyio + https://pypi.org/project/anyio/ +" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +# This will pull in dev-python/trio and a whole bunch of other new things +# And trio does not yet have a release compatible with python3.9. +RESTRICT="test" + +RDEPEND=" + >=dev-python/idna-2.8[${PYTHON_USEDEP}] + >=dev-python/sniffio-1.1[${PYTHON_USEDEP}] +" + +BDEPEND=" + test? ( + >=dev-python/hypothesis-4.0[${PYTHON_USEDEP}] + >=dev-python/pytest-mock-3.6.1[${PYTHON_USEDEP}] + dev-python/trustme[${PYTHON_USEDEP}] + >=dev-python/uvloop-0.15[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests --install pytest +distutils_enable_sphinx docs \ + dev-python/sphinx_rtd_theme \ + dev-python/sphinx-autodoc-typehints diff --git a/dev-python/anyio/metadata.xml b/dev-python/anyio/metadata.xml new file mode 100644 index 00000000000..99d53f71191 --- /dev/null +++ b/dev-python/anyio/metadata.xml @@ -0,0 +1,34 @@ + + + + + sci@gentoo.org + Gentoo Science Project + + + +AnyIO is a asynchronous compatibility API that allows applications and libraries written against it to run unmodified on asyncio, curio and trio. + +It bridges the following functionality: + +Task groups +Cancellation +Threads +Signal handling +Asynchronous file I/O +Subprocesses +Inter-task synchronization and communication (locks, conditions, events, semaphores, object streams) +High level networking (TCP, UDP and UNIX sockets) +You can even use it together with native libraries from your selected backend in applications. Doing this in libraries is not advisable however since it limits the usefulness of your library. + +AnyIO comes with its own pytest plugin which also supports asynchronous fixtures. It even works with the popular Hypothesis library. + + + agronholm/anyio + anyio + + alex.gronholm@nextday.fi + Alex Grönholm + + +