1 |
commit: 2673fe3bcdc2f5af601531fb052a8980d923eb85 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 28 20:09:10 2019 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 28 20:11:28 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2673fe3b |
7 |
|
8 |
dev-python/async_timeout: Bump to version 2.0.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.73, Repoman-2.3.17 |
11 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
12 |
|
13 |
dev-python/async_timeout/Manifest | 1 + |
14 |
.../async_timeout/async_timeout-2.0.1.ebuild | 38 ++++++++++++++++++++++ |
15 |
2 files changed, 39 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/async_timeout/Manifest b/dev-python/async_timeout/Manifest |
18 |
index 4929a35b0db..5362dd29f09 100644 |
19 |
--- a/dev-python/async_timeout/Manifest |
20 |
+++ b/dev-python/async_timeout/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST async-timeout-1.2.1.tar.gz 7797 BLAKE2B d8f736423631a2b2c0fb748eb2857e0f9a143af9591ddfae15d42ab13af33196a6624db5b0a705265269ed28c6c15a4e8cfe56143ccedac75a555ae62a82891b SHA512 2072caeb65a74f1a24b59a4ea905ef96d70f8fb117e3dd9c95c1107b1d67ffaa4d76b68f00364049e6e29cdb0a6d247ba0c3638ccd0a8db27bd6ee0f180f9ccb |
23 |
+DIST async-timeout-2.0.1.tar.gz 10463 BLAKE2B a9c1ab7ffd249f1d4d07a37f07743923a890d11bb9ff913b37f45e9f7be1110eba9cd24ce741b71a353ae349aceccd66a1853ed985416a85cdb4faa46f341681 SHA512 cb66bdc286082ef5570a7e3aa420434f82bb4131e9527c499c693a21d72b3f3772922c0ce2ad68e7de5f95960061e508effda56be398356ea75d55272f534a86 |
24 |
DIST async-timeout-3.0.1.tar.gz 9724 BLAKE2B f18ae75969b7048469fe22949f25ea25da3fdbf08b98a16b5d5ffe823060a75e6de9ed764727e08d4344c79426e9c89013d49522f20ed62e6fbe912b5c7a8787 SHA512 fd30842671a79edfd52c7350e7fb2120533a6d97b44975f7b071ce2cbde43443bd5bbe1f2ad0ad3ab2156e1987b9e58e0c149b0ecfea8674eb0cb78eee79c986 |
25 |
|
26 |
diff --git a/dev-python/async_timeout/async_timeout-2.0.1.ebuild b/dev-python/async_timeout/async_timeout-2.0.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..e4b133bd0a3 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/async_timeout/async_timeout-2.0.1.ebuild |
31 |
@@ -0,0 +1,38 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+PYTHON_COMPAT=( python3_{5,6} ) |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+MY_P=${PN/_/-}-${PV} |
41 |
+DESCRIPTION="Timeout context manager for asyncio programs" |
42 |
+HOMEPAGE="https://github.com/aio-libs/async-timeout" |
43 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="Apache-2.0" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
48 |
+IUSE="test" |
49 |
+RESTRICT="!test? ( test )" |
50 |
+S=${WORKDIR}/${MY_P} |
51 |
+ |
52 |
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
53 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}] |
54 |
+ test? ( |
55 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
56 |
+ <dev-python/pytest-aiohttp-0.3[${PYTHON_USEDEP}] |
57 |
+ )" |
58 |
+ |
59 |
+python_prepare_all() { |
60 |
+ # remove pointless dep on pytest-cov |
61 |
+ sed -i -e '/addopts/d' setup.cfg || die |
62 |
+ # tests fail due to missing fixture when trying to load this file |
63 |
+ rm tests/conftest.py || die |
64 |
+ distutils-r1_python_prepare_all |
65 |
+} |
66 |
+ |
67 |
+python_test() { |
68 |
+ pytest -vv || die "Tests fail with ${EPYTHON}" |
69 |
+} |