commit: f928ec27e7b4c3d126429eff2cd268e706ce132b Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> AuthorDate: Sun Nov 29 15:15:38 2020 +0000 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> CommitDate: Sun Nov 29 15:16:07 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f928ec27
dev-python/anyio: new package Package-Manager: Portage-3.0.10, Repoman-3.0.2 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> dev-python/anyio/Manifest | 1 + dev-python/anyio/anyio-2.0.2.ebuild | 58 +++++++++++++++++++++++++++++++++++++ dev-python/anyio/metadata.xml | 33 +++++++++++++++++++++ 3 files changed, 92 insertions(+) diff --git a/dev-python/anyio/Manifest b/dev-python/anyio/Manifest new file mode 100644 index 00000000..0d009d2c --- /dev/null +++ b/dev-python/anyio/Manifest @@ -0,0 +1 @@ +DIST anyio-2.0.2.tar.gz 91805 BLAKE2B 26a7bd16f3f7b9d59cec7b93e13a48a3bd09c459ed1e751d0189836218a8384979ec5778feb29b00dc6871640c2e67e1b4b3162d050253e195536e02902cb89a SHA512 5ce46e6cf167b2ee526e92642e65d1e715f443750b4c8b12d0c449ad460afd0280be920bcde0653f478eb52ab9db035a35ccb6908460bf425e85d7d0aa3f1799 diff --git a/dev-python/anyio/anyio-2.0.2.ebuild b/dev-python/anyio/anyio-2.0.2.ebuild new file mode 100644 index 00000000..f9cf5b07 --- /dev/null +++ b/dev-python/anyio/anyio-2.0.2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +PYTHON_COMPAT=( python3_7 ) + +DOCBUILDER="sphinx" +DOCDIR="${S}/docs" +DOCDEPEND=" + dev-python/anyio + >=dev-python/sphinx-autodoc-typehints-1.2.0 + dev-python/sphinx_rtd_theme +" +AUTODOC=1 + +inherit distutils-r1 docs + +DESCRIPTION="High level 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 ~x86" + +RDEPEND=" + >=dev-python/curio-1.4[${PYTHON_USEDEP}] + >=dev-python/idna-2.8[${PYTHON_USEDEP}] + >=dev-python/sniffio-1.1[${PYTHON_USEDEP}] + >=dev-python/trio-0.16[${PYTHON_USEDEP}] +" +#remember to add +# $(python_gen_cond_dep 'dev-python/typing_extensions[${PYTHON_USEDEP}]' python3_7) +DEPEND=" + ${RDEPEND} + test? ( + >=dev-python/hypothesis-4.0[${PYTHON_USEDEP}] + >=dev-python/pytest-6.0[${PYTHON_USEDEP}] + dev-python/trustme[${PYTHON_USEDEP}] + dev-python/uvloop[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + distutils_install_for_testing + pytest -vv \ + --deselect tests/test_sockets.py::test_getaddrinfo[asyncio] \ + --deselect tests/test_sockets.py::test_getaddrinfo[asyncio+uvloop] \ + --deselect tests/test_sockets.py::test_getaddrinfo[curio] \ + --deselect tests/test_sockets.py::test_getaddrinfo[trio] \ + || die +} \ No newline at end of file diff --git a/dev-python/anyio/metadata.xml b/dev-python/anyio/metadata.xml new file mode 100644 index 00000000..1dcac0ae --- /dev/null +++ b/dev-python/anyio/metadata.xml @@ -0,0 +1,33 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>lssndrbarbi...@gmail.com</email> + <name>Alessandro Barbieri</name> + </maintainer> + <longdescription lang="en"> +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. + </longdescription> + <upstream> + <remote-id type="github">agronholm/anyio</remote-id> + <remote-id type="pypi">anyio</remote-id> + <maintainer status="unknown"> + <email>alex.gronh...@nextday.fi</email> + <name>Alex Grönholm</name> + </maintainer> + </upstream> +</pkgmetadata>