1 |
commit: 66b12cc146e53daa7f980d8d54d7840cf57f472f |
2 |
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 29 00:01:30 2017 +0000 |
4 |
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 29 01:43:06 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66b12cc1 |
7 |
|
8 |
dev-python/treq: Version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2_p30 |
11 |
|
12 |
dev-python/treq/Manifest | 1 + |
13 |
dev-python/treq/treq-17.3.1.ebuild | 59 ++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 60 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/treq/Manifest b/dev-python/treq/Manifest |
17 |
index 0293e76a600..0f0048fc3b5 100644 |
18 |
--- a/dev-python/treq/Manifest |
19 |
+++ b/dev-python/treq/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST treq-0.2.1.tar.gz 30954 SHA256 487b9a48f15c1bc482b9be694ad436d70ecdc7a9f0fd3aaf02a30b7f547d9b9d SHA512 d9236c395dca66d358fc9bb1b752e02a7d6335195235808452542de33145057c1c2e959658015b3c89c9a20c35b1a8edb752e151230e72edd313dde6cd6a4cac WHIRLPOOL 2d9b4d5bbf6c8a274d43be6c92f26b4158cd4844074f84d5cd1ef09f49e3ee41454b1b7874074ec3a8c8617a299ddf6d8df6a12d41cd660a188811ae92a44573 |
22 |
DIST treq-16.12.0.tar.gz 43685 SHA256 b008edc81157969ad2bf23bece083adedb0adf249368a3896bb5ac9a871b91a9 SHA512 9385ada8cdf88e608937c118c29506372d8d3a8e7dcdc54998461652f106e4ccca4d6fa0a3f14ff5d9312da7ea1e531a9e4b0772b694b8dbe03f456101d63cca WHIRLPOOL 99abeea5c611712b5acad07c93204d29461177c29091d4ab34e5bc47e2ad393c76fbedc2bff330761692212ebec28bff1b70ffbcea02e1b5e22d848af3166727 |
23 |
+DIST treq-17.3.1.tar.gz 47380 SHA256 313af6dedecfdde2750968dc17653b6147cf2340b3479d70031cf741f5be0cf6 SHA512 e52cccbfa663314e968b33c58a5be5782063b2d6313a4ee5a03df912146c6ca25abca82915f30791f865afd2c08bb04c9993d9204d876c7ec2b308c6e51cb821 WHIRLPOOL 0f5f9c8910f81b1e704e55ce6f3ee933793ceb7c7b10ac0827e5fc4c0bd4791fdfee709fe2239b2d096dd7e1fb98315286839e648dc67b940cb1aabbb1b61e51 |
24 |
|
25 |
diff --git a/dev-python/treq/treq-17.3.1.ebuild b/dev-python/treq/treq-17.3.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..f5efa5c167a |
28 |
--- /dev/null |
29 |
+++ b/dev-python/treq/treq-17.3.1.ebuild |
30 |
@@ -0,0 +1,59 @@ |
31 |
+# Copyright 1999-2017 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
36 |
+inherit distutils-r1 |
37 |
+ |
38 |
+DESCRIPTION="A requests-like API built on top of twisted.web's Agent" |
39 |
+HOMEPAGE="https://github.com/twisted/treq https://pypi.python.org/pypi/treq" |
40 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="MIT" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~x86" |
45 |
+IUSE="doc test" |
46 |
+ |
47 |
+COMMON_DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
48 |
+ dev-python/incremental[${PYTHON_USEDEP}] |
49 |
+" |
50 |
+ |
51 |
+RDEPEND="${COMMON_DEPEND} |
52 |
+ dev-python/six[${PYTHON_USEDEP}] |
53 |
+ >=dev-python/twisted-16.4.0[crypt,${PYTHON_USEDEP}] |
54 |
+ >=dev-python/requests-2.1.0[${PYTHON_USEDEP}] |
55 |
+ dev-python/attrs[${PYTHON_USEDEP}] |
56 |
+" |
57 |
+ |
58 |
+DEPEND="${COMMON_DEPEND} |
59 |
+ doc? ( dev-python/sphinx |
60 |
+ ${RDEPEND} ) |
61 |
+ test? ( |
62 |
+ dev-python/mock[${PYTHON_USEDEP}] |
63 |
+ dev-python/pyflakes[${PYTHON_USEDEP}] |
64 |
+ dev-python/pep8[${PYTHON_USEDEP}] |
65 |
+ )" |
66 |
+ |
67 |
+python_compile_all() { |
68 |
+ use doc && emake -C "${S}/docs" html |
69 |
+} |
70 |
+ |
71 |
+python_install_all() { |
72 |
+ use doc && dohtml -r "${S}/docs/_build/html/"* |
73 |
+ distutils-r1_python_install_all |
74 |
+} |
75 |
+ |
76 |
+test_instructions(){ |
77 |
+ ewarn "The 'test' USE flag and FEATURE only ensures that the correct" |
78 |
+ ewarn "dependenciess are installed for this package." |
79 |
+ ewarn "Please run eg:" |
80 |
+ ewarn "$ python3.4 /usr/bin/trial treq" |
81 |
+ ewarn "as a user for each of the python versions it is installed to" |
82 |
+ ewarn "to correctly test this package." |
83 |
+} |
84 |
+ |
85 |
+python_test() { |
86 |
+ # Tests fail when run via emerge |
87 |
+ # they need proper network access |
88 |
+ test_instructions |
89 |
+} |