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 BC3291580B2 for ; Fri, 3 Sep 2021 08:17:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0FA04E0922; Fri, 3 Sep 2021 08:17:33 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 EAB80E0922 for ; Fri, 3 Sep 2021 08:17:32 +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 3278B342A3E for ; Fri, 3 Sep 2021 08:17:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B401B9E for ; Fri, 3 Sep 2021 08:17:29 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1630656992.c7f757049180f4206cc923eb9d8525074bce6436.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pypugjs/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pypugjs/pypugjs-5.9.9.ebuild X-VCS-Directories: dev-python/pypugjs/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: c7f757049180f4206cc923eb9d8525074bce6436 X-VCS-Branch: master Date: Fri, 3 Sep 2021 08:17:29 +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: a534b3c2-2443-4381-813b-569d48e42bc7 X-Archives-Hash: ae089551cff1380bcf9c08c5f107f841 commit: c7f757049180f4206cc923eb9d8525074bce6436 Author: Arthur Zamarin gentoo org> AuthorDate: Fri Sep 3 08:14:22 2021 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Fri Sep 3 08:16:32 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7f75704 dev-python/pypugjs: enable py3.10, enable tests, deps cleanup Closes: https://bugs.gentoo.org/798387 Signed-off-by: Arthur Zamarin gentoo.org> dev-python/pypugjs/pypugjs-5.9.9.ebuild | 34 ++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/dev-python/pypugjs/pypugjs-5.9.9.ebuild b/dev-python/pypugjs/pypugjs-5.9.9.ebuild index f5142600ec4..c8ca907dcf5 100644 --- a/dev-python/pypugjs/pypugjs-5.9.9.ebuild +++ b/dev-python/pypugjs/pypugjs-5.9.9.ebuild @@ -1,11 +1,10 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 -PYTHON_COMPAT=( python3_{7,8,9} ) -DISTUTILS_USE_SETUPTOOLS="rdepend" +EAPI=8 -inherit distutils-r1 +PYTHON_COMPAT=( python3_{8..10} ) +inherit distutils-r1 optfeature DESCRIPTION="Pug (Jade) syntax adapter for Django, Jinja2 and Mako templates" HOMEPAGE="https://github.com/kakulukia/pypugjs" @@ -15,9 +14,30 @@ LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~arm64" -IUSE="" RDEPEND=" dev-python/six[${PYTHON_USEDEP}] - dev-python/chardet + dev-python/chardet[${PYTHON_USEDEP}] " -DEPEND="${RDEPEND}" +BDEPEND=" + test? ( + dev-python/django[${PYTHON_USEDEP}] + dev-python/jinja[${PYTHON_USEDEP}] + dev-python/mako[${PYTHON_USEDEP}] + www-servers/tornado[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests nose + +src_prepare() { + # Remove pyramid backend as pyramid isn't packaged + rm -r pypugjs/ext/pyramid || die + distutils-r1_src_prepare +} + +pkg_postinst() { + optfeature "converting to Django output" dev-python/django + optfeature "converting to Jinja2 output" dev-python/jinja + optfeature "converting to Mako output" dev-python/mako + optfeature "converting to Tornado output" www-servers/tornado +}