diff options
Diffstat (limited to 'dev-python/trio')
-rw-r--r-- | dev-python/trio/Manifest | 3 | ||||
-rw-r--r-- | dev-python/trio/metadata.xml | 21 | ||||
-rw-r--r-- | dev-python/trio/trio-0.19.0.ebuild | 54 |
3 files changed, 78 insertions, 0 deletions
diff --git a/dev-python/trio/Manifest b/dev-python/trio/Manifest new file mode 100644 index 000000000000..f46b8137dd06 --- /dev/null +++ b/dev-python/trio/Manifest @@ -0,0 +1,3 @@ +DIST trio-0.19.0.tar.gz 486036 BLAKE2B 052cadb8d251960b20349659b92f4d26c5b65128cbbfafee21a4a4b90463e43d9c9db6b35f3659d2b062c7d0b8b8914b31b38d2faed6c9d948c0ccbe85a0a250 SHA512 5297a3f48b786eac05b686f1e8bb0603a9c0133d6c4872a307cdc8f1e37aedb57d668b61c2568c82b7d1058b6604a22d2c5c2298f13d13f0daf8e9259aa76d7c +EBUILD trio-0.19.0.ebuild 1431 BLAKE2B 01e010f8fb421a7eb43bea26432d30172211a29d429cca4450d0378c0801f89b172dc888acc262885e87fb6353543e879cb2601bb7aca171646e0c32478d0970 SHA512 5bdc48ef281b52e0b9419ea57e1d3a12b38e2cdc53846b7bb85c4caba65deae09a0e23f4ce16c35e07097669575c59afe1667f33451fe1cf74ba6493a60973ba +MISC metadata.xml 1958 BLAKE2B 303fd88e174740b04b8a3f5f7c4b55fb6279c54d7682dd455835a7071edc66c46b31833cef66f4880e4c047c783b928af81a1e8e9fd1e4f9303cee337bef103e SHA512 e916d2dcaf9ac82be7a1163d67017640c227e707589e830072f1af17328f77d3b721bb6014b99c53dff575a6c7448767056b436f50438c9ad04f820d1b292de1 diff --git a/dev-python/trio/metadata.xml b/dev-python/trio/metadata.xml new file mode 100644 index 000000000000..1bb5fd59d255 --- /dev/null +++ b/dev-python/trio/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> + <maintainer type="person"> + <email>andrewammerlaan@gentoo.org</email> + <name>Andrew Ammerlaan</name> + </maintainer> + <stabilize-allarches/> + <longdescription lang="en"> +The Trio project's goal is to produce a production-quality, permissively licensed, async/await-native I/O library for Python. Like all async libraries, its main purpose is to help you write programs that do multiple things at the same time with parallelized I/O. A web spider that wants to fetch lots of pages in parallel, a web server that needs to juggle lots of downloads and websocket connections at the same time, a process supervisor monitoring multiple subprocesses... that sort of thing. Compared to other libraries, Trio attempts to distinguish itself with an obsessive focus on usability and correctness. Concurrency is complicated; we try to make it easy to get things right. + +Trio was built from the ground up to take advantage of the latest Python features, and draws inspiration from many sources, in particular Dave Beazley's Curio. The resulting design is radically simpler than older competitors like asyncio and Twisted, yet just as capable. Trio is the Python I/O library I always wanted; I find it makes building I/O-oriented programs easier, less error-prone, and just plain more fun. Perhaps you'll find the same. + +This project is young and still somewhat experimental: the overall design is solid and the existing features are fully tested and documented, but you may encounter missing functionality or rough edges. We do encourage you to use it, but you should read and subscribe to issue #1 to get warning and a chance to give feedback about any compatibility-breaking changes. + </longdescription> + <upstream> + <remote-id type="github">python-trio/trio</remote-id> + <remote-id type="pypi">trio</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/trio/trio-0.19.0.ebuild b/dev-python/trio/trio-0.19.0.ebuild new file mode 100644 index 000000000000..14417d4fa8a4 --- /dev/null +++ b/dev-python/trio/trio-0.19.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..9} ) + +inherit distutils-r1 + +DESCRIPTION="Python library for async concurrency and I/O" +HOMEPAGE=" + https://github.com/python-trio/trio + https://pypi.org/project/trio +" +SRC_URI="https://github.com/python-trio/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="|| ( Apache-2.0 MIT )" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + >=dev-python/async_generator-1.9[${PYTHON_USEDEP}] + >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}] + dev-python/idna[${PYTHON_USEDEP}] + dev-python/outcome[${PYTHON_USEDEP}] + dev-python/sniffio[${PYTHON_USEDEP}] + dev-python/sortedcontainers[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + >=dev-python/astor-0.8.0[${PYTHON_USEDEP}] + >=dev-python/immutables-0.6[${PYTHON_USEDEP}] + dev-python/ipython[${PYTHON_USEDEP}] + >=dev-python/jedi-0.18.0[${PYTHON_USEDEP}] + dev-python/pyopenssl[${PYTHON_USEDEP}] + dev-python/pylint[${PYTHON_USEDEP}] + dev-python/trustme[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests --install pytest +distutils_enable_sphinx docs/source \ + dev-python/immutables \ + dev-python/sphinxcontrib-trio \ + dev-python/sphinx_rtd_theme \ + dev-python/towncrier + +python_prepare_all() { + # these tests require internet access + rm trio/tests/test_ssl.py || die + rm trio/tests/test_highlevel_ssl_helpers.py || die + + distutils-r1_python_prepare_all +} |