diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-06-21 17:50:24 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-06-21 17:50:24 +0100 |
commit | feb0daf81d888e9160f9f94502de09b66f2a63fd (patch) | |
tree | b6e5c40ce2abef3da27ed50a023153f475e0ddef /dev-python/cheroot | |
parent | 9452a6e87b6c2c70513bc47a2470bf9f1168920e (diff) |
gentoo resync : 21.06.2020
Diffstat (limited to 'dev-python/cheroot')
-rw-r--r-- | dev-python/cheroot/Manifest | 8 | ||||
-rw-r--r-- | dev-python/cheroot/cheroot-8.2.1-r1.ebuild | 2 | ||||
-rw-r--r-- | dev-python/cheroot/cheroot-8.3.0-r1.ebuild | 54 | ||||
-rw-r--r-- | dev-python/cheroot/cheroot-8.3.0.ebuild | 2 | ||||
-rw-r--r-- | dev-python/cheroot/files/cheroot-8.3.0-test-unixsocket.patch | 57 | ||||
-rw-r--r-- | dev-python/cheroot/metadata.xml | 4 |
6 files changed, 122 insertions, 5 deletions
diff --git a/dev-python/cheroot/Manifest b/dev-python/cheroot/Manifest index 5e4536aae08e..78effb667b98 100644 --- a/dev-python/cheroot/Manifest +++ b/dev-python/cheroot/Manifest @@ -1,5 +1,7 @@ +AUX cheroot-8.3.0-test-unixsocket.patch 2069 BLAKE2B c948f064e6d8f7d9b650d3fdd00be71880f2df04c928093b7e0e61c6095c854aaa1bfe0ca85e1afd480102826ea6c81766374d2886b916f98ce23e18613a5225 SHA512 0e1f04fa069917eae4267408b6f791108805ce831612cd78acf53e25ed435e38cd542b3a8d0a75cb149e55fc35daf1c24d5b6637899303861bea2e810f6e3889 DIST cheroot-8.2.1.tar.gz 89470 BLAKE2B 57515ecf6e047ea67599631a98c15307ea5f9929b398a8143bc157bfe71129b11a1f4bc841f586f98167ac4c6c9680d476bd167323e5828163b4bff9bf24c360 SHA512 3f6b55c6b2403569eedb1fe7b473d3a65ad5d06cb99a38370316db38b6138b1a6921c6b7d8ba64424c5b8c20c9c58ada33da7cb8ebb6f313610f63c1f364f862 DIST cheroot-8.3.0.tar.gz 100557 BLAKE2B f5f2fd8a11a1a8660fc37030d501e93787be46dbb79cae89cb4f6915cbf3975453c0ced6ec3bc0ebfc7dc77d555f7d86ed01bd751df6b0227cac3b1b11a82ab5 SHA512 29ff39f043b1a08b9ef653a41761ac4b97de4141cf15c5394f95736d28f7fad4c501d666fe7ff61f40c55b087d022784c7fe09c995c901040b7f2a8ed16b7d14 -EBUILD cheroot-8.2.1-r1.ebuild 2250 BLAKE2B d7674ffe8cbdaee13044759f7397e634e44b914bb65d324ccccc2bbd01c2c6482eef8f9a7453ccf88f25d8f0d3849753d4425d682e0246bfb08b0539ba88c4c4 SHA512 d4c2e6d6eeb909b98e8cf143b2314bef8a6a0b3147ee5baa7d5b5a79e3202163438d82fd6acf65f0696bdf5233e85f6986f35a54783a615e0ad004f4d6336051 -EBUILD cheroot-8.3.0.ebuild 1185 BLAKE2B 33151eeb2f26465dc133586253544c068b55de29e1b6d0a93239cf2af223c333e62a8a329e03f0ae9fb56ae9651d66700c3356b05f8617b040ac71a2d336902e SHA512 8f21b427089443b95326c28664a43a94bd2a4675bf94750c965bf08385fbb0cf6377cb68baf86f8b106594203d705e5461a8d288602b10bc74dd036702c1ac24 -MISC metadata.xml 370 BLAKE2B df7ec3eb606f1557e048245eca81402f40f9cd9bc4ec8112ecb0085f65530d9a66b952d56f826b2b97733018ec4b4d31c16ac26bebd3a40f3424421255fcb770 SHA512 22ff00c4677bd898e9d88f2bdebabed6a145a9dd33d6276e997c0435c64fc9dfd396a35a88c6facc8a3844187f0b598bfe8606637ea88420a6c33e1ea9765cbf +EBUILD cheroot-8.2.1-r1.ebuild 2249 BLAKE2B 75bb493262711a58088d4539c27157dd37638e521e89c7e2f2675421d38346a62332dc9b71c183d56a7560f491636f05c894d01aed0a8b10c63cd5d08e5ab006 SHA512 8ca74fe3a2a5160b228cd7009550a8d9f59dc6c85c3614167716c4d1188aeece0c774ab4d711e76615476ab5315f2b4c9133e6d4b1a2df967e120d05717a99c6 +EBUILD cheroot-8.3.0-r1.ebuild 1384 BLAKE2B b65c177ddfb5568c3a20f55817961e5b19ff3b3794de9b9b492da1c7c105687aa234e4200e6946434e25e5fdabdd877381f7ae364393f3c31e037231b4129c18 SHA512 0fe2578a9a4528b8c81824287126f5fd063186384db77f36efc03bf894a70e761e30243981fced218fb2d25bae410a0369a818381c832def7715f6dd8005fdae +EBUILD cheroot-8.3.0.ebuild 1184 BLAKE2B 0e4475484fa415fd60f57fcfecd7de829dc1a8e088f506c14e742fbd4e86b2a62f80161d1bdce869aff4c82ab2842943765c2d462a69b4be7049059561942b7a SHA512 da40357479d4ae2332d8f59cfbd0ab31ad5b281d81ce87906152dbb5ec4f3f6a5bc807c1276e8473112ff95720beba69cdbb4f2306a85fea4490663dbf366c7e +MISC metadata.xml 471 BLAKE2B e623692550af72f63a0df84767bfadcf9ee16beafc4f467cc6bd83d7a0deca6a66d73f9041e3e37a967a4d7451eebe0d9f7974e43ce90b2dac24134ed7aa6496 SHA512 19c39b453a668408550b250a96af25ea12c8a46285070aa4a1b1d7c3e6b4ee36ac287ead410e6b798d4fa607543d58c5cc8bec0f00992206d2a231de983b5976 diff --git a/dev-python/cheroot/cheroot-8.2.1-r1.ebuild b/dev-python/cheroot/cheroot-8.2.1-r1.ebuild index 903b9814c555..1cb11261efd9 100644 --- a/dev-python/cheroot/cheroot-8.2.1-r1.ebuild +++ b/dev-python/cheroot/cheroot-8.2.1-r1.ebuild @@ -12,7 +12,7 @@ SRC_URI="mirror://pypi/C/${PN/c/C}/${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="amd64 arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86" +KEYWORDS="amd64 arm ~arm64 ~ia64 ~ppc ~ppc64 x86" # Unit tests are temporarily disabled for this version, see below for # what needs to be done. #IUSE="test" diff --git a/dev-python/cheroot/cheroot-8.3.0-r1.ebuild b/dev-python/cheroot/cheroot-8.3.0-r1.ebuild new file mode 100644 index 000000000000..452444ad649b --- /dev/null +++ b/dev-python/cheroot/cheroot-8.3.0-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6..9} ) +DISTUTILS_USE_SETUPTOOLS=rdepend +inherit distutils-r1 + +DESCRIPTION="Cheroot is the high-performance, pure-Python HTTP server used by CherryPy." +HOMEPAGE="https://cherrypy.org/ https://pypi.org/project/Cheroot/ https://github.com/cherrypy/cheroot" +SRC_URI="mirror://pypi/C/${PN/c/C}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/six-1.11.0[${PYTHON_USEDEP}] + >=dev-python/more-itertools-2.6[${PYTHON_USEDEP}] + dev-python/jaraco-functools[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + ${RDEPEND} + dev-python/jaraco-text[${PYTHON_USEDEP}] + >=dev-python/pytest-mock-1.11.0[${PYTHON_USEDEP}] + dev-python/pyopenssl[${PYTHON_USEDEP}] + dev-python/requests-unixsocket[${PYTHON_USEDEP}] + dev-python/trustme[${PYTHON_USEDEP}] + dev-python/urllib3[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}"/cheroot-8.3.0-test-unixsocket.patch +) + +python_prepare_all() { + sed -e "s/use_scm_version=True/version='${PV}'/" -i setup.py || die + sed -e '/setuptools_scm/d' -i setup.cfg || die + sed -e '/--cov/d' \ + -e '/--testmon/d' \ + -e '/--numproc/d' \ + -i pytest.ini || die + + # broken + sed -e '/False.*localhost/d' \ + -i cheroot/test/test_ssl.py || die + + distutils-r1_python_prepare_all +} diff --git a/dev-python/cheroot/cheroot-8.3.0.ebuild b/dev-python/cheroot/cheroot-8.3.0.ebuild index 1c643f903907..5a42020fdd3e 100644 --- a/dev-python/cheroot/cheroot-8.3.0.ebuild +++ b/dev-python/cheroot/cheroot-8.3.0.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{6,7,8} ) +PYTHON_COMPAT=( python3_{6..9} ) DISTUTILS_USE_SETUPTOOLS=rdepend inherit distutils-r1 diff --git a/dev-python/cheroot/files/cheroot-8.3.0-test-unixsocket.patch b/dev-python/cheroot/files/cheroot-8.3.0-test-unixsocket.patch new file mode 100644 index 000000000000..311489565301 --- /dev/null +++ b/dev-python/cheroot/files/cheroot-8.3.0-test-unixsocket.patch @@ -0,0 +1,57 @@ +From 6ead1efb37edfade4dda60e48d1af8fe89be3cdc Mon Sep 17 00:00:00 2001 +From: "Jason R. Coombs" <jaraco@jaraco.com> +Date: Sun, 12 Apr 2020 16:28:00 -0400 +Subject: [PATCH] Remove client from peercreds tests. Fixes #276. + +--- + cheroot/test/test_server.py | 13 ++++++------- + 1 file changed, 6 insertions(+), 7 deletions(-) + +diff --git a/cheroot/test/test_server.py b/cheroot/test/test_server.py +index 80728d66..6c4b53ee 100644 +--- a/cheroot/test/test_server.py ++++ b/cheroot/test/test_server.py +@@ -23,7 +23,6 @@ + ANY_INTERFACE_IPV4, + ANY_INTERFACE_IPV6, + EPHEMERAL_PORT, +- get_server_client, + ) + + +@@ -171,19 +170,19 @@ def send_payload(self, payload): + + + @pytest.fixture +-def peercreds_enabled_server_and_client(http_server, unix_sock_file): ++def peercreds_enabled_server(http_server, unix_sock_file): + """Construct a test server with ``peercreds_enabled``.""" + httpserver = http_server.send(unix_sock_file) + httpserver.gateway = _TestGateway + httpserver.peercreds_enabled = True +- return httpserver, get_server_client(httpserver) ++ return httpserver + + + @unix_only_sock_test + @non_macos_sock_test +-def test_peercreds_unix_sock(peercreds_enabled_server_and_client): ++def test_peercreds_unix_sock(peercreds_enabled_server): + """Check that ``PEERCRED`` lookup works when enabled.""" +- httpserver, testclient = peercreds_enabled_server_and_client ++ httpserver = peercreds_enabled_server + bind_addr = httpserver.bind_addr + + if isinstance(bind_addr, six.binary_type): +@@ -212,9 +211,9 @@ def test_peercreds_unix_sock(peercreds_enabled_server_and_client): + ) + @unix_only_sock_test + @non_macos_sock_test +-def test_peercreds_unix_sock_with_lookup(peercreds_enabled_server_and_client): ++def test_peercreds_unix_sock_with_lookup(peercreds_enabled_server): + """Check that ``PEERCRED`` resolution works when enabled.""" +- httpserver, testclient = peercreds_enabled_server_and_client ++ httpserver = peercreds_enabled_server + httpserver.peercreds_resolve_enabled = True + + bind_addr = httpserver.bind_addr diff --git a/dev-python/cheroot/metadata.xml b/dev-python/cheroot/metadata.xml index c8449665a6e4..20224dac30c7 100644 --- a/dev-python/cheroot/metadata.xml +++ b/dev-python/cheroot/metadata.xml @@ -5,6 +5,10 @@ <email>zmedico@gentoo.org</email> <name>Zac Medico</name> </maintainer> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> <upstream> <remote-id type="pypi">Cheroot</remote-id> <remote-id type="github">cherrypy/cheroot</remote-id> |