summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2022-02-25 10:34:10 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2022-02-25 13:23:39 +0200
commit0b2420a7e06d3a7ad9686b6389d2d40a7836327e (patch)
tree213b77433d8b30c38661cde18282fa5266f4bed7 /dev-python/pytest-skip-markers
parentnet-fs/s3fs: keyword ~riscv (diff)
downloadgentoo-0b2420a7e06d3a7ad9686b6389d2d40a7836327e.tar.gz
gentoo-0b2420a7e06d3a7ad9686b6389d2d40a7836327e.tar.bz2
gentoo-0b2420a7e06d3a7ad9686b6389d2d40a7836327e.zip
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@gentoo.org>
Diffstat (limited to 'dev-python/pytest-skip-markers')
-rw-r--r--dev-python/pytest-skip-markers/Manifest1
-rw-r--r--dev-python/pytest-skip-markers/metadata.xml13
-rw-r--r--dev-python/pytest-skip-markers/pytest-skip-markers-1.2.0.ebuild45
3 files changed, 59 insertions, 0 deletions
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>python@gentoo.org</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}