1 |
commit: 72c236a8171adce6b2d32d1029a3c1211a8f2cf8 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 30 07:04:17 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 30 07:04:17 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72c236a8 |
7 |
|
8 |
dev-python/treq: Bump to 22.1.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/treq/Manifest | 1 + |
13 |
dev-python/treq/treq-22.1.0.ebuild | 43 ++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 44 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/treq/Manifest b/dev-python/treq/Manifest |
17 |
index 1a6ba24b421b..88af47e45f62 100644 |
18 |
--- a/dev-python/treq/Manifest |
19 |
+++ b/dev-python/treq/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST treq-21.5.0.tar.gz 71323 BLAKE2B 1e1f0f4c885c1d197fdf9c1a88c9ee486c3fcc4d126498f4ce10e59d62e2445e4935e3f4cabed5de2f2663c3049ab6b49e47a0bad29380a4bb901e30d6723f49 SHA512 81ccfaa90513f0ef53c60f69ff7c60e066c6f0669ab82cf361e0720e5fd3098eb88e9b205f5bb590f1e0cde6083e5e2dfbacb6086986f0dd91fc2b3038da3093 |
22 |
+DIST treq-22.1.0.tar.gz 72634 BLAKE2B e59271bbd53124fa6c01cb9fba03d83ba8cdfc1b2be065c649e26dbcd0202473b59fc1762ce02d5d016d1ac5a6a848568b248c316d7ecde8e3f3521cb213d532 SHA512 6c9a49bc4c9e73365275bf841a5a31873c092e33c4978571caae3601d02e9b8d161dcf684c40ccd297d8a8c4dafe62eddb7872a86513598260fe38c98c7c44f5 |
23 |
|
24 |
diff --git a/dev-python/treq/treq-22.1.0.ebuild b/dev-python/treq/treq-22.1.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..1ca0af3cfc5a |
27 |
--- /dev/null |
28 |
+++ b/dev-python/treq/treq-22.1.0.ebuild |
29 |
@@ -0,0 +1,43 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{8..10} ) |
36 |
+ |
37 |
+inherit distutils-r1 |
38 |
+ |
39 |
+DESCRIPTION="A requests-like API built on top of twisted.web's Agent" |
40 |
+HOMEPAGE="https://github.com/twisted/treq https://pypi.org/project/treq/" |
41 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="MIT" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
46 |
+IUSE="doc test" |
47 |
+RESTRICT="!test? ( test )" |
48 |
+ |
49 |
+RDEPEND=" |
50 |
+ dev-python/attrs[${PYTHON_USEDEP}] |
51 |
+ >=dev-python/hyperlink-21.0.0[${PYTHON_USEDEP}] |
52 |
+ dev-python/incremental[${PYTHON_USEDEP}] |
53 |
+ >=dev-python/requests-2.1.0[${PYTHON_USEDEP}] |
54 |
+ >=dev-python/twisted-18.7.0[crypt,${PYTHON_USEDEP}] |
55 |
+" |
56 |
+BDEPEND=" |
57 |
+ test? ( |
58 |
+ dev-python/httpbin[${PYTHON_USEDEP}] |
59 |
+ )" |
60 |
+ |
61 |
+distutils_enable_sphinx docs |
62 |
+ |
63 |
+src_prepare() { |
64 |
+ # fix relative path for docs generation |
65 |
+ sed -e "s@('..')@('../src')@" -i docs/conf.py || die |
66 |
+ distutils-r1_src_prepare |
67 |
+} |
68 |
+ |
69 |
+python_test() { |
70 |
+ distutils_install_for_testing |
71 |
+ "${EPYTHON}" -m twisted.trial treq || die "Tests failed with ${EPYTHON}" |
72 |
+} |