Gentoo Archives: gentoo-commits

From: Patrick Lauer <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/wsgiintercept/
Date: Wed, 02 Mar 2016 11:13:18
Message-Id: 1456916930.d62cb535d57dc2f0ca09bb32e9822da706cf096b.patrick@gentoo
1 commit: d62cb535d57dc2f0ca09bb32e9822da706cf096b
2 Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 2 11:08:50 2016 +0000
4 Commit: Patrick Lauer <patrick <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 2 11:08:50 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d62cb535
7
8 dev-python/wsgiintercept: Bump
9
10 Package-Manager: portage-2.2.27
11
12 dev-python/wsgiintercept/Manifest | 1 +
13 .../wsgiintercept/wsgiintercept-1.1.2.ebuild | 59 ++++++++++++++++++++++
14 2 files changed, 60 insertions(+)
15
16 diff --git a/dev-python/wsgiintercept/Manifest b/dev-python/wsgiintercept/Manifest
17 index e852e02..93a6fc4 100644
18 --- a/dev-python/wsgiintercept/Manifest
19 +++ b/dev-python/wsgiintercept/Manifest
20 @@ -2,3 +2,4 @@ DIST wsgi_intercept-0.10.0.tar.gz 30017 SHA256 0f2eb4757c6cdefa4499aff4b6b080e22
21 DIST wsgi_intercept-0.10.2.tar.gz 30369 SHA256 0294469aa07bbfcf3a490cace2ce54cecda947c9e243559feccb7ea57c0644c7 SHA512 bfcb759e6933279588164e14067017ec0d44524c29cc4e4203b438a9bb253153edb9417c3eadc84bc8a6004bbe9a98eefee25227bc179096002d3167492db945 WHIRLPOOL a536a80d5c51e2f47c43323e81d9b6745157a83bf8c246b0a131824e26280f187d1df5589c88c2157fa67441415d432e83a52f1921617f71c4700975adc12953
22 DIST wsgi_intercept-0.9.0.tar.gz 28865 SHA256 55b01e89a8752625ee94c13f2d125a73a61ee924f4cfd982983ca28c0a7addeb SHA512 3964fec587408b44d5ea0371b279d7686edaa98591438e5d679f8b954396f93408df13a33c809b6d0338a26da2ad3bad666bf66646da585ca73461a0beb1e439 WHIRLPOOL 090a9e607dcd9c56442ec0aa2f0f4c4aeb6c8764777fa29febf89c53e1fd687c2477db5e818480b4d90b9f846205a592125913f4ac0fdac5ce199a16dedb10b1
23 DIST wsgi_intercept-0.9.1.tar.gz 29391 SHA256 4eab9fc11fd6abaf74791b6a5a6dd81bdc599d1c385fac834340868489a61d22 SHA512 12c1abb3c88831f90c15e11f8ab45d1262b3547a15192a1fe8ad766bbe36959a3bb4cbdb33cf303ccfd4425e8a355fd73ae6aef4afbf1a1d10f7b753e74a7b1f WHIRLPOOL e901b1719f0cbef675c2b7a0fe73b91a28d1d1efc373c99494c9648d77f1b8145e194d37eaacbbfdffa6f599ea365ef456b9c6fe5ee5d5f32a214628300db660
24 +DIST wsgi_intercept-1.1.2.tar.gz 25517 SHA256 f42772dd0965844b1d0ac2ab03d57f941b73452a8bbcab6d03ad405602f15291 SHA512 59dd14c2c012ff5bc951f03b7ce7a65e70becce300a265e45ed46932bcdc58db89926df773cba846e93d94b1d7458fc7935d8b86b04fa2af81a0e6afd7f1e743 WHIRLPOOL 1a8e6be795836f2c59bcaada1e403730ba116354f6cf114f88a7c15392970e242dd5f340c80b0cbb9a2092b822e693bed0805073f43053369c03e69c7f2b07a3
25
26 diff --git a/dev-python/wsgiintercept/wsgiintercept-1.1.2.ebuild b/dev-python/wsgiintercept/wsgiintercept-1.1.2.ebuild
27 new file mode 100644
28 index 0000000..43a4145
29 --- /dev/null
30 +++ b/dev-python/wsgiintercept/wsgiintercept-1.1.2.ebuild
31 @@ -0,0 +1,59 @@
32 +# Copyright 1999-2015 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=5
37 +
38 +PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy )
39 +
40 +inherit distutils-r1
41 +
42 +MY_PN="wsgi_intercept"
43 +MY_P="${MY_PN}-${PV}"
44 +
45 +DESCRIPTION="WSGI application in place of a real URI for testing"
46 +HOMEPAGE="https://github.com/cdent/python3-wsgi-intercept"
47 +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
48 +
49 +SLOT="0"
50 +LICENSE="MIT"
51 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
52 +IUSE="doc test"
53 +RDEPEND=""
54 +DEPEND="
55 + dev-python/setuptools[${PYTHON_USEDEP}]
56 + test? (
57 + dev-python/httplib2[${PYTHON_USEDEP}]
58 + >=dev-python/pytest-2.4[${PYTHON_USEDEP}]
59 + >=dev-python/requests-2.0.1[${PYTHON_USEDEP}]
60 + $(python_gen_cond_dep 'dev-python/mechanize[${PYTHON_USEDEP}]' python2_7 pypy)
61 + )"
62 +S="${WORKDIR}/${MY_P}"
63 +
64 +python_prepare_all() {
65 + # .pyc files cause failure of tests
66 + rm -rf test/__pycache__/ || die
67 +
68 + # Req'd to avoid file collisions
69 + sed -e s":find_packages():find_packages(exclude=['test']):" \
70 + -i setup.py || die
71 +
72 + # Disable tests connecting to the network; Bug #550710
73 + sed -e 's:test_http_not_intercepted:_&:' \
74 + -e 's:test_https_not_intercepted:_&:' \
75 + -i test/{test_urllib.py,test_http_client.py,test_requests.py} || die
76 + distutils-r1_python_prepare_all
77 +}
78 +
79 +python_compile_all() {
80 + use doc && emake -C docs html
81 +}
82 +
83 +python_test() {
84 + py.test || die "Tests failed under ${EPYTHON}"
85 +}
86 +
87 +python_install_all() {
88 + use doc && local HTML_DOCS=( docs/_build/html//. )
89 + distutils-r1_python_install_all
90 +}