1 |
commit: d7b7db2aa3b62ff2a8b4a42b1f78c4c41898e6f0 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 10 12:56:27 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 10 15:28:57 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7b7db2a |
7 |
|
8 |
dev-python/httpretty: Bump to 0.9.7 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/httpretty/Manifest | 1 + |
13 |
dev-python/httpretty/httpretty-0.9.7.ebuild | 43 +++++++++++++++++++++++++++++ |
14 |
2 files changed, 44 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/httpretty/Manifest b/dev-python/httpretty/Manifest |
17 |
index f9a8c98a04d..71be5aee824 100644 |
18 |
--- a/dev-python/httpretty/Manifest |
19 |
+++ b/dev-python/httpretty/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST httpretty-0.8.14.tar.gz 43574 BLAKE2B 4015bb234c2fe3017a43fff6e3b51a7f015d9d133756d4326750da1ea06ce1910d91d7b47625a08ec85856d156a0d8b3b18706e582578e3d186994b8e4f55c69 SHA512 5adab6450e8360cc21bab4136f64cd11757b9f292c7e27980fe2561f3e705baf4f0211b9e6ff4ec9ba96a788a6c5b5b1d26657972b67423c9c25491927b0884b |
22 |
DIST httpretty-0.9.6.tar.gz 7147633 BLAKE2B e1d02ddfce5ca987c6ef1a17723544f86a8573c2a6a26ec197072021e52015efce5064af21bfbe1ec03f3ac11c21717a80f114b5be2526b113e3bc0a608702f4 SHA512 bc1c64d34370209c732bc12dd9935600b647507ab2c8f18c85f348e9b5e853618ba39e10e5a073b35036e6cbe3db2cb7a342a721d0e4affa81fe178fd0b75d92 |
23 |
+DIST httpretty-0.9.7.tar.gz 6967749 BLAKE2B e2192871ca4f0f0c0bc7c39570251d26a6d78b6e5aabb1857df2b5c3533ae066400fca323d53e1790bfa2a1509e8ebb87d20d49659620087ca3c3765648662ec SHA512 4a1cdfc09af14ab2bc6eec84ad0905103ffb48c3154b127f646b39ff131584a52b1fd56bfe7a41959fc68d64eff94a221f9bf5a159a3dbfb3535fe4ac76c6170 |
24 |
|
25 |
diff --git a/dev-python/httpretty/httpretty-0.9.7.ebuild b/dev-python/httpretty/httpretty-0.9.7.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..54886415f6c |
28 |
--- /dev/null |
29 |
+++ b/dev-python/httpretty/httpretty-0.9.7.ebuild |
30 |
@@ -0,0 +1,43 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="HTTP client mock for Python" |
41 |
+HOMEPAGE="https://github.com/gabrielfalcao/httpretty" |
42 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
43 |
+ |
44 |
+SLOT="0" |
45 |
+LICENSE="MIT" |
46 |
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" |
47 |
+IUSE="test" |
48 |
+RESTRICT="!test? ( test )" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ dev-python/six[${PYTHON_USEDEP}] |
52 |
+ dev-python/urllib3[${PYTHON_USEDEP}]" |
53 |
+DEPEND=" |
54 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
55 |
+ test? ( |
56 |
+ >=dev-python/nose-1.2[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/mock-1.0[${PYTHON_USEDEP}] |
58 |
+ dev-python/sure[${PYTHON_USEDEP}] |
59 |
+ dev-python/httplib2[${PYTHON_USEDEP}] |
60 |
+ >=dev-python/requests-1.1[${PYTHON_USEDEP}] |
61 |
+ >=www-servers/tornado-2.2[${PYTHON_USEDEP}] |
62 |
+)" |
63 |
+ |
64 |
+python_prepare_all() { |
65 |
+ # remove useless deps |
66 |
+ sed -i -e '/randomly/d' -e '/rednose/d' setup.cfg || die |
67 |
+ |
68 |
+ distutils-r1_python_prepare_all |
69 |
+} |
70 |
+ |
71 |
+python_test() { |
72 |
+ nosetests -v tests || die "Tests fail with ${EPYTHON}" |
73 |
+} |