summaryrefslogtreecommitdiff
path: root/dev-python/pytest-mock
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/pytest-mock
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/pytest-mock')
-rw-r--r--dev-python/pytest-mock/Manifest8
-rw-r--r--dev-python/pytest-mock/metadata.xml11
-rw-r--r--dev-python/pytest-mock/pytest-mock-1.2.ebuild32
-rw-r--r--dev-python/pytest-mock/pytest-mock-1.5.0.ebuild40
-rw-r--r--dev-python/pytest-mock/pytest-mock-1.6.0.ebuild40
5 files changed, 131 insertions, 0 deletions
diff --git a/dev-python/pytest-mock/Manifest b/dev-python/pytest-mock/Manifest
new file mode 100644
index 000000000000..a5de01a68bc4
--- /dev/null
+++ b/dev-python/pytest-mock/Manifest
@@ -0,0 +1,8 @@
+DIST pytest-mock-1.2.zip 19461 SHA256 f78971ed376fcb265255d1e4bb313731b3a1be92d7f3ecb19ea7fedc4a56fd0f SHA512 9b87c72e9895a16d4829229a070ba2b8143be894dfbc804b1e882eb2cc5843d8da9db258b5a2b9f8ae6738d9d612dbf1bec16790c5f99c27d9f7554cb676f852 WHIRLPOOL 470832b4df4a9392b0cfcbba96b2a52379d7111af0236f5dbe4e22f4e303da248bf2f936b3b66ae0ff3a197f3c87b0419c54c115fe5c6543e255f11666d3031d
+DIST pytest-mock-1.5.0.tar.gz 17199 SHA256 782f23f227874bac4cee878637c2af8efdd2c34c48fcbf9e79b00a0872056ffb SHA512 5b5acb3ae3040d37768692a5289be269d8e12a6188a2dddefb136bdb99f847bedee525d59ac49886a6a27032b672e442ee256410174777675bf92fc82505f807 WHIRLPOOL 7c9c2617944dbf02cce356d12650d89372db252bdf79b92db304bcb1337858a38ae4b9b640210190338feccf4de0cbd64ad1a2d7ffc411c9184e1cd09dd7ec17
+DIST pytest-mock-1.6.0.tar.gz 17780 SHA256 83a17cbcd4dbc7c6c9dc885a0d598f9acd11f2d5142e0718ed32e14538670c1f SHA512 c3b897be9156d57d7012e95b620c543500b849d7076224e3328d3783311210c57141dfb82c01bb98e5e419125dce0f68f6631bd610f4909f5ac1798458a7949f WHIRLPOOL 518c8732f722547a0a87f0e1dd4cf8c80272f4a62f238d5bb16766fe0340c8fc022e409f58e6aa8ed7cb17b33fe160574db199197c0466701fa7e7a668fb5116
+EBUILD pytest-mock-1.2.ebuild 796 SHA256 74fd452ae9f6d9ba20bf292bd0be6aeb465b7ba0c5ab49c60d234f1e9b86a0cd SHA512 8aea21fa51730a6cc912bee6666c649aea6ec7425f49b45958e67da8f49920544b0649e987fa34d0b54a24bb93ee54f93bf05f9609acc7106c1072ada97e65ef WHIRLPOOL 25c80cb868eab7bbfaeef0227b2fa16d190cc841c59aad0d8aa73fa25c28fc5d156817901f2a88b8da84678a895ce92a18cfe2d27ee8e32bd4bacf3341dea1cb
+EBUILD pytest-mock-1.5.0.ebuild 1055 SHA256 1fc5f352976e6289f53c80c9231640c9d9709d9413c3efd3d4af0878872cb3a7 SHA512 67428d7a2be06c3de4103eb6b9f6344f87c27e13d38809ce3215e4d1352c74c251975816a3983af45f4b22071d7fc3959c26923d49db2296dc7c3a411ce5f1f8 WHIRLPOOL ae2bbf6eaddb788067adb462a38464975a5a22dea3e6d1d6cf409e211f8435ac2258666852bc31ac3fb004300d38bb99c365318f460f336a7a4b723ca4e071ee
+EBUILD pytest-mock-1.6.0.ebuild 1060 SHA256 4aa1a30e02ae2ca174f61aa6eb9e249e69db85cccd7892eb552606eea13cd437 SHA512 2c5d6dd6c9f3460bfec3f5dbe51d1e65957025d6c54a5167e6223b7703244ac2bb358cec539d0f6e7ab587b5e48a6bad89d9c52778d8096062d68a18d81a5c36 WHIRLPOOL 0de88c20cd03bfbadae426c3ce5e8d2cc67c1ef5d4dad6b6e06ca824b14c52e1962b76284c3a914d93e0dd2c4ed2161be951d55baf2b126f8c84e7df250f0a8c
+MISC ChangeLog 312 SHA256 97cf1df2daf23cae8b1ae0dc66ddad9fdcd16dc73b666d2e9de3c27a30b69f62 SHA512 db44b605f1fc76018824eb1ec5df5eeab336dad4767b071849849aa3006e6534488f0588b9cc4979c142ea9cc2175ac17b963476e1eac4705d133e31539199ad WHIRLPOOL d9f281985bc5676d3c0735ce42d8b0e54f1ff7f611613378c4696ac82886a035a40f1783ddacc102ab6efce2063121f988007e4d352dfba4d5112a7e32a3e333
+MISC metadata.xml 354 SHA256 e083a9809968a19c662d955492e0e251df5a8e868ebf4fbed9b8791aa55bd229 SHA512 83a168d22f4d604827aa42966ccd1b99d53f069cdfffe69b29fad8f13c4959ff287915c0fdc29e53ce2c3d5625b4f4620861b927571dc91c93ac199a5985a3da WHIRLPOOL 2d5ded63d065fd8687cf0a52115ca71fb28faa2a3e1db9fba6c4b0d2b8b4e7b1a4a72674c522a1d0d1ec8528088d9db2cc6a0c528677a9780e7ebc45c1b2fab2
diff --git a/dev-python/pytest-mock/metadata.xml b/dev-python/pytest-mock/metadata.xml
new file mode 100644
index 000000000000..6c61486a96fd
--- /dev/null
+++ b/dev-python/pytest-mock/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <upstream>
+ <remote-id type="pypi">pytest-mock</remote-id>
+ <remote-id type="github">pytest-dev/pytest-mock</remote-id>
+ </upstream>
+ <maintainer type="person">
+ <email>zmedico@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-python/pytest-mock/pytest-mock-1.2.ebuild b/dev-python/pytest-mock/pytest-mock-1.2.ebuild
new file mode 100644
index 000000000000..2dc05b0a31ce
--- /dev/null
+++ b/dev-python/pytest-mock/pytest-mock-1.2.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_{4,5}} pypy pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="Thin-wrapper around the mock package for easier use with py.test"
+HOMEPAGE="https://github.com/pytest-dev/pytest-mock/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-python/pytest[${PYTHON_USEDEP}]
+ python_targets_python2_7? (
+ dev-python/mock[python_targets_python2_7]
+ )
+ python_targets_pypy? (
+ dev-python/mock[python_targets_pypy]
+ )"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+python_test() {
+ PYTHONPATH=${PWD}${PYTHONPATH:+:}${PYTHONPATH} \
+ py.test test_pytest_mock.py || die
+}
diff --git a/dev-python/pytest-mock/pytest-mock-1.5.0.ebuild b/dev-python/pytest-mock/pytest-mock-1.5.0.ebuild
new file mode 100644
index 000000000000..32941be25b3c
--- /dev/null
+++ b/dev-python/pytest-mock/pytest-mock-1.5.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="Thin-wrapper around the mock package for easier use with py.test"
+HOMEPAGE="https://github.com/pytest-dev/pytest-mock/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-python/pytest[${PYTHON_USEDEP}]
+ python_targets_python2_7? (
+ dev-python/mock[python_targets_python2_7]
+ )
+ python_targets_pypy? (
+ dev-python/mock[python_targets_pypy]
+ )"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/setuptools_scm[${PYTHON_USEDEP}]"
+
+src_prepare() {
+ if has_version dev-python/mock; then
+ # test fails when standalone mock is installed
+ sed -e 's|^\(def \)\(test_standalone_mock(\)|\1_\2|' -i test_pytest_mock.py || die
+ fi
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ PYTHONPATH=${PWD}${PYTHONPATH:+:}${PYTHONPATH} \
+ py.test test_pytest_mock.py || die
+}
diff --git a/dev-python/pytest-mock/pytest-mock-1.6.0.ebuild b/dev-python/pytest-mock/pytest-mock-1.6.0.ebuild
new file mode 100644
index 000000000000..0d8b032e8541
--- /dev/null
+++ b/dev-python/pytest-mock/pytest-mock-1.6.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="Thin-wrapper around the mock package for easier use with py.test"
+HOMEPAGE="https://github.com/pytest-dev/pytest-mock/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ~arm64 x86"
+IUSE=""
+
+RDEPEND="dev-python/pytest[${PYTHON_USEDEP}]
+ python_targets_python2_7? (
+ dev-python/mock[python_targets_python2_7]
+ )
+ python_targets_pypy? (
+ dev-python/mock[python_targets_pypy]
+ )"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/setuptools_scm[${PYTHON_USEDEP}]"
+
+src_prepare() {
+ if has_version dev-python/mock; then
+ # test fails when standalone mock is installed
+ sed -e 's|^\(def \)\(test_standalone_mock(\)|\1_\2|' -i test_pytest_mock.py || die
+ fi
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ PYTHONPATH=${PWD}${PYTHONPATH:+:}${PYTHONPATH} \
+ py.test test_pytest_mock.py || die
+}