Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-shell-utilities/
Date: Fri, 25 Feb 2022 11:24:11
Message-Id: 1645788219.6e6d1ba4353f6049694c6e44d249eeaff32881cb.arthurzam@gentoo
1 commit: 6e6d1ba4353f6049694c6e44d249eeaff32881cb
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 25 08:43:02 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 25 11:23:39 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e6d1ba4
7
8 dev-python/pytest-shell-utilities: new package, add 1.0.5
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/pytest-shell-utilities/Manifest | 1 +
13 dev-python/pytest-shell-utilities/metadata.xml | 13 ++++++
14 .../pytest-shell-utilities-1.0.5.ebuild | 48 ++++++++++++++++++++++
15 3 files changed, 62 insertions(+)
16
17 diff --git a/dev-python/pytest-shell-utilities/Manifest b/dev-python/pytest-shell-utilities/Manifest
18 new file mode 100644
19 index 000000000000..78a39cf489f6
20 --- /dev/null
21 +++ b/dev-python/pytest-shell-utilities/Manifest
22 @@ -0,0 +1 @@
23 +DIST pytest-shell-utilities-1.0.5.gh.tar.gz 89489 BLAKE2B 9cd7f95c9c1691e19c320378d1c2a4e147cb6fdc35ec6f3c80dc288e70416fce67b60ac86427f1ad322b2c17de3cd762e483d63076fa291b4b7d22d7a29c9e45 SHA512 395107af9eaa13ef39d01858e1674b6dedddc2cf93b9aba61316fd8d847031e1b535cc3bf4f2899dbc7828609b7d45b500aad29bb47668be6e0453ac099e99e4
24
25 diff --git a/dev-python/pytest-shell-utilities/metadata.xml b/dev-python/pytest-shell-utilities/metadata.xml
26 new file mode 100644
27 index 000000000000..8a6326c310a5
28 --- /dev/null
29 +++ b/dev-python/pytest-shell-utilities/metadata.xml
30 @@ -0,0 +1,13 @@
31 +<?xml version="1.0" encoding="UTF-8"?>
32 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
33 +<pkgmetadata>
34 + <maintainer type="project">
35 + <email>python@g.o</email>
36 + <name>Python</name>
37 + </maintainer>
38 + <stabilize-allarches/>
39 + <upstream>
40 + <remote-id type="pypi">pytest-shell-utilities</remote-id>
41 + <remote-id type="github">saltstack/pytest-shell-utilities</remote-id>
42 + </upstream>
43 +</pkgmetadata>
44
45 diff --git a/dev-python/pytest-shell-utilities/pytest-shell-utilities-1.0.5.ebuild b/dev-python/pytest-shell-utilities/pytest-shell-utilities-1.0.5.ebuild
46 new file mode 100644
47 index 000000000000..26d3ba50da9f
48 --- /dev/null
49 +++ b/dev-python/pytest-shell-utilities/pytest-shell-utilities-1.0.5.ebuild
50 @@ -0,0 +1,48 @@
51 +# Copyright 2022 Gentoo Authors
52 +# Distributed under the terms of the GNU General Public License v2
53 +
54 +EAPI=8
55 +
56 +DISTUTILS_USE_PEP517=setuptools
57 +PYTHON_COMPAT=( python3_{8..10} )
58 +inherit distutils-r1
59 +
60 +DESCRIPTION="Pytest plugin to simplify running shell commands against the system"
61 +HOMEPAGE="
62 + https://pypi.org/project/pytest-shell-utilities/
63 + https://github.com/saltstack/pytest-shell-utilities
64 +"
65 +SRC_URI="
66 + https://github.com/saltstack/pytest-shell-utilities/archive/${PV}.tar.gz
67 + -> ${P}.gh.tar.gz
68 +"
69 +
70 +LICENSE="Apache-2.0"
71 +SLOT="0"
72 +KEYWORDS="~amd64"
73 +
74 +RDEPEND="
75 + dev-python/pytest[${PYTHON_USEDEP}]
76 + dev-python/attrs[${PYTHON_USEDEP}]
77 + dev-python/psutil[${PYTHON_USEDEP}]
78 + dev-python/typing-extensions[${PYTHON_USEDEP}]
79 + dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}]
80 + dev-python/pytest-skip-markers[${PYTHON_USEDEP}]
81 +"
82 +BDEPEND="
83 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
84 + test? (
85 + dev-python/pyfakefs[${PYTHON_USEDEP}]
86 + dev-python/pytest-subtests[${PYTHON_USEDEP}]
87 + !!<dev-python/pytest-salt-factories-0.912.2
88 + )
89 +"
90 +
91 +distutils_enable_tests pytest
92 +
93 +src_prepare() {
94 + sed -e '/setuptools-declarative-requirements/d' -i setup.cfg || die
95 + distutils-r1_src_prepare
96 +}
97 +
98 +export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}