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 04427138334 for ; Thu, 1 Nov 2018 23:12:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AD9FFE0844; Thu, 1 Nov 2018 23:12:47 +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 70CE2E0844 for ; Thu, 1 Nov 2018 23:12:47 +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 56479335C47 for ; Thu, 1 Nov 2018 23:12:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C70D044A for ; Thu, 1 Nov 2018 23:12:42 +0000 (UTC) From: "Georgy Yakovlev" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Georgy Yakovlev" Message-ID: <1541113938.3cdd55f461f86b922645a387bc4f0d3faa610bd8.gyakovlev@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-datafiles/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pytest-datafiles/Manifest dev-python/pytest-datafiles/metadata.xml dev-python/pytest-datafiles/pytest-datafiles-2.0.ebuild X-VCS-Directories: dev-python/pytest-datafiles/ X-VCS-Committer: gyakovlev X-VCS-Committer-Name: Georgy Yakovlev X-VCS-Revision: 3cdd55f461f86b922645a387bc4f0d3faa610bd8 X-VCS-Branch: master Date: Thu, 1 Nov 2018 23:12:42 +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: 0df070c5-bb23-4458-be7b-02dfe010a51a X-Archives-Hash: 571b1cb144817ea755dc098e965be511 commit: 3cdd55f461f86b922645a387bc4f0d3faa610bd8 Author: Georgy Yakovlev gentoo org> AuthorDate: Thu Nov 1 23:09:39 2018 +0000 Commit: Georgy Yakovlev gentoo org> CommitDate: Thu Nov 1 23:12:18 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cdd55f4 dev-python/pytest-datafiles: new package pytest plugin to create a tmpdir containing a preconfigured set of files and/or directories Signed-off-by: Georgy Yakovlev gentoo.org> Package-Manager: Portage-2.3.49, Repoman-2.3.11 dev-python/pytest-datafiles/Manifest | 1 + dev-python/pytest-datafiles/metadata.xml | 12 +++++++++ .../pytest-datafiles/pytest-datafiles-2.0.ebuild | 29 ++++++++++++++++++++++ 3 files changed, 42 insertions(+) diff --git a/dev-python/pytest-datafiles/Manifest b/dev-python/pytest-datafiles/Manifest new file mode 100644 index 00000000000..c8ef6ddde2c --- /dev/null +++ b/dev-python/pytest-datafiles/Manifest @@ -0,0 +1 @@ +DIST pytest-datafiles-2.0.tar.gz 66507 BLAKE2B 7cd2721ae2e447798afe54f858d697321a1bf88f3c307df14186bc71b7a60bdc9fcb2e99a858186ad058c4663eae8b121a5ffa3427e2ab4f76f4b471dcc36234 SHA512 05bb93e973cde8b6030ff4d82f295bdb54a8d0bcec87f0347347baed80c26851a4ea6980621f43d73b7fb843740d58b32aca37de9607117b664ede8928aaa5b6 diff --git a/dev-python/pytest-datafiles/metadata.xml b/dev-python/pytest-datafiles/metadata.xml new file mode 100644 index 00000000000..d72f80cdae9 --- /dev/null +++ b/dev-python/pytest-datafiles/metadata.xml @@ -0,0 +1,12 @@ + + + + + gyakovlev@gentoo.org + Georgy Yakovlev + + + pytest-datafiles + omarkohl/pytest-datafiles + + diff --git a/dev-python/pytest-datafiles/pytest-datafiles-2.0.ebuild b/dev-python/pytest-datafiles/pytest-datafiles-2.0.ebuild new file mode 100644 index 00000000000..137aabf6e39 --- /dev/null +++ b/dev-python/pytest-datafiles/pytest-datafiles-2.0.ebuild @@ -0,0 +1,29 @@ +# Copyright 2018 Sony Interactive Entertainment Inc. +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit distutils-r1 + +DESCRIPTION="pytest plugin to create a tmpdir containing a preconfigured set of files/dirs" +HOMEPAGE="https://github.com/omarkohl/pytest-datafiles" +SRC_URI="https://github.com/omarkohl/${PN}/archive/${PV}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" + +RDEPEND="dev-python/py[${PYTHON_USEDEP}] + >=dev-python/pytest-3.6.0[${PYTHON_USEDEP}]" + +DEPEND="${RDEPEND}" + +python_test() { + distutils_install_for_testing + PYTHONPATH="${TEST_DIR}"/lib pytest -v || die "Tests fail with ${EPYTHON}" +}