Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-describe/
Date: Sat, 04 Aug 2018 20:21:56
Message-Id: 1533414059.1af688711dbcb708c8bfb3efee2787a4ba82c9d6.whissi@gentoo
1 commit: 1af688711dbcb708c8bfb3efee2787a4ba82c9d6
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 4 20:20:59 2018 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 4 20:20:59 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1af68871
7
8 dev-python/pytest-describe: new package
9
10 Needed for sys-auth/ssh-ldap-pubkey package (not yet in repository!).
11
12 Michał Górny granted permission to set Python project as maintainer.
13
14 Package-Manager: Portage-2.3.44, Repoman-2.3.10
15
16 dev-python/pytest-describe/Manifest | 1 +
17 dev-python/pytest-describe/metadata.xml | 12 +++++++++
18 .../pytest-describe/pytest-describe-0.11.1.ebuild | 30 ++++++++++++++++++++++
19 3 files changed, 43 insertions(+)
20
21 diff --git a/dev-python/pytest-describe/Manifest b/dev-python/pytest-describe/Manifest
22 new file mode 100644
23 index 00000000000..eda2cbd4f15
24 --- /dev/null
25 +++ b/dev-python/pytest-describe/Manifest
26 @@ -0,0 +1 @@
27 +DIST pytest-describe-0.11.1.tar.gz 7226 BLAKE2B 5cbe722d1187fa67424e5c932eee7fc90335e6811d7493372515b44d4210d0de4b4d8f33f1583ac1ae400d91d9fb9795b2952a56fc6c2865ab450af279e45c09 SHA512 0634f17ca36f8fa346a6001338827d70dda410376660f370ba04b8857d37e009c5e33f06baee51d1c23a13094c88850668028f5d44a09c31b40baff0bfdaf1ef
28
29 diff --git a/dev-python/pytest-describe/metadata.xml b/dev-python/pytest-describe/metadata.xml
30 new file mode 100644
31 index 00000000000..91c491d4837
32 --- /dev/null
33 +++ b/dev-python/pytest-describe/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>python@g.o</email>
40 + <name>Python</name>
41 + </maintainer>
42 + <upstream>
43 + <remote-id type="pypi">pytest-describe</remote-id>
44 + <remote-id type="github">ropez/pytest-describe</remote-id>
45 + </upstream>
46 +</pkgmetadata>
47
48 diff --git a/dev-python/pytest-describe/pytest-describe-0.11.1.ebuild b/dev-python/pytest-describe/pytest-describe-0.11.1.ebuild
49 new file mode 100644
50 index 00000000000..33283659c14
51 --- /dev/null
52 +++ b/dev-python/pytest-describe/pytest-describe-0.11.1.ebuild
53 @@ -0,0 +1,30 @@
54 +# Copyright 1999-2018 Gentoo Foundation
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,7} )
60 +
61 +inherit distutils-r1
62 +
63 +DESCRIPTION="Describe-style plugin for py.test"
64 +HOMEPAGE="https://github.com/ropez/pytest-describe https://pypi.org/project/pytest-describe"
65 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
66 +
67 +LICENSE="MIT"
68 +SLOT="0"
69 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
70 +IUSE="test"
71 +RESTRICT="!test? ( test )"
72 +
73 +RDEPEND=">=dev-python/pytest-2.6.0[${PYTHON_USEDEP}]"
74 +
75 +DEPEND="
76 + dev-python/setuptools[${PYTHON_USEDEP}]
77 + test? ( >=dev-python/pytest-2.6.0[${PYTHON_USEDEP}] )"
78 +
79 +python_test() {
80 + # We need to disable flaky plugin because test_custom_prefix test validates
81 + # pytest output and output from flaky plugin would appear unexpectedly
82 + PYTEST_ADDOPTS="-p no:flaky" pytest -vv || die "Tests failed under ${EPYTHON}"
83 +}