Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-datafiles/
Date: Thu, 01 Nov 2018 23:12:49
Message-Id: 1541113938.3cdd55f461f86b922645a387bc4f0d3faa610bd8.gyakovlev@gentoo
1 commit: 3cdd55f461f86b922645a387bc4f0d3faa610bd8
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 1 23:09:39 2018 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 1 23:12:18 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cdd55f4
7
8 dev-python/pytest-datafiles: new package
9
10 pytest plugin to create a tmpdir containing
11 a preconfigured set of files and/or directories
12
13 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
14 Package-Manager: Portage-2.3.49, Repoman-2.3.11
15
16 dev-python/pytest-datafiles/Manifest | 1 +
17 dev-python/pytest-datafiles/metadata.xml | 12 +++++++++
18 .../pytest-datafiles/pytest-datafiles-2.0.ebuild | 29 ++++++++++++++++++++++
19 3 files changed, 42 insertions(+)
20
21 diff --git a/dev-python/pytest-datafiles/Manifest b/dev-python/pytest-datafiles/Manifest
22 new file mode 100644
23 index 00000000000..c8ef6ddde2c
24 --- /dev/null
25 +++ b/dev-python/pytest-datafiles/Manifest
26 @@ -0,0 +1 @@
27 +DIST pytest-datafiles-2.0.tar.gz 66507 BLAKE2B 7cd2721ae2e447798afe54f858d697321a1bf88f3c307df14186bc71b7a60bdc9fcb2e99a858186ad058c4663eae8b121a5ffa3427e2ab4f76f4b471dcc36234 SHA512 05bb93e973cde8b6030ff4d82f295bdb54a8d0bcec87f0347347baed80c26851a4ea6980621f43d73b7fb843740d58b32aca37de9607117b664ede8928aaa5b6
28
29 diff --git a/dev-python/pytest-datafiles/metadata.xml b/dev-python/pytest-datafiles/metadata.xml
30 new file mode 100644
31 index 00000000000..d72f80cdae9
32 --- /dev/null
33 +++ b/dev-python/pytest-datafiles/metadata.xml
34 @@ -0,0 +1,12 @@
35 +<?xml version='1.0' encoding='UTF-8'?>
36 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
37 +<pkgmetadata>
38 + <maintainer type="project">
39 + <email>gyakovlev@g.o</email>
40 + <name>Georgy Yakovlev</name>
41 + </maintainer>
42 + <upstream>
43 + <remote-id type="pypi">pytest-datafiles</remote-id>
44 + <remote-id type="github">omarkohl/pytest-datafiles</remote-id>
45 + </upstream>
46 +</pkgmetadata>
47
48 diff --git a/dev-python/pytest-datafiles/pytest-datafiles-2.0.ebuild b/dev-python/pytest-datafiles/pytest-datafiles-2.0.ebuild
49 new file mode 100644
50 index 00000000000..137aabf6e39
51 --- /dev/null
52 +++ b/dev-python/pytest-datafiles/pytest-datafiles-2.0.ebuild
53 @@ -0,0 +1,29 @@
54 +# Copyright 2018 Sony Interactive Entertainment Inc.
55 +# Distributed under the terms of the GNU General Public License v2
56 +
57 +EAPI=7
58 +
59 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
60 +
61 +inherit distutils-r1
62 +
63 +DESCRIPTION="pytest plugin to create a tmpdir containing a preconfigured set of files/dirs"
64 +HOMEPAGE="https://github.com/omarkohl/pytest-datafiles"
65 +SRC_URI="https://github.com/omarkohl/${PN}/archive/${PV}/${P}.tar.gz"
66 +
67 +LICENSE="MIT"
68 +SLOT="0"
69 +KEYWORDS="~amd64 ~x86"
70 +IUSE="test"
71 +
72 +BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
73 +
74 +RDEPEND="dev-python/py[${PYTHON_USEDEP}]
75 + >=dev-python/pytest-3.6.0[${PYTHON_USEDEP}]"
76 +
77 +DEPEND="${RDEPEND}"
78 +
79 +python_test() {
80 + distutils_install_for_testing
81 + PYTHONPATH="${TEST_DIR}"/lib pytest -v || die "Tests fail with ${EPYTHON}"
82 +}