Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/wsgiproxy2/files/, dev-python/wsgiproxy2/
Date: Wed, 27 Nov 2019 21:21:55
Message-Id: 1574889555.ebaec468eb5c7dd8689d6cc08769a68e7cfeb054.chutzpah@gentoo
1 commit: ebaec468eb5c7dd8689d6cc08769a68e7cfeb054
2 Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
3 AuthorDate: Wed Nov 27 19:23:08 2019 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 27 21:19:15 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebaec468
7
8 dev-python/wsgiproxy2-0.4.6: bump, add py38 and pypy{,3}
9
10 Copyright: Sony Interactive Entertainment Inc.
11 Package-Manager: Portage-2.3.79, Repoman-2.3.18
12 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
13
14 dev-python/wsgiproxy2/Manifest | 1 +
15 .../wsgiproxy2/files/wsgiproxy2-0.4.6-tests.patch | 19 +++++++++
16 dev-python/wsgiproxy2/wsgiproxy2-0.4.6.ebuild | 49 ++++++++++++++++++++++
17 3 files changed, 69 insertions(+)
18
19 diff --git a/dev-python/wsgiproxy2/Manifest b/dev-python/wsgiproxy2/Manifest
20 index 3aa79290d2e..2274a532485 100644
21 --- a/dev-python/wsgiproxy2/Manifest
22 +++ b/dev-python/wsgiproxy2/Manifest
23 @@ -1,2 +1,3 @@
24 DIST WSGIProxy2-0.4.2.zip 18817 BLAKE2B 90334926b726024c1a16b066d11cfe579ad80515861811766753aa772fa97e521466bce0a08c028a965e51ec40b977feb1f4b59aa6c023ca6a431deb63668ed5 SHA512 3dd750263485ceb644373d8ea9692c9a46126a1ed7cd640feba7d42b0fe618e290dcae2f76dc83be77de34211ac473f5a1496a8309e3fcc64982e9642af786fb
25 DIST WSGIProxy2-0.4.4.tar.gz 16475 BLAKE2B 8cc91e8364204a03fb8f80abb926e69112c2224b595c695d25e2fa54553fe9c82e3420f68b58f266d04450dd49a6dbf9257c190da8645dfeee976ae101fc708b SHA512 6ae9fca65fe80f52924f42b26b447631e8c278f517ababc23d26e5f8598d6d9b7975197ec74faf64f2e051824366ac14c5db5727a014a187c70a1b4604105b42
26 +DIST WSGIProxy2-0.4.6.tar.gz 16481 BLAKE2B c33dc34d430da795e8144e06e1d6f100cce7d0155295c2d3038567a048647a4f008dbc0156fd4234ce069b3f4ec01af0e42b174dd68c92c9cb3ff4e13be83f8a SHA512 c60d794c0c8b383bf1857ec325d6d0b4fce9c4aec4a06cbf9d7549b609633e491e137342b7bbaf4eec12462eabba63096328c8517b0685e241d1baecd5827cad
27
28 diff --git a/dev-python/wsgiproxy2/files/wsgiproxy2-0.4.6-tests.patch b/dev-python/wsgiproxy2/files/wsgiproxy2-0.4.6-tests.patch
29 new file mode 100644
30 index 00000000000..77515b85b02
31 --- /dev/null
32 +++ b/dev-python/wsgiproxy2/files/wsgiproxy2-0.4.6-tests.patch
33 @@ -0,0 +1,19 @@
34 +diff --git a/wsgiproxy/test_wsgiproxy.py b/wsgiproxy/test_wsgiproxy.py
35 +index 39355d9..7806d3b 100644
36 +--- a/wsgiproxy/test_wsgiproxy.py
37 ++++ b/wsgiproxy/test_wsgiproxy.py
38 +@@ -1,4 +1,6 @@
39 + # -*- coding: utf-8 -*-
40 ++import sys
41 ++import platform
42 + import unittest
43 + from wsgiproxy import proxies
44 + from webtest import TestApp
45 +@@ -86,6 +88,7 @@ class TestHttplib(unittest.TestCase):
46 + headers=[('Transfer-Encoding', 'chunked')])
47 + resp.mustcontain(no='chunked')
48 +
49 ++ @unittest.skipIf(sys.hexversion < 0x3000000 and 'pypy' not in platform.python_implementation().lower(), "broken on cpython2")
50 + def test_quoted_utf8_url(self):
51 + path = '/targets/NR2F1%C3%82-human/'
52 + resp = self.app.get(path)
53
54 diff --git a/dev-python/wsgiproxy2/wsgiproxy2-0.4.6.ebuild b/dev-python/wsgiproxy2/wsgiproxy2-0.4.6.ebuild
55 new file mode 100644
56 index 00000000000..257f448dd31
57 --- /dev/null
58 +++ b/dev-python/wsgiproxy2/wsgiproxy2-0.4.6.ebuild
59 @@ -0,0 +1,49 @@
60 +# Copyright 1999-2019 Gentoo Authors
61 +# Distributed under the terms of the GNU General Public License v2
62 +
63 +EAPI=7
64 +
65 +PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} pypy{,3} )
66 +
67 +inherit distutils-r1
68 +
69 +MY_PN="WSGIProxy2"
70 +
71 +DESCRIPTION="HTTP proxying tools for WSGI apps"
72 +HOMEPAGE="https://pypi.org/project/WSGIProxy2/"
73 +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
74 +
75 +LICENSE="MIT"
76 +SLOT="0"
77 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc64 ~s390 ~sh ~sparc ~x86"
78 +
79 +RDEPEND="
80 + dev-python/requests[${PYTHON_USEDEP}]
81 + dev-python/six[${PYTHON_USEDEP}]
82 + dev-python/urllib3[${PYTHON_USEDEP}]
83 + dev-python/webob[${PYTHON_USEDEP}]
84 +"
85 +BDEPEND="${RDEPEND}
86 + dev-python/setuptools[${PYTHON_USEDEP}]
87 + test? (
88 + >=dev-python/webtest-2.0.17[${PYTHON_USEDEP}]
89 + dev-python/socketpool[${PYTHON_USEDEP}]
90 + $(python_gen_cond_dep 'dev-python/restkit[${PYTHON_USEDEP}]' -2)
91 + )"
92 +# Tests needing restkit are skipped under py3
93 +# Testing also revealed the suite needs latest webtest
94 +
95 +S="${WORKDIR}/${MY_PN}-${PV}"
96 +
97 +PATCHES=(
98 + "${FILESDIR}/wsgiproxy2-0.4.6-tests.patch"
99 +)
100 +
101 +distutils_enable_sphinx docs
102 +distutils_enable_tests nose
103 +
104 +python_prepare_all() {
105 + sed -i '/with-coverage/ d' setup.cfg || die
106 +
107 + distutils-r1_python_prepare_all
108 +}