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-skip-markers/
Date: Fri, 25 Feb 2022 11:24:11
Message-Id: 1645788219.0b2420a7e06d3a7ad9686b6389d2d40a7836327e.arthurzam@gentoo
1 commit: 0b2420a7e06d3a7ad9686b6389d2d40a7836327e
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 25 08:34:10 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=0b2420a7
7
8 dev-python/pytest-skip-markers: new package, add 1.2.0
9
10 Package extracted from pytest-salt-factories. For test run, it must
11 have the newer versions of pytest-salt-factories (without the
12 extracted part) - so added the strong blocker.
13
14 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
15
16 dev-python/pytest-skip-markers/Manifest | 1 +
17 dev-python/pytest-skip-markers/metadata.xml | 13 +++++++
18 .../pytest-skip-markers-1.2.0.ebuild | 45 ++++++++++++++++++++++
19 3 files changed, 59 insertions(+)
20
21 diff --git a/dev-python/pytest-skip-markers/Manifest b/dev-python/pytest-skip-markers/Manifest
22 new file mode 100644
23 index 000000000000..6da46e7719b1
24 --- /dev/null
25 +++ b/dev-python/pytest-skip-markers/Manifest
26 @@ -0,0 +1 @@
27 +DIST pytest-skip-markers-1.2.0.gh.tar.gz 79343 BLAKE2B 7f24b454fe19210d9ecadf10317a5a32830d722b64adbaf0fa6fad70a4c0cb598fa93b782a2b0f71bd23c4f91f2007d21383b488d725f61519d064e98ddd48f8 SHA512 76c1d0f0af7f7a56fa95d33bd5cb078792df3f054714d2ca1baa6d861e9404e2ec734a88a0768985388b1226c399ee6b54fe082ef7fcce6fc190fcae6201a416
28
29 diff --git a/dev-python/pytest-skip-markers/metadata.xml b/dev-python/pytest-skip-markers/metadata.xml
30 new file mode 100644
31 index 000000000000..b6992d0e0c8d
32 --- /dev/null
33 +++ b/dev-python/pytest-skip-markers/metadata.xml
34 @@ -0,0 +1,13 @@
35 +<?xml version="1.0" encoding="UTF-8"?>
36 +<!DOCTYPE pkgmetadata SYSTEM "https://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 + <stabilize-allarches/>
43 + <upstream>
44 + <remote-id type="pypi">pytest-skip-markers</remote-id>
45 + <remote-id type="github">saltstack/pytest-skip-markers</remote-id>
46 + </upstream>
47 +</pkgmetadata>
48
49 diff --git a/dev-python/pytest-skip-markers/pytest-skip-markers-1.2.0.ebuild b/dev-python/pytest-skip-markers/pytest-skip-markers-1.2.0.ebuild
50 new file mode 100644
51 index 000000000000..762c2c56ce45
52 --- /dev/null
53 +++ b/dev-python/pytest-skip-markers/pytest-skip-markers-1.2.0.ebuild
54 @@ -0,0 +1,45 @@
55 +# Copyright 2022 Gentoo Authors
56 +# Distributed under the terms of the GNU General Public License v2
57 +
58 +EAPI=8
59 +
60 +DISTUTILS_USE_PEP517=setuptools
61 +PYTHON_COMPAT=( python3_{8..10} )
62 +inherit distutils-r1
63 +
64 +DESCRIPTION="Pytest plugin which implements a few useful skip markers"
65 +HOMEPAGE="
66 + https://pypi.org/project/pytest-skip-markers/
67 + https://github.com/saltstack/pytest-skip-markers
68 +"
69 +SRC_URI="
70 + https://github.com/saltstack/pytest-skip-markers/archive/${PV}.tar.gz
71 + -> ${P}.gh.tar.gz
72 +"
73 +
74 +LICENSE="Apache-2.0"
75 +SLOT="0"
76 +KEYWORDS="~amd64"
77 +
78 +RDEPEND="
79 + dev-python/pytest[${PYTHON_USEDEP}]
80 + dev-python/attrs[${PYTHON_USEDEP}]
81 + dev-python/distro[${PYTHON_USEDEP}]
82 +"
83 +BDEPEND="
84 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
85 + test? (
86 + dev-python/pyfakefs[${PYTHON_USEDEP}]
87 + dev-python/pytest-subtests[${PYTHON_USEDEP}]
88 + !!<dev-python/pytest-salt-factories-0.912.2
89 + )
90 +"
91 +
92 +distutils_enable_tests pytest
93 +
94 +src_prepare() {
95 + sed -e '/setuptools-declarative-requirements/d' -i setup.cfg || die
96 + distutils-r1_src_prepare
97 +}
98 +
99 +export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}