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