dev-python/pytest-fixture-config: New pkg, dep of dev-python/pytest-virtualenv
authorBrian Dolbec <dolsen@gentoo.org>
Tue, 3 Jan 2017 21:34:07 +0000 (13:34 -0800)
committerBrian Dolbec <dolsen@gentoo.org>
Wed, 4 Jan 2017 04:48:31 +0000 (20:48 -0800)
Indirect test dep for buildbot.

Package-Manager: Portage-2.3.3_p7, Repoman-2.3.1

dev-python/pytest-fixture-config/Manifest [new file with mode: 0644]
dev-python/pytest-fixture-config/metadata.xml [new file with mode: 0644]
dev-python/pytest-fixture-config/pytest-fixture-config-1.2.2.ebuild [new file with mode: 0644]

diff --git a/dev-python/pytest-fixture-config/Manifest b/dev-python/pytest-fixture-config/Manifest
new file mode 100644 (file)
index 0000000..b8242f3
--- /dev/null
@@ -0,0 +1 @@
+DIST pytest-fixture-config-1.2.2.tar.gz 4995 SHA256 5df71da68709a233a7a9f1aa262091ac17ddfd4c170912d07030801fd360b781 SHA512 c2d2346c50c8a73e37ce217e240eabdecf872700c9f4b020f1ca7532a06e6a5dc6b140356d96b1bf8c83f1cf737d95775abaa206c3dcf7e02555b26aa995f12d WHIRLPOOL 97488a31b1b39f5964df34900e4ff8209e425746a7791172cdc6804c98561fa73a7d28d668bbea4fa55082d81c07a50387891a60c8503eedd761bc8f9639673d
diff --git a/dev-python/pytest-fixture-config/metadata.xml b/dev-python/pytest-fixture-config/metadata.xml
new file mode 100644 (file)
index 0000000..f94f6e1
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="person">
+               <email>dolsen@gentoo.org</email>
+               <description>Primary maintainer</description>
+       </maintainer>
+       <upstream>
+               <maintainer>
+                       <email>eeaston@gmail.com</email>
+                       <name>Edward Easton</name>
+               </maintainer>
+               <remote-id type="pypi">pytest-fixture-config</remote-id>
+       </upstream>
+       <longdescription>
+               Simple configuration objects for Py.test fixtures.  Allows you to skip
+               tests when their required config variables aren't set.
+       </longdescription>
+</pkgmetadata>
diff --git a/dev-python/pytest-fixture-config/pytest-fixture-config-1.2.2.ebuild b/dev-python/pytest-fixture-config/pytest-fixture-config-1.2.2.ebuild
new file mode 100644 (file)
index 0000000..22ba5ea
--- /dev/null
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 python3_{4,5} )
+
+inherit distutils-r1
+
+DESCRIPTION="Virtualenv fixture for py.test"
+HOMEPAGE="https://github.com/manahl/pytest-plugins https://pypi.python.org/pypi/pytest-fixture-config"
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="
+       dev-python/pytest[${PYTHON_USEDEP}]
+       dev-python/setuptools-git[${PYTHON_USEDEP}]
+"
+
+DEPEND="
+       ${RDEPEND}
+       test? ( dev-python/six[${PYTHON_USEDEP}] )
+"
+
+python_test() {
+       distutils_install_for_testing
+
+       esetup.py test || die "Tests failed under ${EPYTHON}"
+}