Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/trio-asyncio/, dev-python/pytest-trio/, ...
Date: Sun, 27 Jun 2021 15:38:26
Message-Id: 1624808300.b7524220f5cc44d0d0c690b2bcb1f93872ab6188.andrewammerlaan@gentoo
1 commit: b7524220f5cc44d0d0c690b2bcb1f93872ab6188
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 27 15:37:59 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 27 15:38:20 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b7524220
7
8 dev-python/trio-asyncio: move to ::gentoo
9
10 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
11
12 dev-python/pytest-trio/Manifest | 1 -
13 dev-python/pytest-trio/metadata.xml | 13 -----
14 dev-python/pytest-trio/pytest-trio-0.7.0.ebuild | 55 ----------------------
15 dev-python/trio-asyncio/Manifest | 1 -
16 .../trio-asyncio/files/no-pytest-runner.patch | 10 ----
17 dev-python/trio-asyncio/metadata.xml | 27 -----------
18 dev-python/trio-asyncio/trio-asyncio-0.12.0.ebuild | 36 --------------
19 7 files changed, 143 deletions(-)
20
21 diff --git a/dev-python/pytest-trio/Manifest b/dev-python/pytest-trio/Manifest
22 deleted file mode 100644
23 index e39be86a7..000000000
24 --- a/dev-python/pytest-trio/Manifest
25 +++ /dev/null
26 @@ -1 +0,0 @@
27 -DIST pytest-trio-0.7.0.tar.gz 47784 BLAKE2B 59b28df45e87804e0b6eb557a0cf259fdc3636cc7a03d78248fb814d55904ed01d00a530b194b2bfe93ccfb9de528d70a372faf1f6db24531c230319122db2e5 SHA512 547036c94f33cf8e755c88d608c5fddfa5c583fdaa7e604598d470e250a006c571702a81bac4f273b74450a8c10e4be404bad74d4104403fe1c9c70e872dff53
28
29 diff --git a/dev-python/pytest-trio/metadata.xml b/dev-python/pytest-trio/metadata.xml
30 deleted file mode 100644
31 index 0cc4d7f61..000000000
32 --- a/dev-python/pytest-trio/metadata.xml
33 +++ /dev/null
34 @@ -1,13 +0,0 @@
35 -<?xml version='1.0' encoding='UTF-8'?>
36 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
37 -<pkgmetadata>
38 - <maintainer type="person">
39 - <description>co-maintainers welcome</description>
40 - <email>lssndrbarbieri@×××××.com</email>
41 - <name>Alessandro Barbieri</name>
42 - </maintainer>
43 - <upstream>
44 - <remote-id type="github">python-trio/pytest-trio</remote-id>
45 - <remote-id type="pypi">pytest-trio</remote-id>
46 - </upstream>
47 -</pkgmetadata>
48
49 diff --git a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
50 deleted file mode 100644
51 index a56157c2f..000000000
52 --- a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
53 +++ /dev/null
54 @@ -1,55 +0,0 @@
55 -# Copyright 1999-2021 Gentoo Authors
56 -# Distributed under the terms of the GNU General Public License v2
57 -
58 -EAPI="7"
59 -
60 -PYTHON_COMPAT=( python3_{7,8,9} )
61 -DISTUTILS_USE_SETUPTOOLS=bdepend
62 -DOCS_BUILDER="sphinx"
63 -DOCS_DIR="${S}/docs/source"
64 -DOCS_DEPEND="
65 - >=dev-python/attrs-17.4.0
66 - >=dev-python/sphinx-1.6.1
67 - dev-python/sphinx_rtd_theme
68 - dev-python/sphinxcontrib-trio
69 -"
70 -
71 -inherit distutils-r1 docs
72 -
73 -DESCRIPTION="This is a pytest plugin to help you test projects that use Trio"
74 -HOMEPAGE="
75 - https://github.com/python-trio/pytest-trio
76 - https://pypi.org/project/pytest-trio
77 -"
78 -SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
79 -
80 -LICENSE="|| ( MIT Apache-2.0 )"
81 -SLOT="0"
82 -KEYWORDS="~amd64"
83 -#too many errors
84 -RESTRICT="test"
85 -
86 -RDEPEND="
87 - >=dev-python/async_generator-1.9[${PYTHON_USEDEP}]
88 - dev-python/outcome[${PYTHON_USEDEP}]
89 - >=dev-python/trio-0.15[${PYTHON_USEDEP}]
90 -"
91 -DEPEND="
92 - ${RDEPEND}
93 - test? (
94 - >=dev-python/hypothesis-3.64[${PYTHON_USEDEP}]
95 - <dev-python/pytest-6.0.0[${PYTHON_USEDEP}]
96 - )
97 -"
98 -
99 -distutils_enable_tests pytest
100 -
101 -python_test() {
102 - # has to be run in source dir
103 - #even upstream doesn't know how to run their tests
104 - #https://github.com/python-trio/pytest-trio/issues/84
105 - #"Our CI is still passing AFAIK"
106 - PYTHONPATH="${S}"
107 - cd "${S}" || die
108 - pytest -vv --pyargs pytest_trio || die "Tests fail with ${EPYTHON}"
109 -}
110
111 diff --git a/dev-python/trio-asyncio/Manifest b/dev-python/trio-asyncio/Manifest
112 deleted file mode 100644
113 index a4fd46342..000000000
114 --- a/dev-python/trio-asyncio/Manifest
115 +++ /dev/null
116 @@ -1 +0,0 @@
117 -DIST trio-asyncio-0.12.0.tar.gz 72508 BLAKE2B f2dad48e20dadb81f603f8e7edf5d108f5c1dec332e65599e06495a9e3b919d20a15e3cb0d4f06c46a0e844cd79a88c172043b5cae2bc632661679a9ac854c04 SHA512 da630bf95d0736efd419a7b84d3fcb55f4440ef5f3ac584f36b2eca9188145d4581b20d4842b1322b07f176822f7c76e32ae57ac71899ea2445ce1783bcd382c
118
119 diff --git a/dev-python/trio-asyncio/files/no-pytest-runner.patch b/dev-python/trio-asyncio/files/no-pytest-runner.patch
120 deleted file mode 100644
121 index 6eec59da4..000000000
122 --- a/dev-python/trio-asyncio/files/no-pytest-runner.patch
123 +++ /dev/null
124 @@ -1,10 +0,0 @@
125 ---- a/setup.py 2021-03-27 18:54:07.104800689 +0100
126 -+++ b/setup.py 2021-03-27 18:54:23.197091635 +0100
127 -@@ -77,7 +77,6 @@
128 - include_package_data=True,
129 - python_requires=">=3.6", # temporary, for RTD
130 - keywords=["async", "io", "trio", "asyncio", "trio-asyncio"],
131 -- setup_requires=['pytest-runner'],
132 - tests_require=['pytest >= 5.4', 'pytest-trio >= 0.6', 'outcome'],
133 - classifiers=[
134 - "Development Status :: 4 - Beta",
135
136 diff --git a/dev-python/trio-asyncio/metadata.xml b/dev-python/trio-asyncio/metadata.xml
137 deleted file mode 100644
138 index f34dda2d3..000000000
139 --- a/dev-python/trio-asyncio/metadata.xml
140 +++ /dev/null
141 @@ -1,27 +0,0 @@
142 -<?xml version="1.0" encoding="UTF-8"?>
143 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
144 -
145 -<pkgmetadata>
146 - <maintainer type="person">
147 - <email>lssndrbarbieri@×××××.com</email>
148 - <name>Alessandro Barbieri</name>
149 - </maintainer>
150 - <longdescription lang="en">
151 -Rationale
152 -
153 -Trio has native concepts of tasks and task cancellation. Asyncio is based on callbacks and chaining Futures, albeit with nicer syntax, which make handling of failures and timeouts fundamentally less reliable, especially in larger programs. Thus, you really want to base your async project on Trio.
154 -
155 -On the other hand, there are quite a few asyncio-enhanced libraries. You really don't want to re-invent any wheels in your project.
156 -
157 -Thus, being able to use asyncio libraries from Trio is useful. trio-asyncio enables you to do that, and more.
158 -Transparent vs. explicit translation
159 -
160 -trio_asyncio does not try to magically allow calling await trio_code() from asyncio or vice versa. There are multiple reasons for this; the executive summary is that cross-domain calls can't be made to work correctly, and any such call is likely to result in an irrecoverable error. You need to keep your code's asyncio and trio domains rigidly separate.
161 -
162 -Fortunately, this is not difficult.
163 - </longdescription>
164 - <upstream>
165 - <remote-id type="github">python-trio/trio-asyncio</remote-id>
166 - <remote-id type="pypi">trio-asyncio</remote-id>
167 - </upstream>
168 -</pkgmetadata>
169
170 diff --git a/dev-python/trio-asyncio/trio-asyncio-0.12.0.ebuild b/dev-python/trio-asyncio/trio-asyncio-0.12.0.ebuild
171 deleted file mode 100644
172 index ac86ace5e..000000000
173 --- a/dev-python/trio-asyncio/trio-asyncio-0.12.0.ebuild
174 +++ /dev/null
175 @@ -1,36 +0,0 @@
176 -# Copyright 1999-2021 Gentoo Authors
177 -# Distributed under the terms of the GNU General Public License v2
178 -
179 -EAPI=7
180 -
181 -PYTHON_COMPAT=( python3_{7,8,9} )
182 -
183 -inherit distutils-r1
184 -
185 -DESCRIPTION="a re-implementation of the asyncio mainloop on top of Trio"
186 -HOMEPAGE="
187 - https://github.com/python-trio/trio-asyncio
188 - https://pypi.org/project/trio-asyncio
189 -"
190 -SRC_URI="https://github.com/python-trio/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
191 -
192 -LICENSE="|| ( Apache-2.0 MIT )"
193 -SLOT="0"
194 -KEYWORDS="~amd64"
195 -
196 -RDEPEND="
197 - dev-python/outcome[${PYTHON_USEDEP}]
198 - dev-python/sniffio[${PYTHON_USEDEP}]
199 - >=dev-python/trio-0.15.0[${PYTHON_USEDEP}]
200 -"
201 -DEPEND="
202 - ${RDEPEND}
203 - test? (
204 - >=dev-python/pytest-5.4[${PYTHON_USEDEP}]
205 - >=dev-python/pytest-trio-0.6[${PYTHON_USEDEP}]
206 - )
207 -"
208 -PATCHES=( "${FILESDIR}/no-pytest-runner.patch" )
209 -
210 -distutils_enable_tests pytest
211 -distutils_enable_sphinx docs/source dev-python/sphinxcontrib-trio