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 5E698138334 for ; Tue, 2 Apr 2019 17:34:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 83C5CE0B14; Tue, 2 Apr 2019 17:34:48 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 5FF0AE0B14 for ; Tue, 2 Apr 2019 17:34:48 +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 AF6A9335D1A for ; Tue, 2 Apr 2019 17:34:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C03B8503 for ; Tue, 2 Apr 2019 17:34:44 +0000 (UTC) From: "Virgil Dupras" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Virgil Dupras" Message-ID: <1554225814.f216cea1c7798ed8c7ac126db24a62a37213677c.vdupras@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-sqlparse/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/python-sqlparse/python-sqlparse-0.3.0.ebuild X-VCS-Directories: dev-python/python-sqlparse/ X-VCS-Committer: vdupras X-VCS-Committer-Name: Virgil Dupras X-VCS-Revision: f216cea1c7798ed8c7ac126db24a62a37213677c X-VCS-Branch: master Date: Tue, 2 Apr 2019 17:34:44 +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: 97c60ad7-f7a8-4dc8-91ed-49a96542e57b X-Archives-Hash: ebc584d0395f8e5b4278af1e610e8f63 commit: f216cea1c7798ed8c7ac126db24a62a37213677c Author: Virgil Dupras gentoo org> AuthorDate: Tue Apr 2 17:23:34 2019 +0000 Commit: Virgil Dupras gentoo org> CommitDate: Tue Apr 2 17:23:34 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f216cea1 dev-python/python-sqlparse: add py37 compat and cleanup ebuild Most of the hoops that were present to build doc and run tests weren't actually necessary. Signed-off-by: Virgil Dupras gentoo.org> Package-Manager: Portage-2.3.62, Repoman-2.3.11 .../python-sqlparse/python-sqlparse-0.3.0.ebuild | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/dev-python/python-sqlparse/python-sqlparse-0.3.0.ebuild b/dev-python/python-sqlparse/python-sqlparse-0.3.0.ebuild index 8d9e4eac466..eca64775215 100644 --- a/dev-python/python-sqlparse/python-sqlparse-0.3.0.ebuild +++ b/dev-python/python-sqlparse/python-sqlparse-0.3.0.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) +PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy ) inherit distutils-r1 @@ -19,35 +19,19 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~a LICENSE="BSD-2" IUSE="doc test" -REQUIRED_USE="doc? ( || ( $(python_gen_useflags 'python2*') ) )" - DEPEND=" dev-python/setuptools[${PYTHON_USEDEP}] doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) - test? ( - dev-python/pytest[${PYTHON_USEDEP}] - dev-python/pytest-cov[${PYTHON_USEDEP}] - )" -# Required for running tests -DISTUTILS_IN_SOURCE_BUILD=1 + test? ( dev-python/pytest[${PYTHON_USEDEP}] )" S="${WORKDIR}"/${P#python-} -pkg_setup() { - use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python2*' ) -} - python_compile_all() { use doc && emake -C docs html } python_test() { - if python_is_python3; then - 2to3 -w --no-diffs -n tests/ sqlparse/ - py.test ./tests || die "testsuite failed ${EPYTHON}" - else - py.test tests || die "testsuite failed under ${EPYTHON}" - fi + pytest tests || die "testsuite failed under ${EPYTHON}" } python_install_all() {