1 |
commit: 833bbfa9b6ef4440d91fcdd6643cbedf85b2addc |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 1 07:50:17 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 1 08:32:11 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=833bbfa9 |
7 |
|
8 |
dev-python/async_timeout: Bump to 4.0.0a3 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/async_timeout/Manifest | 1 + |
13 |
.../async_timeout-4.0.0_alpha3.ebuild | 36 ++++++++++++++++++++++ |
14 |
2 files changed, 37 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/async_timeout/Manifest b/dev-python/async_timeout/Manifest |
17 |
index f929a7fd11e..8679d7982d2 100644 |
18 |
--- a/dev-python/async_timeout/Manifest |
19 |
+++ b/dev-python/async_timeout/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST async-timeout-3.0.1.tar.gz 9724 BLAKE2B f18ae75969b7048469fe22949f25ea25da3fdbf08b98a16b5d5ffe823060a75e6de9ed764727e08d4344c79426e9c89013d49522f20ed62e6fbe912b5c7a8787 SHA512 fd30842671a79edfd52c7350e7fb2120533a6d97b44975f7b071ce2cbde43443bd5bbe1f2ad0ad3ab2156e1987b9e58e0c149b0ecfea8674eb0cb78eee79c986 |
22 |
+DIST async-timeout-4.0.0a3.tar.gz 11386 BLAKE2B 8918878c4edd64c70d831ddd05e3235c3c7cc116a99755205b7624df52cacfb61bf4e80083c85d93e420fbf18e7da16ee3ebc796c5a4890e2801885b670a494a SHA512 04775ea30ffba90a4b604ef040df24a6a2711fd3e2c3b45d1ab87ae3487f216458f44bbfb2c85498bef286acca90af43d8b3b95cf22244027c0a48494ef84e7a |
23 |
|
24 |
diff --git a/dev-python/async_timeout/async_timeout-4.0.0_alpha3.ebuild b/dev-python/async_timeout/async_timeout-4.0.0_alpha3.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..ec9fda7ab9b |
27 |
--- /dev/null |
28 |
+++ b/dev-python/async_timeout/async_timeout-4.0.0_alpha3.ebuild |
29 |
@@ -0,0 +1,36 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
36 |
+inherit distutils-r1 |
37 |
+ |
38 |
+MY_P=${PN/_/-}-${PV/_alpha/a} |
39 |
+DESCRIPTION="Timeout context manager for asyncio programs" |
40 |
+HOMEPAGE="https://github.com/aio-libs/async-timeout" |
41 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" |
42 |
+S=${WORKDIR}/${MY_P} |
43 |
+ |
44 |
+LICENSE="Apache-2.0" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" |
47 |
+ |
48 |
+BDEPEND=" |
49 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}] |
50 |
+ test? ( |
51 |
+ dev-python/pytest-aiohttp[${PYTHON_USEDEP}] |
52 |
+ dev-python/pytest-asyncio[${PYTHON_USEDEP}] |
53 |
+ )" |
54 |
+ |
55 |
+distutils_enable_tests pytest |
56 |
+ |
57 |
+python_prepare_all() { |
58 |
+ # remove pointless dep on pytest-cov |
59 |
+ sed -i -e '/addopts/d' setup.cfg || die |
60 |
+ distutils-r1_python_prepare_all |
61 |
+} |
62 |
+ |
63 |
+python_test() { |
64 |
+ epytest -p no:aiohttp |
65 |
+} |