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/aioresponses/
Date: Sat, 26 Feb 2022 18:00:05
Message-Id: 1645898393.e0a5eb36b651a52f482f43c362f811b795534087.mgorny@gentoo
1 commit: e0a5eb36b651a52f482f43c362f811b795534087
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 26 17:58:15 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 26 17:59:53 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0a5eb36
7
8 dev-python/aioresponses: Migrate to PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../aioresponses/aioresponses-0.7.3-r1.ebuild | 36 ++++++++++++++++++++++
13 1 file changed, 36 insertions(+)
14
15 diff --git a/dev-python/aioresponses/aioresponses-0.7.3-r1.ebuild b/dev-python/aioresponses/aioresponses-0.7.3-r1.ebuild
16 new file mode 100644
17 index 000000000000..be27317991b0
18 --- /dev/null
19 +++ b/dev-python/aioresponses/aioresponses-0.7.3-r1.ebuild
20 @@ -0,0 +1,36 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +DISTUTILS_USE_PEP517=setuptools
27 +PYTHON_COMPAT=( python3_{8..10} )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="Helper to mock/fake web requests in Python's aiohttp package"
32 +HOMEPAGE="https://github.com/pnuckowski/aioresponses"
33 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
34 +
35 +LICENSE="MIT"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~x86"
38 +
39 +RDEPEND="
40 + dev-python/aiohttp[${PYTHON_USEDEP}]
41 +"
42 +BDEPEND="
43 + dev-python/pbr[${PYTHON_USEDEP}]
44 + test? (
45 + dev-python/ddt[${PYTHON_USEDEP}]
46 + )
47 +"
48 +
49 +distutils_enable_sphinx docs
50 +distutils_enable_tests pytest
51 +
52 +EPYTEST_DESELECT=(
53 + # These tests require Internet access
54 + tests/test_aioresponses.py::AIOResponsesTestCase::test_address_as_instance_of_url_combined_with_pass_through
55 + tests/test_aioresponses.py::AIOResponsesTestCase::test_pass_through_with_origin_params
56 +)