commit:     0b2420a7e06d3a7ad9686b6389d2d40a7836327e
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 25 08:34:10 2022 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Feb 25 11:23:39 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b2420a7

dev-python/pytest-skip-markers: new package, add 1.2.0

Package extracted from pytest-salt-factories. For test run, it must
have the newer versions of pytest-salt-factories (without the
extracted part) - so added the strong blocker.

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 dev-python/pytest-skip-markers/Manifest            |  1 +
 dev-python/pytest-skip-markers/metadata.xml        | 13 +++++++
 .../pytest-skip-markers-1.2.0.ebuild               | 45 ++++++++++++++++++++++
 3 files changed, 59 insertions(+)

diff --git a/dev-python/pytest-skip-markers/Manifest 
b/dev-python/pytest-skip-markers/Manifest
new file mode 100644
index 000000000000..6da46e7719b1
--- /dev/null
+++ b/dev-python/pytest-skip-markers/Manifest
@@ -0,0 +1 @@
+DIST pytest-skip-markers-1.2.0.gh.tar.gz 79343 BLAKE2B 
7f24b454fe19210d9ecadf10317a5a32830d722b64adbaf0fa6fad70a4c0cb598fa93b782a2b0f71bd23c4f91f2007d21383b488d725f61519d064e98ddd48f8
 SHA512 
76c1d0f0af7f7a56fa95d33bd5cb078792df3f054714d2ca1baa6d861e9404e2ec734a88a0768985388b1226c399ee6b54fe082ef7fcce6fc190fcae6201a416

diff --git a/dev-python/pytest-skip-markers/metadata.xml 
b/dev-python/pytest-skip-markers/metadata.xml
new file mode 100644
index 000000000000..b6992d0e0c8d
--- /dev/null
+++ b/dev-python/pytest-skip-markers/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="project">
+               <email>[email protected]</email>
+               <name>Python</name>
+       </maintainer>
+       <stabilize-allarches/>
+       <upstream>
+               <remote-id type="pypi">pytest-skip-markers</remote-id>
+               <remote-id 
type="github">saltstack/pytest-skip-markers</remote-id>
+       </upstream>
+</pkgmetadata>

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
new file mode 100644
index 000000000000..762c2c56ce45
--- /dev/null
+++ b/dev-python/pytest-skip-markers/pytest-skip-markers-1.2.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..10} )
+inherit distutils-r1
+
+DESCRIPTION="Pytest plugin which implements a few useful skip markers"
+HOMEPAGE="
+       https://pypi.org/project/pytest-skip-markers/
+       https://github.com/saltstack/pytest-skip-markers
+"
+SRC_URI="
+       https://github.com/saltstack/pytest-skip-markers/archive/${PV}.tar.gz
+               -> ${P}.gh.tar.gz
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+       dev-python/pytest[${PYTHON_USEDEP}]
+       dev-python/attrs[${PYTHON_USEDEP}]
+       dev-python/distro[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       dev-python/setuptools_scm[${PYTHON_USEDEP}]
+       test? (
+               dev-python/pyfakefs[${PYTHON_USEDEP}]
+               dev-python/pytest-subtests[${PYTHON_USEDEP}]
+               !!<dev-python/pytest-salt-factories-0.912.2
+       )
+"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+       sed -e '/setuptools-declarative-requirements/d' -i setup.cfg || die
+       distutils-r1_src_prepare
+}
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}

Reply via email to