Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/httpretty/
Date: Thu, 17 Dec 2015 16:28:30
Message-Id: 1450369694.06e97cd3647f0bb5e3a96caf60327664b3f8b27f.jlec@gentoo
1 commit: 06e97cd3647f0bb5e3a96caf60327664b3f8b27f
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 17 16:19:25 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 17 16:28:14 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06e97cd3
7
8 dev-python/httpretty: Version Bump
9
10 Package-Manager: portage-2.2.26
11 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
12
13 dev-python/httpretty/Manifest | 1 +
14 dev-python/httpretty/httpretty-0.8.12.ebuild | 69 ++++++++++++++++++++++++++++
15 2 files changed, 70 insertions(+)
16
17 diff --git a/dev-python/httpretty/Manifest b/dev-python/httpretty/Manifest
18 index 6cf6236..996357d 100644
19 --- a/dev-python/httpretty/Manifest
20 +++ b/dev-python/httpretty/Manifest
21 @@ -2,4 +2,5 @@ DIST httpretty-0.7.0.tar.gz 28066 SHA256 a422a74fe0f35fbb644c9a3a0a4ccb7a7469a8f
22 DIST httpretty-0.7.1.tar.gz 28394 SHA256 a0f61cd3fbdffd28a556f8fd5eff703ad3c5c76cf0c39ab8bc136f38d0a71857 SHA512 53b6f063e0e7863fa77aad1eebb0ad3078528bc97d26df80a3c6491c42b9a9008080da35bbb1e9372674c996f25e5109c84b48a2a6d9f0de5b7c53331bdad857 WHIRLPOOL 2112692eeaa034f6afa3b7ef76aa557f3211b0f9db9178369446148b7c1d8eb6292f51a47c767d168222a7d40ed66bfefd1557bbb1c9ee3c5394e1c524861e4b
23 DIST httpretty-0.8.0.tar.gz 34291 SHA256 e5512b38ad3bfb9f7d275c957b4a7eddc69e4b3a749e3b62a984c86fb6ab329b SHA512 0c6193c488a27345b3d98cc6a62e8933b67828b7335700367b28cf328ef86ff2342056bada84ca631d6acc5650b7b456e80d85d8099e873f07cd41140c481650 WHIRLPOOL f828e84fddc6e4ab9671a9cd33da6b0f2b4053fc3368e3119ed5d7410cde125486aaae8bcf1cf4eab3a641af48dda7c6531c231f0d59c36d65f1c3d173e8969f
24 DIST httpretty-0.8.10.tar.gz 41741 SHA256 474a72722d66841f0e59cee285d837e1c6263be5be7bf2f8e824fc849a99adda SHA512 5bc734a89c45daa746551ef7d150c02bf6d9cddf1bc5426a8800d2241bb5bf8a834d2736fd9a4846ce150747d9c2064686a3ed63e97e5f131778d834956a9107 WHIRLPOOL 33fc4c025176c9d3493f8efe67f24db90d2c799536a949d490be4d9c11918190846d2612c6b09e6e000430a70f0e54b9bac87261cae62e5ba8ef558251f2bc3b
25 +DIST httpretty-0.8.12.tar.gz 43396 SHA256 0fb1c892c6161110c90b93096fe38ce1445ab484b6796f366e7af2cc7d37a9c1 SHA512 1d1cbc2fd56c4aa8c2ba1e5bdb6d56db57a74f73028ebeab141f93d55eaac4a46a19c66148435e45c91d21a561ecaa6100cbe1ac0dbb65b2bdf2c8551b99a523 WHIRLPOOL de6c283eca878b6b8f6d35317c36c3f798f24259d911f241f99c33ebf8d83cfd38ba47099324029905d2e7531c827b4b44fa2704a43d5802ee76dc1992ed82dc
26 DIST httpretty-0.8.6.tar.gz 40815 SHA256 36bd574d289ee5ad781e28abb1f9cb6af696c27f13200769caf48a23e42f4938 SHA512 bd5d0b1a33b52ae3d0e09673429e771ce582795bf58d38b34d4df39f74b377ec199d720fa061a84b64175b6ba67a91bdb35c242b4fd754627d2744cb8b33b313 WHIRLPOOL 0803c822bfff000c7bc5630f29ca08232e50a1a8786122179471c84d5630281e8e2a746f820b027f6357eee77b8ece46275cb1b1cf25d957a5e785c6c9220d5b
27
28 diff --git a/dev-python/httpretty/httpretty-0.8.12.ebuild b/dev-python/httpretty/httpretty-0.8.12.ebuild
29 new file mode 100644
30 index 0000000..bc10ffb
31 --- /dev/null
32 +++ b/dev-python/httpretty/httpretty-0.8.12.ebuild
33 @@ -0,0 +1,69 @@
34 +# Copyright 1999-2015 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +# $Id$
37 +
38 +EAPI=5
39 +
40 +PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
41 +
42 +inherit distutils-r1
43 +
44 +DESCRIPTION="HTTP client mock for Python"
45 +HOMEPAGE="https://github.com/gabrielfalcao/httpretty"
46 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
47 +
48 +SLOT="0"
49 +LICENSE="MIT"
50 +KEYWORDS="~amd64 ~x86"
51 +IUSE="test"
52 +
53 +RDEPEND="dev-python/urllib3[${PYTHON_USEDEP}]"
54 +DEPEND="
55 + dev-python/setuptools[${PYTHON_USEDEP}]
56 + test? (
57 + >=dev-python/coverage-3.5[${PYTHON_USEDEP}]
58 + >=dev-python/nose-1.2[${PYTHON_USEDEP}]
59 + >=dev-python/mock-1.0[${PYTHON_USEDEP}]
60 + dev-python/sure[${PYTHON_USEDEP}]
61 + dev-python/httplib2[${PYTHON_USEDEP}]
62 + >=dev-python/requests-1.1[${PYTHON_USEDEP}]
63 + >=www-servers/tornado-2.2[${PYTHON_USEDEP}]
64 + dev-python/ipdb[${PYTHON_USEDEP}]
65 +)"
66 +
67 +#Required for test phase
68 +DISTUTILS_IN_SOURCE_BUILD=1
69 +
70 +python_test() {
71 + # https://github.com/gabrielfalcao/HTTPretty/issues/125, still occur
72 + # py3.4 hangs on many tests and is deemed underdone
73 + # Upstream does not make it clear whether py3.4 is sctually tested and supported.
74 + # python2.7 has substantial failure in tests/functional/test_requests.py and is removed.
75 + # Some tests excluded attempt connection to the network
76 + # On testing in the state below, py2.7 still has a tally of FAILED (failures=5)
77 + # that occur within the folder tests/unit which upstream should address.
78 + # https://github.com/gabrielfalcao/HTTPretty/issues/236 Bug #532106
79 +
80 + if [[ "${EPYTHON}" == python3.4 ]]; then
81 + einfo "python3.4 not adequately supported in testsuite"
82 + elif [[ "${EPYTHON}" == python2.7 ]]; then
83 + rm -f tests/functional/test_requests.py || die
84 + nosetests -e test_recording_calls \
85 + -e test_playing_calls \
86 + -e test_callback_setting_headers_and_status_response \
87 + -e test_httpretty_bypasses_when_disabled \
88 + -e test_using_httpretty_with_other_tcp_protocols \
89 + tests/unit \
90 + tests/functional || die "Tests failed under python2.7"
91 + else
92 + nosetests -e test_recording_calls \
93 + -e test_playing_calls \
94 + -e test_callback_setting_headers_and_status_response \
95 + -e test_httpretty_bypasses_when_disabled \
96 + -e test_using_httpretty_with_other_tcp_protocols \
97 + tests/unit \
98 + tests/functional || die "Tests failed under python3.3"
99 + fi
100 +
101 + rm -rf "${BUILD_DIR}"/../tests/ || die
102 +}