1 |
commit: 6e9fa1d0bd54aa1ba28ce806e9972026184293dd |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 30 07:06:14 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 30 07:06:14 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e9fa1d0 |
7 |
|
8 |
dev-python/treq: Switch to PEP 517 build |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/treq/treq-22.1.0-r1.ebuild | 43 +++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 43 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/treq/treq-22.1.0-r1.ebuild b/dev-python/treq/treq-22.1.0-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..e5e1a9824053 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/treq/treq-22.1.0-r1.ebuild |
20 |
@@ -0,0 +1,43 @@ |
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="A requests-like API built on top of twisted.web's Agent" |
32 |
+HOMEPAGE="https://github.com/twisted/treq https://pypi.org/project/treq/" |
33 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="MIT" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
38 |
+IUSE="doc test" |
39 |
+RESTRICT="!test? ( test )" |
40 |
+ |
41 |
+RDEPEND=" |
42 |
+ dev-python/attrs[${PYTHON_USEDEP}] |
43 |
+ >=dev-python/hyperlink-21.0.0[${PYTHON_USEDEP}] |
44 |
+ dev-python/incremental[${PYTHON_USEDEP}] |
45 |
+ >=dev-python/requests-2.1.0[${PYTHON_USEDEP}] |
46 |
+ >=dev-python/twisted-18.7.0[crypt,${PYTHON_USEDEP}] |
47 |
+" |
48 |
+BDEPEND=" |
49 |
+ test? ( |
50 |
+ dev-python/httpbin[${PYTHON_USEDEP}] |
51 |
+ )" |
52 |
+ |
53 |
+distutils_enable_sphinx docs |
54 |
+ |
55 |
+src_prepare() { |
56 |
+ # fix relative path for docs generation |
57 |
+ sed -e "s@('..')@('../src')@" -i docs/conf.py || die |
58 |
+ distutils-r1_src_prepare |
59 |
+} |
60 |
+ |
61 |
+python_test() { |
62 |
+ "${EPYTHON}" -m twisted.trial treq || die "Tests failed with ${EPYTHON}" |
63 |
+} |