1 |
commit: 07e1d3443fe40a0f6c77bab3dc9a1d7f9787df96 |
2 |
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 29 21:15:49 2021 +0000 |
4 |
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 29 21:45:20 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07e1d344 |
7 |
|
8 |
dev-python/treq: Version bump to 21.1.0 |
9 |
|
10 |
drops py-3.6 due to hyperlink dep. |
11 |
|
12 |
Package-Manager: Portage-3.0.10, Repoman-3.0.2 |
13 |
Signed-off-by: Brian Dolbec <dolsen <AT> gentoo.org> |
14 |
|
15 |
dev-python/treq/Manifest | 1 + |
16 |
dev-python/treq/treq-21.1.0.ebuild | 63 ++++++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 64 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/treq/Manifest b/dev-python/treq/Manifest |
20 |
index 7097f0c1084..88277f8c26c 100644 |
21 |
--- a/dev-python/treq/Manifest |
22 |
+++ b/dev-python/treq/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST treq-20.9.0.tar.gz 60142 BLAKE2B a495b73221ee86163a5fefd03c8019f4b671a1f32d2ab304b89566339a36aaec7245d33b738b646fa48c42f4db9744938637ece058e067ee3f747e53ce442ab8 SHA512 c595ad69d5a9c688ca966cc897db669a57d14027e0bdc345d550f791390099743749be4a41294e61428cdc7bc0fa197474be780323b00f17a712505e081e7073 |
25 |
+DIST treq-21.1.0.tar.gz 71018 BLAKE2B 44223c0ad618f4a57283db60063ee2fd263f958ff18d90b055733fc3bb24c87483a7b833e2210197a4edd003cb3f86647bbb636a9692e5535908b19e0186dba8 SHA512 b68ded90021cb801b276d6310e729a985205bb0701b1d0576b00c6c4efd97400625efffa35763ceef8f0f8d94172cae6fc1abdd3de1c0a4871223d4f06758d89 |
26 |
|
27 |
diff --git a/dev-python/treq/treq-21.1.0.ebuild b/dev-python/treq/treq-21.1.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..8ba0d791aae |
30 |
--- /dev/null |
31 |
+++ b/dev-python/treq/treq-21.1.0.ebuild |
32 |
@@ -0,0 +1,63 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+PYTHON_COMPAT=( python3_{7,8,9} ) |
38 |
+DISTUTILS_USE_SETUPTOOLS="bdepend" |
39 |
+ |
40 |
+inherit distutils-r1 |
41 |
+ |
42 |
+DESCRIPTION="A requests-like API built on top of twisted.web's Agent" |
43 |
+HOMEPAGE="https://github.com/twisted/treq https://pypi.org/project/treq/" |
44 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="MIT" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
49 |
+IUSE="doc test" |
50 |
+RESTRICT="!test? ( test )" |
51 |
+ |
52 |
+COMMON_DEPEND=" |
53 |
+ dev-python/incremental[${PYTHON_USEDEP}] |
54 |
+ >=dev-python/hyperlink-21.0.0[${PYTHON_USEDEP}] |
55 |
+" |
56 |
+ |
57 |
+RDEPEND="${COMMON_DEPEND} |
58 |
+ dev-python/six[${PYTHON_USEDEP}] |
59 |
+ >=dev-python/twisted-18.7.0[crypt,${PYTHON_USEDEP}] |
60 |
+ >=dev-python/requests-2.1.0[${PYTHON_USEDEP}] |
61 |
+ dev-python/attrs[${PYTHON_USEDEP}] |
62 |
+" |
63 |
+ |
64 |
+DEPEND="${COMMON_DEPEND} |
65 |
+ doc? ( dev-python/sphinx |
66 |
+ ${RDEPEND} ) |
67 |
+ test? ( |
68 |
+ dev-python/mock[${PYTHON_USEDEP}] |
69 |
+ dev-python/httpbin[${PYTHON_USEDEP}] |
70 |
+ )" |
71 |
+ |
72 |
+python_compile_all() { |
73 |
+ use doc && emake -C "${S}/docs" html |
74 |
+} |
75 |
+ |
76 |
+python_install_all() { |
77 |
+ use doc && HTML_DOCS=( docs/_build/html/ ) |
78 |
+ |
79 |
+ distutils-r1_python_install_all |
80 |
+} |
81 |
+ |
82 |
+test_instructions(){ |
83 |
+ ewarn "The 'test' USE flag and FEATURE only ensures that the correct" |
84 |
+ ewarn "dependenciess are installed for this package." |
85 |
+ ewarn "Please run eg:" |
86 |
+ ewarn "$ python3.7 /usr/bin/trial treq" |
87 |
+ ewarn "as a user for each of the python versions it is installed to" |
88 |
+ ewarn "to correctly test this package." |
89 |
+} |
90 |
+ |
91 |
+python_test() { |
92 |
+ # Tests fail when run via emerge |
93 |
+ # they need proper network access |
94 |
+ test_instructions |
95 |
+} |