Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-asyncio/
Date: Tue, 30 Jul 2019 14:39:38
Message-Id: 1564497571.25e72763bb0b80e8fead3c85ee5adbd03fb291a9.mgorny@gentoo
1 commit: 25e72763bb0b80e8fead3c85ee5adbd03fb291a9
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 30 14:24:08 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 30 14:39:31 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25e72763
7
8 dev-python/pytest-asyncio: New package
9
10 Add pytest-asyncio package, a test-dep of dev-python/aiohttp-socks.
11
12 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
13
14 dev-python/pytest-asyncio/Manifest | 1 +
15 dev-python/pytest-asyncio/metadata.xml | 7 +++++
16 .../pytest-asyncio/pytest-asyncio-0.10.0.ebuild | 35 ++++++++++++++++++++++
17 3 files changed, 43 insertions(+)
18
19 diff --git a/dev-python/pytest-asyncio/Manifest b/dev-python/pytest-asyncio/Manifest
20 new file mode 100644
21 index 00000000000..e74701959d8
22 --- /dev/null
23 +++ b/dev-python/pytest-asyncio/Manifest
24 @@ -0,0 +1 @@
25 +DIST pytest-asyncio-0.10.0.tar.gz 13968 BLAKE2B 4e63d527b20c767b8f0777ed684a15abe54009be72db8a50ca3b37ef95dceb884168d8081c651e2bbd6d818529d6809bb3498055fedc7f951f5675d58f50e408 SHA512 78160d1918c5d3d2172f74fa07bf4bf6d0bc416666011dd5b83b3a7f385ec30fc65d49c01bba5dd0e16ad9dcd9d72d8ab062526f3268d60cd2e24a35b5a8f883
26
27 diff --git a/dev-python/pytest-asyncio/metadata.xml b/dev-python/pytest-asyncio/metadata.xml
28 new file mode 100644
29 index 00000000000..266e3f19ca5
30 --- /dev/null
31 +++ b/dev-python/pytest-asyncio/metadata.xml
32 @@ -0,0 +1,7 @@
33 +<?xml version="1.0" encoding="UTF-8"?>
34 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
35 +<pkgmetadata>
36 + <maintainer type="project">
37 + <email>python@g.o</email>
38 + </maintainer>
39 +</pkgmetadata>
40
41 diff --git a/dev-python/pytest-asyncio/pytest-asyncio-0.10.0.ebuild b/dev-python/pytest-asyncio/pytest-asyncio-0.10.0.ebuild
42 new file mode 100644
43 index 00000000000..ee183d8b807
44 --- /dev/null
45 +++ b/dev-python/pytest-asyncio/pytest-asyncio-0.10.0.ebuild
46 @@ -0,0 +1,35 @@
47 +# Copyright 2019 Gentoo Authors
48 +# Distributed under the terms of the GNU General Public License v2
49 +
50 +EAPI=7
51 +
52 +PYTHON_COMPAT=( python3_{5,6,7} )
53 +inherit distutils-r1
54 +
55 +DESCRIPTION="Library for testing asyncio code with pytest"
56 +HOMEPAGE="https://github.com/pytest-dev/pytest-asyncio
57 + https://pypi.org/project/pytest-asyncio/"
58 +SRC_URI="https://github.com/pytest-dev/pytest-asyncio/archive/v${PV}.tar.gz -> ${P}.tar.gz"
59 +
60 +LICENSE="Apache-2.0"
61 +SLOT="0"
62 +KEYWORDS="~amd64 ~x86"
63 +IUSE="test"
64 +RESTRICT="!test? ( test )"
65 +
66 +RDEPEND="
67 + dev-python/pytest[${PYTHON_USEDEP}]
68 + dev-python/setuptools[${PYTHON_USEDEP}]
69 + $(python_gen_cond_dep 'dev-python/async_generator[${PYTHON_USEDEP}]' \
70 + python3_5)"
71 +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
72 + test? (
73 + ${RDEPEND}
74 + dev-python/async_generator[${PYTHON_USEDEP}]
75 + >=dev-python/hypothesis-3.64[${PYTHON_USEDEP}]
76 + )"
77 +
78 +python_test() {
79 + distutils_install_for_testing
80 + pytest -vv || die "Tests fail with ${EPYTHON}"
81 +}