From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5552913835A for ; Sun, 21 Jun 2020 10:16:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 490F9E0866; Sun, 21 Jun 2020 10:16:50 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2F5E3E0866 for ; Sun, 21 Jun 2020 10:16:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3BF3E34F7A1 for ; Sun, 21 Jun 2020 10:16:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 49CB629A for ; Sun, 21 Jun 2020 10:16:46 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1592734599.c59e651c250d37e814f6e1c69bab05b430061e8d.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cheroot/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/cheroot/cheroot-8.3.0-r1.ebuild X-VCS-Directories: dev-python/cheroot/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: c59e651c250d37e814f6e1c69bab05b430061e8d X-VCS-Branch: master Date: Sun, 21 Jun 2020 10:16:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 500cac10-13d9-4593-9b58-b79120a9e612 X-Archives-Hash: abb9039340a5653f033b5f2297d9db14 commit: c59e651c250d37e814f6e1c69bab05b430061e8d Author: Michał Górny gentoo org> AuthorDate: Sun Jun 21 09:57:20 2020 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Jun 21 10:16:39 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c59e651c dev-python/cheroot: Enable tests Signed-off-by: Michał Górny gentoo.org> dev-python/cheroot/cheroot-8.3.0-r1.ebuild | 52 ++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) 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 00000000000..b5bbaf91d37 --- /dev/null +++ b/dev-python/cheroot/cheroot-8.3.0-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) +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 + +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 + sed -e "s:'abstract', 'file':'file',:" \ + -i cheroot/test/test_server.py || die + + distutils-r1_python_prepare_all +}