diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-12-15 18:09:03 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-12-15 18:09:03 +0000 |
commit | 7bc9c63c9da678a7e6fceb095d56c634afd22c56 (patch) | |
tree | 4a67d50a439e9af63947e5f8b6ba3719af98b6c9 /dev-python/wsgiproxy2 | |
parent | b284a3168fa91a038925d2ecf5e4791011ea5e7d (diff) |
gentoo resync : 15.12.2019
Diffstat (limited to 'dev-python/wsgiproxy2')
-rw-r--r-- | dev-python/wsgiproxy2/Manifest | 3 | ||||
-rw-r--r-- | dev-python/wsgiproxy2/files/wsgiproxy2-0.4.6-tests.patch | 19 | ||||
-rw-r--r-- | dev-python/wsgiproxy2/wsgiproxy2-0.4.6.ebuild | 49 |
3 files changed, 71 insertions, 0 deletions
diff --git a/dev-python/wsgiproxy2/Manifest b/dev-python/wsgiproxy2/Manifest index 8b743560dfd5..66bc665eed40 100644 --- a/dev-python/wsgiproxy2/Manifest +++ b/dev-python/wsgiproxy2/Manifest @@ -1,5 +1,8 @@ +AUX wsgiproxy2-0.4.6-tests.patch 736 BLAKE2B 4680b256f190d1bde89b5e8735cdd03a68061a4c68162033da329068838ea262f231a07aa6a944f9a9889c415af0c65eb3c885d9b69d9ee3fa8878003e886545 SHA512 960b5be5e67cc77d86c37ea5f6966ca838455cea74d79288e245acb47c9b374a285a3135c39330b2e8928760fd244e8addad8e4f707b7cbee1dc4801562a50f5 DIST WSGIProxy2-0.4.2.zip 18817 BLAKE2B 90334926b726024c1a16b066d11cfe579ad80515861811766753aa772fa97e521466bce0a08c028a965e51ec40b977feb1f4b59aa6c023ca6a431deb63668ed5 SHA512 3dd750263485ceb644373d8ea9692c9a46126a1ed7cd640feba7d42b0fe618e290dcae2f76dc83be77de34211ac473f5a1496a8309e3fcc64982e9642af786fb DIST WSGIProxy2-0.4.4.tar.gz 16475 BLAKE2B 8cc91e8364204a03fb8f80abb926e69112c2224b595c695d25e2fa54553fe9c82e3420f68b58f266d04450dd49a6dbf9257c190da8645dfeee976ae101fc708b SHA512 6ae9fca65fe80f52924f42b26b447631e8c278f517ababc23d26e5f8598d6d9b7975197ec74faf64f2e051824366ac14c5db5727a014a187c70a1b4604105b42 +DIST WSGIProxy2-0.4.6.tar.gz 16481 BLAKE2B c33dc34d430da795e8144e06e1d6f100cce7d0155295c2d3038567a048647a4f008dbc0156fd4234ce069b3f4ec01af0e42b174dd68c92c9cb3ff4e13be83f8a SHA512 c60d794c0c8b383bf1857ec325d6d0b4fce9c4aec4a06cbf9d7549b609633e491e137342b7bbaf4eec12462eabba63096328c8517b0685e241d1baecd5827cad EBUILD wsgiproxy2-0.4.2.ebuild 1293 BLAKE2B 586a922155ebd09cda769b034782a566fc30ecde3b1843cbd3fe79a83b8ba2301cdc26873ea81de328c44da0e24e3ea007b13698f7d0d4ebd83f73632fa0109a SHA512 3c9bb2405c765a29d2c37ea45c0baa2769eefc2e1dc1c121cc2e43b2701c5d54dc903d0ee5b4c30961fceb916f9b368c51d7b0bdad8d15ca0b85be19d0ab05d5 EBUILD wsgiproxy2-0.4.4-r1.ebuild 1311 BLAKE2B c5396a4a1329201da256cd167959aa440cd7acc8370eb3415b53aaf06318bdbbf37ad62097d746e1c89491846e9ca7b3767946c3b4df989e177aeb7489223f02 SHA512 aa37ca4f2508f90afee59d5b4a46355db9fcb30e214426bf6b024eef651e19b11a667dd86436365fc3d28c91be3ed07c1d5d590c6bdb9e41793b522941986a54 +EBUILD wsgiproxy2-0.4.6.ebuild 1220 BLAKE2B 1bd7650669c9aba7cd64c7afba330c5c5667cc28abb44a7522a503b7ff758cc787bdb3ba93cc223565b6f04e8bbc23e42269e8331c5a04d6d0341d57fd3b502f SHA512 a2460a08099d024218da049717cc8122f4537861bda094609cdbe77c63b467f5e0f98c58ee066db5fc6eee9dee96663c76c171c14cf99ebd1c1c352f8b338447 MISC metadata.xml 313 BLAKE2B 45cd2545e5d5b03206c8c3f2db35c0a95ce08f6c29503c19deee7ebc90f578a8a68bc9ca98a504661d09866ccc0217067643efb84e99cda9d1678231ce01a79e SHA512 147915d551dc542cb68d4cab97a3b187ef698dc450cb730c80eec846e4d4debc954b68d04f76e1df835fcc4d179d705ee95379b38c7d39d0f1ffce809941a7c4 diff --git a/dev-python/wsgiproxy2/files/wsgiproxy2-0.4.6-tests.patch b/dev-python/wsgiproxy2/files/wsgiproxy2-0.4.6-tests.patch new file mode 100644 index 000000000000..77515b85b027 --- /dev/null +++ b/dev-python/wsgiproxy2/files/wsgiproxy2-0.4.6-tests.patch @@ -0,0 +1,19 @@ +diff --git a/wsgiproxy/test_wsgiproxy.py b/wsgiproxy/test_wsgiproxy.py +index 39355d9..7806d3b 100644 +--- a/wsgiproxy/test_wsgiproxy.py ++++ b/wsgiproxy/test_wsgiproxy.py +@@ -1,4 +1,6 @@ + # -*- coding: utf-8 -*- ++import sys ++import platform + import unittest + from wsgiproxy import proxies + from webtest import TestApp +@@ -86,6 +88,7 @@ class TestHttplib(unittest.TestCase): + headers=[('Transfer-Encoding', 'chunked')]) + resp.mustcontain(no='chunked') + ++ @unittest.skipIf(sys.hexversion < 0x3000000 and 'pypy' not in platform.python_implementation().lower(), "broken on cpython2") + def test_quoted_utf8_url(self): + path = '/targets/NR2F1%C3%82-human/' + resp = self.app.get(path) diff --git a/dev-python/wsgiproxy2/wsgiproxy2-0.4.6.ebuild b/dev-python/wsgiproxy2/wsgiproxy2-0.4.6.ebuild new file mode 100644 index 000000000000..257f448dd31d --- /dev/null +++ b/dev-python/wsgiproxy2/wsgiproxy2-0.4.6.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} pypy{,3} ) + +inherit distutils-r1 + +MY_PN="WSGIProxy2" + +DESCRIPTION="HTTP proxying tools for WSGI apps" +HOMEPAGE="https://pypi.org/project/WSGIProxy2/" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc64 ~s390 ~sh ~sparc ~x86" + +RDEPEND=" + dev-python/requests[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + dev-python/urllib3[${PYTHON_USEDEP}] + dev-python/webob[${PYTHON_USEDEP}] +" +BDEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + >=dev-python/webtest-2.0.17[${PYTHON_USEDEP}] + dev-python/socketpool[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/restkit[${PYTHON_USEDEP}]' -2) + )" +# Tests needing restkit are skipped under py3 +# Testing also revealed the suite needs latest webtest + +S="${WORKDIR}/${MY_PN}-${PV}" + +PATCHES=( + "${FILESDIR}/wsgiproxy2-0.4.6-tests.patch" +) + +distutils_enable_sphinx docs +distutils_enable_tests nose + +python_prepare_all() { + sed -i '/with-coverage/ d' setup.cfg || die + + distutils-r1_python_prepare_all +} |