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 B1F50138350 for ; Thu, 26 Mar 2020 23:14:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D5A4BE0C22; Thu, 26 Mar 2020 23:14:10 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 A83CCE0C22 for ; Thu, 26 Mar 2020 23:14:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 6807034F9F3 for ; Thu, 26 Mar 2020 23:14:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C6E00199 for ; Thu, 26 Mar 2020 23:14:07 +0000 (UTC) From: "Patrick McLean" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrick McLean" Message-ID: <1585264438.5f29e89b0416a2eb5f8abab4e6ba6a66d2f87e8b.chutzpah@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cherrypy/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/cherrypy/cherrypy-17.4.2.ebuild X-VCS-Directories: dev-python/cherrypy/ X-VCS-Committer: chutzpah X-VCS-Committer-Name: Patrick McLean X-VCS-Revision: 5f29e89b0416a2eb5f8abab4e6ba6a66d2f87e8b X-VCS-Branch: master Date: Thu, 26 Mar 2020 23:14:07 +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: 2269308c-4702-4cc6-83a9-36627435dc0d X-Archives-Hash: cf5d9e668b9741051661ca9e6cd657e1 commit: 5f29e89b0416a2eb5f8abab4e6ba6a66d2f87e8b Author: Patrick McLean sony com> AuthorDate: Thu Mar 26 23:13:23 2020 +0000 Commit: Patrick McLean gentoo org> CommitDate: Thu Mar 26 23:13:58 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f29e89b dev-python/cherrypy-17.4.2: Version bump to 17.4.2, add py38 Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-2.3.96, Repoman-2.3.21 Signed-off-by: Patrick McLean gentoo.org> dev-python/cherrypy/cherrypy-17.4.2.ebuild | 61 ++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/dev-python/cherrypy/cherrypy-17.4.2.ebuild b/dev-python/cherrypy/cherrypy-17.4.2.ebuild new file mode 100644 index 00000000000..26d9b18b652 --- /dev/null +++ b/dev-python/cherrypy/cherrypy-17.4.2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} pypy3 ) +DISTUTILS_USE_SETUPTOOLS=rdepend +inherit distutils-r1 + +MY_P="CherryPy-${PV}" + +DESCRIPTION="CherryPy is a pythonic, object-oriented HTTP framework" +HOMEPAGE="https://www.cherrypy.org https://pypi.org/project/CherryPy/" +SRC_URI="mirror://pypi/C/CherryPy/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="ssl test" + +# tests fail hard with no error, i have no idea how to debug +RESTRICT="test" + +RDEPEND=" + >=dev-python/six-1.11.0[${PYTHON_USEDEP}] + >=dev-python/cheroot-8.2.1[${PYTHON_USEDEP}] + >=dev-python/portend-2.1.1[${PYTHON_USEDEP}] + dev-python/more-itertools[${PYTHON_USEDEP}] + dev-python/zc-lockfile[${PYTHON_USEDEP}] + dev-python/jaraco-collections[${PYTHON_USEDEP}] + dev-python/contextlib2[${PYTHON_USEDEP}] + ssl? ( dev-python/pyopenssl[${PYTHON_USEDEP}] )" +BDEPEND="${RDEPEND} + dev-python/setuptools_scm[${PYTHON_USEDEP}]" +# test? ( +# dev-python/routes[${PYTHON_USEDEP}] +# dev-python/simplejson[${PYTHON_USEDEP}] +# dev-python/objgraph[${PYTHON_USEDEP}] +# dev-python/backports-unittest-mock[${PYTHON_USEDEP}] +# dev-python/path-py[${PYTHON_USEDEP}] +# dev-python/requests-toolbelt[${PYTHON_USEDEP}] +# ) + +distutils_enable_tests pytest + +python_prepare_all() { + # UnicodeEncodeError: 'ascii' codec can't encode character u'\u2603' in position 0: ordinal not in range(128) + sed -e 's|@pytest.mark.xfail(py27_on_windows|@pytest.mark.xfail(sys.version_info < (3,)|' \ + -i cherrypy/test/test_static.py || die + + sed -r -e '/(pytest-sugar|pytest-cov)/ d' \ + -i setup.py || die + + sed -r -e 's:--cov-report[[:space:]]+[[:graph:]]+::' \ + -e 's:--cov[[:graph:]]+::' \ + -e 's:--doctest[[:graph:]]+::' \ + -i pytest.ini || die + + distutils-r1_python_prepare_all +}