mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
dev-python/anyio: new package
Package-Manager: Portage-3.0.10, Repoman-3.0.2 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
1
dev-python/anyio/Manifest
Normal file
1
dev-python/anyio/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST anyio-2.0.2.tar.gz 91805 BLAKE2B 26a7bd16f3f7b9d59cec7b93e13a48a3bd09c459ed1e751d0189836218a8384979ec5778feb29b00dc6871640c2e67e1b4b3162d050253e195536e02902cb89a SHA512 5ce46e6cf167b2ee526e92642e65d1e715f443750b4c8b12d0c449ad460afd0280be920bcde0653f478eb52ab9db035a35ccb6908460bf425e85d7d0aa3f1799
|
||||
58
dev-python/anyio/anyio-2.0.2.ebuild
Normal file
58
dev-python/anyio/anyio-2.0.2.ebuild
Normal file
@@ -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
|
||||
}
|
||||
33
dev-python/anyio/metadata.xml
Normal file
33
dev-python/anyio/metadata.xml
Normal file
@@ -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>lssndrbarbieri@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.gronholm@nextday.fi</email>
|
||||
<name>Alex Grönholm</name>
|
||||
</maintainer>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user