From ecdac123787b96ce6649f0f91da12ea6458cc2b1 Mon Sep 17 00:00:00 2001 From: Palica Date: Tue, 23 Jun 2020 22:35:08 +0200 Subject: Updating liguros repo --- dev-python/cheroot/Manifest | 2 + dev-python/cheroot/cheroot-8.2.1-r1.ebuild | 66 ++++++++++++++++++++++ dev-python/cheroot/cheroot-8.3.0-r1.ebuild | 54 ++++++++++++++++++ dev-python/cheroot/cheroot-8.3.0.ebuild | 42 ++++++++++++++ .../files/cheroot-8.3.0-test-unixsocket.patch | 57 +++++++++++++++++++ dev-python/cheroot/metadata.xml | 17 ++++++ 6 files changed, 238 insertions(+) create mode 100644 dev-python/cheroot/Manifest create mode 100644 dev-python/cheroot/cheroot-8.2.1-r1.ebuild create mode 100644 dev-python/cheroot/cheroot-8.3.0-r1.ebuild create mode 100644 dev-python/cheroot/cheroot-8.3.0.ebuild create mode 100644 dev-python/cheroot/files/cheroot-8.3.0-test-unixsocket.patch create mode 100644 dev-python/cheroot/metadata.xml (limited to 'dev-python/cheroot') diff --git a/dev-python/cheroot/Manifest b/dev-python/cheroot/Manifest new file mode 100644 index 000000000000..08a0ae288ad0 --- /dev/null +++ b/dev-python/cheroot/Manifest @@ -0,0 +1,2 @@ +DIST cheroot-8.2.1.tar.gz 89470 BLAKE2B 57515ecf6e047ea67599631a98c15307ea5f9929b398a8143bc157bfe71129b11a1f4bc841f586f98167ac4c6c9680d476bd167323e5828163b4bff9bf24c360 SHA512 3f6b55c6b2403569eedb1fe7b473d3a65ad5d06cb99a38370316db38b6138b1a6921c6b7d8ba64424c5b8c20c9c58ada33da7cb8ebb6f313610f63c1f364f862 +DIST cheroot-8.3.0.tar.gz 100557 BLAKE2B f5f2fd8a11a1a8660fc37030d501e93787be46dbb79cae89cb4f6915cbf3975453c0ced6ec3bc0ebfc7dc77d555f7d86ed01bd751df6b0227cac3b1b11a82ab5 SHA512 29ff39f043b1a08b9ef653a41761ac4b97de4141cf15c5394f95736d28f7fad4c501d666fe7ff61f40c55b087d022784c7fe09c995c901040b7f2a8ed16b7d14 diff --git a/dev-python/cheroot/cheroot-8.2.1-r1.ebuild b/dev-python/cheroot/cheroot-8.2.1-r1.ebuild new file mode 100644 index 000000000000..1cb11261efd9 --- /dev/null +++ b/dev-python/cheroot/cheroot-8.2.1-r1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7} pypy3 ) + +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 arm ~arm64 ~ia64 ~ppc ~ppc64 x86" +# Unit tests are temporarily disabled for this version, see below for +# what needs to be done. +#IUSE="test" +RESTRICT="test" + +RDEPEND=" + dev-python/jaraco-functools[${PYTHON_USEDEP}] + >=dev-python/more-itertools-2.6[${PYTHON_USEDEP}] + >=dev-python/six-1.11.0[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" + +# doc? ( +# >=dev-python/sphinx-1.8.2[${PYTHON_USEDEP}] +# >=dev-python/jaraco-packaging-3.2[${PYTHON_USEDEP}] +# >=dev-python/sphinx-tabs-1.1.0[${PYTHON_USEDEP}] +# dev-python/docutils[${PYTHON_USEDEP}] +# dev-python/alabaster[${PYTHON_USEDEP}] +# dev-python/python-dateutil[${PYTHON_USEDEP}] +# >=dev-python/sphinxcontrib-spelling-4.3.0[${PYTHON_USEDEP}] +# ) + + # Add the following for unit tests, some packages listed will need + # to be added and keyworded appropriately. +# test? ( +# >=dev-python/pytest-2.8[${PYTHON_USEDEP}] +# >=dev-python/pytest-mock-1.11.0[${PYTHON_USEDEP}] +# >=dev-python/pytest-sugar-0.9.1[${PYTHON_USEDEP}] +# >=dev-python/pytest-testmon-0.9.7[${PYTHON_USEDEP}] +# ~dev-python/pytest-watch-4.2.0[${PYTHON_USEDEP}] +# >=dev-python/pytest-xdist-1.2.28[${PYTHON_USEDEP}] +# ~dev-python/coverage-4.5.3[${PYTHON_USEDEP}] #undesired +# ~dev-python/codecov-2.0.15[${PYTHON_USEDEP}] #undesired +# ~dev-python/pytest-cov-2.7.1[${PYTHON_USEDEP}] #undesired +# >=dev-python/trustme-0.4.0[${PYTHON_USEDEP}] +# dev-python/pyopenssl[${PYTHON_USEDEP}] +# dev-python/requests-unixsocket[${PYTHON_USEDEP}] +# >=dev-python/jaraco-text-3.1[${PYTHON_USEDEP}] +# )" + +#python_test() { +# py.test -v || die "tests failed under ${EPYTHON}" +#} + +python_prepare_all() { + distutils-r1_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 +} 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..dd650231758b --- /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 ~arm64 ~ia64 ~ppc ~ppc64 ~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 new file mode 100644 index 000000000000..0785fecc4cf2 --- /dev/null +++ b/dev-python/cheroot/cheroot-8.3.0.ebuild @@ -0,0 +1,42 @@ +# 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 ~arm arm64 ~ia64 ~ppc ~ppc64 ~x86" +# Unit tests are temporarily disabled for this version, see below for +# what needs to be done. +#IUSE="test" +RESTRICT="test" + +RDEPEND=" + >=dev-python/six-1.11.0[${PYTHON_USEDEP}] + >=dev-python/more-itertools-2.6[${PYTHON_USEDEP}] + dev-python/jaraco-functools[${PYTHON_USEDEP}] +" +BDEPEND="${RDEPEND} + test? ( + >=dev-python/pytest-mock-1.11.0[${PYTHON_USEDEP}] + >=dev-python/pytest-xdist-1.2.28[${PYTHON_USEDEP}] + dev-python/pyopenssl[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_prepare_all() { + distutils-r1_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 +} 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" +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 new file mode 100644 index 000000000000..ff878563e6aa --- /dev/null +++ b/dev-python/cheroot/metadata.xml @@ -0,0 +1,17 @@ + + + + + zmedico@gentoo.org + Zac Medico + + + python@gentoo.org + Python + + + Cheroot + cherrypy/cheroot + + gentoo-staging + -- cgit v1.3.1