diff options
author | Matthew Thode <prometheanfire@gentoo.org> | 2017-02-26 21:59:04 -0600 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2017-02-26 22:26:25 -0600 |
commit | 668a6d93fcd19e760ff8dbafe4c2188c66d5fc9d (patch) | |
tree | 07d91c82d7444074de413536454ac9e4020ba7f5 /dev-python/requests-mock | |
parent | dev-python/python-swiftclient: bup (diff) | |
download | gentoo-668a6d93fcd19e760ff8dbafe4c2188c66d5fc9d.tar.gz gentoo-668a6d93fcd19e760ff8dbafe4c2188c66d5fc9d.tar.bz2 gentoo-668a6d93fcd19e760ff8dbafe4c2188c66d5fc9d.zip |
dev-python/requests-mock: bup
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-python/requests-mock')
-rw-r--r-- | dev-python/requests-mock/Manifest | 1 | ||||
-rw-r--r-- | dev-python/requests-mock/requests-mock-1.2.0.ebuild | 39 |
2 files changed, 40 insertions, 0 deletions
diff --git a/dev-python/requests-mock/Manifest b/dev-python/requests-mock/Manifest index 66cf4c2c707f..a3ab6d5be7c5 100644 --- a/dev-python/requests-mock/Manifest +++ b/dev-python/requests-mock/Manifest @@ -2,3 +2,4 @@ DIST requests-mock-0.5.1.tar.gz 29729 SHA256 b1b1b864e633418c77f33d333b0fd88cb61 DIST requests-mock-0.6.0.tar.gz 31645 SHA256 a1f10ee53fef6aac6ca54cfb8fdb1b7ca6da59d68ea1a8c21ac513211842ad3e SHA512 5c23c1fdd3746f2b3b49508b7f05abb365e0608a32b6ead5d0ef18203bf75ab642626229e96b2e8826216d0f090f1bbd41bdfa78dd56f305a996a57f1e16179e WHIRLPOOL 65af690e429a09bc4358f1b0c387e3fff3faaf962cacd247c11c01ba84f79b3fe06b0dd801e9dab829550a5a340e562aa3ceb6a61e4307c14b5a16fdba8a1a7a DIST requests-mock-0.7.0.tar.gz 34722 SHA256 ee2816992d4505596ec3c98c7b4ab57475539ac037d08dd3a81370b1e3cdd568 SHA512 c2046d9291b3c852b986423dd3407c2486476417934aa2c21365fa94d821ebef7e01e90c61c6ab35d186654d3468e4a72505bb157cfb01f287b6d5c0041dc7f8 WHIRLPOOL ff4494eb30d5028aeaf7db1811130ddd3f89c5a0a57c55836fb35aa1ba598c5cb44f95879daa8be3b0aac8f57eb2649349243d5532cbd0ef31adb24c88321f27 DIST requests-mock-1.0.0.tar.gz 34715 SHA256 c6c659e50a312eb5cf0191ae33d6b232909e4a248551e79cef11c3c93497923d SHA512 cfa4c208b1a23b7d86d761dabed564d085591c281cae2981dca5103d6e84c11a7a78a80f278e6ec868f087dcb8eda145cbd93efd2a5c7afdff8d00990b66af39 WHIRLPOOL a2829e0867529f975f4c2e3567daa397b598235b5478725443c43b266147e3ef26b0188beb5b801f2ba95037fd930ce843a3493c8bf76ad00c591a0d4b8e487c +DIST requests-mock-1.2.0.tar.gz 40219 SHA256 8c89d8db3a5ddbce6121bdeb665891ca27bb37d18bbadd96c6c11fb472f07df1 SHA512 ed24d1809aef597219ae2b0b376156a0760040795ccd660ee38f84cd1ceed58cbc5009764d7a365d31f941ee16e2b537b92ddcff92bcd8d47b7e95c67dc8d82c WHIRLPOOL 1cc27f31611dba6c9d825882c33610ebfa75e87b776680c0da468352883ec1cd615fdf8068d8b9c1e54d35872409620f82f809c53bea154aa83bafd1e53138f0 diff --git a/dev-python/requests-mock/requests-mock-1.2.0.ebuild b/dev-python/requests-mock/requests-mock-1.2.0.ebuild new file mode 100644 index 000000000000..b2a20c177f1e --- /dev/null +++ b/dev-python/requests-mock/requests-mock-1.2.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_{4,5}} ) + +inherit distutils-r1 + +DESCRIPTION="Mock out responses from the requests package" +HOMEPAGE="https://github.com/jamielennox/requests-mock" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="test" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/pbr-0.8[${PYTHON_USEDEP}] + test? ( + dev-python/fixtures[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}] + dev-python/testtools[${PYTHON_USEDEP}] + ) +" +RDEPEND=" + >=dev-python/requests-1.1[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] +" + +python_test() { + rm -rf .testrepository || die "couldn't remove '.testrepository' under ${EPYTHON}" + + testr init || die "testr init failed under ${EPYTHON}" + testr run || die "testr run failed under ${EPYTHON}" +} |