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 8112213835A for ; Mon, 18 May 2020 15:41:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 899B1E089B; Mon, 18 May 2020 15:41:18 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 6E8DCE0897 for ; Mon, 18 May 2020 15:41:18 +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 3E50F34F048 for ; Mon, 18 May 2020 15:41:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E86F7258 for ; Mon, 18 May 2020 15:41:13 +0000 (UTC) From: "Alessandro Barbieri" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alessandro Barbieri" Message-ID: <1589816469.5a165a8ebd3ca9d559e810fab1a91f044c6cf698.Alessandro-Barbieri@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-cython/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/pytest-cython/pytest-cython-0.1.0-r2.ebuild X-VCS-Directories: dev-python/pytest-cython/ X-VCS-Committer: Alessandro-Barbieri X-VCS-Committer-Name: Alessandro Barbieri X-VCS-Revision: 5a165a8ebd3ca9d559e810fab1a91f044c6cf698 X-VCS-Branch: dev Date: Mon, 18 May 2020 15:41:13 +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: b8b61c67-aeaf-4b0b-a179-8b9afec2ad2a X-Archives-Hash: 57863a540991e7776fa05e4143a23574 commit: 5a165a8ebd3ca9d559e810fab1a91f044c6cf698 Author: Alessandro Barbieri gmail com> AuthorDate: Mon May 18 15:40:30 2020 +0000 Commit: Alessandro Barbieri gmail com> CommitDate: Mon May 18 15:41:09 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5a165a8e dev-python/pytest-cython: pypy3 and python3.8 also restrict tests Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Alessandro Barbieri gmail.com> .../pytest-cython/pytest-cython-0.1.0-r2.ebuild | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/dev-python/pytest-cython/pytest-cython-0.1.0-r2.ebuild b/dev-python/pytest-cython/pytest-cython-0.1.0-r2.ebuild new file mode 100644 index 0000000..01c69d2 --- /dev/null +++ b/dev-python/pytest-cython/pytest-cython-0.1.0-r2.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +PYTHON_COMPAT=( pypy3 python3_{6,7,8} ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +DESCRIPTION="Plugin for testing Cython extension modules" +HOMEPAGE="https://github.com/lgpage/pytest-cython" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +SLOT="0" +LICENSE="MIT" +KEYWORDS="~amd64" +IUSE="test" + +#IDK how to run this: python tests/example-project/setup.py clean build_ext --inplace --use-cython +RESTRICT="test" +RDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] +" +DEPEND=" + ${RDEPEND} +" + +src_prepare() { + sed -i 's|\[pytest\]|\[tool:pytest\]|' setup.cfg || die + default +} + +distutils_enable_sphinx docs dev-python/sphinx-py3doc-enhanced-theme