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 CBEAE138334 for ; Tue, 10 Jul 2018 21:15:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0EA08E0985; Tue, 10 Jul 2018 21:15:31 +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 CF9B3E0985 for ; Tue, 10 Jul 2018 21:15:30 +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 E52EF335CC0 for ; Tue, 10 Jul 2018 21:15:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B5AFE35E for ; Tue, 10 Jul 2018 21:15:26 +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: <1531257322.c74caf635cd0485b39e9be44d00a01c740789848.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/slimit/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/slimit/slimit-0.8.1-r1.ebuild dev-python/slimit/slimit-0.8.1.ebuild X-VCS-Directories: dev-python/slimit/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: c74caf635cd0485b39e9be44d00a01c740789848 X-VCS-Branch: master Date: Tue, 10 Jul 2018 21:15:26 +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-Archives-Salt: 39f04c98-61a1-41b9-be6c-da46b6a1911e X-Archives-Hash: 68edbb493145d129babca5acc8c038a5 commit: c74caf635cd0485b39e9be44d00a01c740789848 Author: PPed72 iol it> AuthorDate: Fri Jul 6 13:18:35 2018 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Jul 10 21:15:22 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c74caf63 dev-python/slimit: revbump to silence warning on module import Closes: https://bugs.gentoo.org/660510 Closes: https://github.com/gentoo/gentoo/pull/9068 Package-Manager: Portage-2.3.40, Repoman-2.3.9 .../slimit/{slimit-0.8.1.ebuild => slimit-0.8.1-r1.ebuild} | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/dev-python/slimit/slimit-0.8.1.ebuild b/dev-python/slimit/slimit-0.8.1-r1.ebuild similarity index 67% rename from dev-python/slimit/slimit-0.8.1.ebuild rename to dev-python/slimit/slimit-0.8.1-r1.ebuild index 6eb5f29a614..b4561d3f8de 100644 --- a/dev-python/slimit/slimit-0.8.1.ebuild +++ b/dev-python/slimit/slimit-0.8.1-r1.ebuild @@ -15,7 +15,7 @@ SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="test" -RDEPEND="dev-python/ply[${PYTHON_USEDEP}] +RDEPEND="dev-python/ply:=[${PYTHON_USEDEP}] dev-python/setuptools[${PYTHON_USEDEP}]" DEPEND="${RDEPEND} test? ( @@ -25,6 +25,17 @@ DEPEND="${RDEPEND} PATCHES=( "${FILESDIR}/${P}-fix-python3.patch" ) +python_compile() { + distutils-r1_python_compile + + rm "${BUILD_DIR}"/lib/slimit/*tab.py || die + + # Regenerate yacctab.py and lextab.py files to avoid warnings whenever + # the module is imported. See https://github.com/rspivak/slimit/issues/97 + # for details + "${EPYTHON}" -B -c 'import slimit;slimit.minify("")' || die +} + python_test() { esetup.py pytest --addopts "${BUILD_DIR}" || die "Testing failed with ${EPYTHON}" }