Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-datadir/
Date: Tue, 15 Sep 2020 08:09:43
Message-Id: 1600157361.aec083f0f4b646993e3d159af9ebee2cd990f31e.juippis@gentoo
1 commit: aec083f0f4b646993e3d159af9ebee2cd990f31e
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
3 AuthorDate: Mon Sep 14 16:35:30 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 15 08:09:21 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aec083f0
7
8 dev-python/pytest-datadir: plugin for manipulating test dirs and files
9
10 Package-Manager: Portage-3.0.6, Repoman-3.0.1
11 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
12 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
13
14 dev-python/pytest-datadir/Manifest | 1 +
15 dev-python/pytest-datadir/metadata.xml | 12 ++++++++
16 .../pytest-datadir/pytest-datadir-1.3.1.ebuild | 33 ++++++++++++++++++++++
17 3 files changed, 46 insertions(+)
18
19 diff --git a/dev-python/pytest-datadir/Manifest b/dev-python/pytest-datadir/Manifest
20 new file mode 100644
21 index 00000000000..ae3460d06b1
22 --- /dev/null
23 +++ b/dev-python/pytest-datadir/Manifest
24 @@ -0,0 +1 @@
25 +DIST pytest-datadir-1.3.1.tar.gz 15230 BLAKE2B 72c5daaeb93315be55ae052d39a22eee4e64a1aaafa344ae64b527eebd137dc4667cee2f60af887551f00814d7ea4e5788097d0f59f7769335545c5083aef356 SHA512 2ab035ea4e6c4eaaead746a5fd3988feed31a314f73e18270faf4ae606521aa045f3d6c5e1301adcb87f8fd5b1ba5f3f1784f212ad778707ba46ad638d594f8c
26
27 diff --git a/dev-python/pytest-datadir/metadata.xml b/dev-python/pytest-datadir/metadata.xml
28 new file mode 100644
29 index 00000000000..d22e99d7357
30 --- /dev/null
31 +++ b/dev-python/pytest-datadir/metadata.xml
32 @@ -0,0 +1,12 @@
33 +<?xml version="1.0" encoding="UTF-8"?>
34 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
35 +<pkgmetadata>
36 + <maintainer type="person">
37 + <email>andrewammerlaan@××××××.net</email>
38 + <name>Andrew Ammerlaan</name>
39 + </maintainer>
40 + <maintainer type="project">
41 + <email>proxy-maint@g.o</email>
42 + <name>Proxy Maintainers</name>
43 + </maintainer>
44 +</pkgmetadata>
45
46 diff --git a/dev-python/pytest-datadir/pytest-datadir-1.3.1.ebuild b/dev-python/pytest-datadir/pytest-datadir-1.3.1.ebuild
47 new file mode 100644
48 index 00000000000..4410dfb8854
49 --- /dev/null
50 +++ b/dev-python/pytest-datadir/pytest-datadir-1.3.1.ebuild
51 @@ -0,0 +1,33 @@
52 +# Copyright 1999-2020 Gentoo Authors
53 +# Distributed under the terms of the GNU General Public License v2
54 +
55 +EAPI=7
56 +
57 +PYTHON_COMPAT=( python3_{7,8,9} )
58 +DISTUTILS_USE_SETUPTOOLS=rdepend
59 +
60 +inherit distutils-r1
61 +
62 +DESCRIPTION="Pytest plugin for manipulating test data directories and files"
63 +HOMEPAGE="https://github.com/gabrielcnr/pytest-datadir"
64 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
65 +
66 +LICENSE="MIT"
67 +SLOT="0"
68 +KEYWORDS="~amd64 ~x86"
69 +
70 +RDEPEND="dev-python/pytest[${PYTHON_USEDEP}]"
71 +
72 +distutils_enable_tests pytest
73 +
74 +python_test() {
75 + distutils_install_for_testing
76 + pytest -vv || die "Tests fail with ${EPYTHON}"
77 +}
78 +
79 +python_install_all() {
80 + distutils-r1_python_install
81 +
82 + # Do not install license to /usr
83 + rm "${D}/usr/LICENSE" || die
84 +}