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 5F29E138334 for ; Sun, 7 Jul 2019 13:30:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7730EE087A; Sun, 7 Jul 2019 13:30:24 +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 5E5F0E087A for ; Sun, 7 Jul 2019 13:30:24 +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 C29D7346E0B for ; Sun, 7 Jul 2019 13:30:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8570C326 for ; Sun, 7 Jul 2019 13:30:20 +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: <1562506210.d3e1ccd13c9e964f1393446b4e0dc0a68ef433e6.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pgspecial/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pgspecial/pgspecial-1.11.5.ebuild X-VCS-Directories: dev-python/pgspecial/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: d3e1ccd13c9e964f1393446b4e0dc0a68ef433e6 X-VCS-Branch: master Date: Sun, 7 Jul 2019 13:30:20 +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: 0313c398-cdf2-487c-b3cb-9bef586d283f X-Archives-Hash: 35421e6fad5167345d401db58e745f16 commit: d3e1ccd13c9e964f1393446b4e0dc0a68ef433e6 Author: Michał Górny gentoo org> AuthorDate: Sun Jul 7 13:28:12 2019 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Jul 7 13:30:10 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3e1ccd1 dev-python/pgspecial: Add tests, fix deps Signed-off-by: Michał Górny gentoo.org> dev-python/pgspecial/pgspecial-1.11.5.ebuild | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/dev-python/pgspecial/pgspecial-1.11.5.ebuild b/dev-python/pgspecial/pgspecial-1.11.5.ebuild index edaec9de059..4cd33f7650e 100644 --- a/dev-python/pgspecial/pgspecial-1.11.5.ebuild +++ b/dev-python/pgspecial/pgspecial-1.11.5.ebuild @@ -13,9 +13,22 @@ SRC_URI="https://github.com/dbcli/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="BSD MIT" SLOT="0" KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" RDEPEND=" >=dev-python/click-4.1[${PYTHON_USEDEP}] + >=dev-python/psycopg-2.7.4[${PYTHON_USEDEP}] >=dev-python/python-sqlparse-0.1.19[${PYTHON_USEDEP}] - dev-python/setuptools[${PYTHON_USEDEP}] " +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + dev-python/pytest[${PYTHON_USEDEP}] + )" + +python_test() { + # tests/test_special.py require local postgres instance + pytest -vv tests/test_internal.py || die +}