1 |
commit: 1e75baf18ca1987b7ec2fe03c3788dcf24f52995 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 14 07:42:01 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 14 08:14:14 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e75baf1 |
7 |
|
8 |
dev-python/httpretty: Bump to 1.1.1 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/httpretty/Manifest | 1 + |
13 |
dev-python/httpretty/httpretty-1.1.1.ebuild | 46 +++++++++++++++++++++++++++++ |
14 |
2 files changed, 47 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/httpretty/Manifest b/dev-python/httpretty/Manifest |
17 |
index db7310469b9..d4212481687 100644 |
18 |
--- a/dev-python/httpretty/Manifest |
19 |
+++ b/dev-python/httpretty/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST httpretty-1.0.5.tar.gz 414946 BLAKE2B 8bbaac3d53fbf5744f7bf8ef952bd9305112934af24809a233ef0446886e09b7d2a897e69aded12d9e715580305d729609365b0be55f8d324cc48e6aa0699d75 SHA512 2e5f4834848ab1a0b84230f000afb0409b30b3cc1769d36ad61f712f56abc8d6076e7507598f791fe343ce282cf9e26939add71ef794ead2836badfc2321d6bb |
22 |
DIST httpretty-1.1.0.tar.gz 417966 BLAKE2B 2decbfdb8b8a1e04bc2a985bb605d59ef2ee84a434dcd3c420ecf68857a5a409cee622db63bb5bf8981c1bf287b7dcf56cf91360fec4dd219dc349b1d4425a6d SHA512 a6da71115d4dc12125bec451888c30858ec94f2a3aec530b21efcacd9c595cb3d2196dbca3631f4b6f50c985c14b3c4bc6f34ec1d9e41aaf2b48fc8a072f5739 |
23 |
+DIST httpretty-1.1.1.tar.gz 423682 BLAKE2B a68c28155082d01d2cc3af9672dd03d6e1e0427426bc5db08fea1fe9a6cf6ceb422315f321cb66e9a6b9fa13f8abad02ca7fe78753c4deb27e220263f18b363c SHA512 29d9f1a4845b0b3dd6d3e1e9cc3f81d673a939286203de06ff34b167f69cbab180eebc0ccc4a733d81728deb2e44ffb14df25cab31475267609ce510664af736 |
24 |
|
25 |
diff --git a/dev-python/httpretty/httpretty-1.1.1.ebuild b/dev-python/httpretty/httpretty-1.1.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..d72945106de |
28 |
--- /dev/null |
29 |
+++ b/dev-python/httpretty/httpretty-1.1.1.ebuild |
30 |
@@ -0,0 +1,46 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{7..9} ) |
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 ~x86" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ dev-python/urllib3[${PYTHON_USEDEP}]" |
50 |
+# redis skipped as it requires a redis server running |
51 |
+DEPEND=" |
52 |
+ test? ( |
53 |
+ >=dev-python/boto3-1.17.72[${PYTHON_USEDEP}] |
54 |
+ dev-python/eventlet[${PYTHON_USEDEP}] |
55 |
+ dev-python/freezegun[${PYTHON_USEDEP}] |
56 |
+ dev-python/httplib2[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/httpx-0.18.1[${PYTHON_USEDEP}] |
58 |
+ dev-python/pyopenssl[${PYTHON_USEDEP}] |
59 |
+ >=dev-python/requests-1.1[${PYTHON_USEDEP}] |
60 |
+ dev-python/sure[${PYTHON_USEDEP}] |
61 |
+ >=www-servers/tornado-2.2[${PYTHON_USEDEP}] |
62 |
+)" |
63 |
+ |
64 |
+distutils_enable_tests nose |
65 |
+ |
66 |
+python_prepare_all() { |
67 |
+ # remove useless deps |
68 |
+ sed -i -e '/rednose/d' setup.cfg || die |
69 |
+ # tests requiring network access |
70 |
+ rm tests/functional/test_passthrough.py || die |
71 |
+ # requires running redis server |
72 |
+ # it is skipped correctly but it causes unnecessary dep on redis-py |
73 |
+ rm tests/functional/bugfixes/test_redis.py || die |
74 |
+ |
75 |
+ distutils-r1_python_prepare_all |
76 |
+} |