Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/trio/
Date: Sun, 27 Jun 2021 11:23:14
Message-Id: 1624792267.46913cc7e7f4c6574f7c0b3fb7aa5c5a7acdfcbd.andrewammerlaan@gentoo
1 commit: 46913cc7e7f4c6574f7c0b3fb7aa5c5a7acdfcbd
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 27 11:11:07 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 27 11:11:07 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46913cc7
7
8 dev-python/trio: import from ::guru
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
12
13 dev-python/trio/Manifest | 1 +
14 dev-python/trio/metadata.xml | 21 +++++++++++++++
15 dev-python/trio/trio-0.19.0.ebuild | 54 ++++++++++++++++++++++++++++++++++++++
16 3 files changed, 76 insertions(+)
17
18 diff --git a/dev-python/trio/Manifest b/dev-python/trio/Manifest
19 new file mode 100644
20 index 00000000000..3a72c2dee33
21 --- /dev/null
22 +++ b/dev-python/trio/Manifest
23 @@ -0,0 +1 @@
24 +DIST trio-0.19.0.tar.gz 486036 BLAKE2B 052cadb8d251960b20349659b92f4d26c5b65128cbbfafee21a4a4b90463e43d9c9db6b35f3659d2b062c7d0b8b8914b31b38d2faed6c9d948c0ccbe85a0a250 SHA512 5297a3f48b786eac05b686f1e8bb0603a9c0133d6c4872a307cdc8f1e37aedb57d668b61c2568c82b7d1058b6604a22d2c5c2298f13d13f0daf8e9259aa76d7c
25
26 diff --git a/dev-python/trio/metadata.xml b/dev-python/trio/metadata.xml
27 new file mode 100644
28 index 00000000000..1bb5fd59d25
29 --- /dev/null
30 +++ b/dev-python/trio/metadata.xml
31 @@ -0,0 +1,21 @@
32 +<?xml version="1.0" encoding="UTF-8"?>
33 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
34 +
35 +<pkgmetadata>
36 + <maintainer type="person">
37 + <email>andrewammerlaan@g.o</email>
38 + <name>Andrew Ammerlaan</name>
39 + </maintainer>
40 + <stabilize-allarches/>
41 + <longdescription lang="en">
42 +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.
43 +
44 +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.
45 +
46 +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.
47 + </longdescription>
48 + <upstream>
49 + <remote-id type="github">python-trio/trio</remote-id>
50 + <remote-id type="pypi">trio</remote-id>
51 + </upstream>
52 +</pkgmetadata>
53
54 diff --git a/dev-python/trio/trio-0.19.0.ebuild b/dev-python/trio/trio-0.19.0.ebuild
55 new file mode 100644
56 index 00000000000..14417d4fa8a
57 --- /dev/null
58 +++ b/dev-python/trio/trio-0.19.0.ebuild
59 @@ -0,0 +1,54 @@
60 +# Copyright 1999-2021 Gentoo Authors
61 +# Distributed under the terms of the GNU General Public License v2
62 +
63 +EAPI=7
64 +
65 +PYTHON_COMPAT=( python3_{8..9} )
66 +
67 +inherit distutils-r1
68 +
69 +DESCRIPTION="Python library for async concurrency and I/O"
70 +HOMEPAGE="
71 + https://github.com/python-trio/trio
72 + https://pypi.org/project/trio
73 +"
74 +SRC_URI="https://github.com/python-trio/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
75 +
76 +LICENSE="|| ( Apache-2.0 MIT )"
77 +SLOT="0"
78 +KEYWORDS="~amd64"
79 +
80 +RDEPEND="
81 + >=dev-python/async_generator-1.9[${PYTHON_USEDEP}]
82 + >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}]
83 + dev-python/idna[${PYTHON_USEDEP}]
84 + dev-python/outcome[${PYTHON_USEDEP}]
85 + dev-python/sniffio[${PYTHON_USEDEP}]
86 + dev-python/sortedcontainers[${PYTHON_USEDEP}]
87 +"
88 +BDEPEND="
89 + test? (
90 + >=dev-python/astor-0.8.0[${PYTHON_USEDEP}]
91 + >=dev-python/immutables-0.6[${PYTHON_USEDEP}]
92 + dev-python/ipython[${PYTHON_USEDEP}]
93 + >=dev-python/jedi-0.18.0[${PYTHON_USEDEP}]
94 + dev-python/pyopenssl[${PYTHON_USEDEP}]
95 + dev-python/pylint[${PYTHON_USEDEP}]
96 + dev-python/trustme[${PYTHON_USEDEP}]
97 + )
98 +"
99 +
100 +distutils_enable_tests --install pytest
101 +distutils_enable_sphinx docs/source \
102 + dev-python/immutables \
103 + dev-python/sphinxcontrib-trio \
104 + dev-python/sphinx_rtd_theme \
105 + dev-python/towncrier
106 +
107 +python_prepare_all() {
108 + # these tests require internet access
109 + rm trio/tests/test_ssl.py || die
110 + rm trio/tests/test_highlevel_ssl_helpers.py || die
111 +
112 + distutils-r1_python_prepare_all
113 +}