bump requests-mock-1.9.2

This commit is contained in:
Andreas Billmeier (@STR/VW3) 2021-07-06 13:06:22 +02:00 committed by Andreas Billmeier
parent a166e919f7
commit 8d766b063d
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
2 changed files with 47 additions and 0 deletions

View File

@ -1,3 +1,5 @@
DIST requests-mock-1.8.0.tar.gz 59794 BLAKE2B 2bdcd180ea793a02cf34eda356d90c0e338cec6f3fb718564026d28ea06ac975073f291be9cb685f012c803fdeca1fe29139537529e292b91a3356f0b781f97a SHA512 252bce965e0fca03cd5ce09912c726045f9c632e90bfee13b06c9f3e2c6b70eab7f39cf8e7efb3b7d2cf2b5d79cc5c5ba6e2379b3d48ce33bf78861ada911918
DIST requests-mock-1.9.2.tar.gz 67383 BLAKE2B 70a0772b415f437c38897862d663983d9ac65a5fc37d70b4f8734f8c249457dab6c4b1c04db79f7865a9b31a49aaa9cbbee98453ea5bcda35aad2e7cd9ca3f4a SHA512 b8da389f6642a4dfaac77b2613d12e3028555a5d4154aa7252e50fef527a49fb78d85dbd911ad2fd7d5ebc0efa49a2c0fd8d3b10114596839f0ddb53d917773c
EBUILD requests-mock-1.8.0.ebuild 1307 BLAKE2B 4851278fd0b41ba8ea481aaef7591f26669a813b90389c77afde2b173b8d3700f63ca95490e2022d5c11a2cdec6b03369f74456030b9844b529812f04b2e97bb SHA512 87c27dcbf77b9ee465ca02f7401ccc481881079ffb2ebaeda8b208d894a62207a55b8356e6ebfa3317e6ea18aff9f74e3ec74905cc35076d72d9719ca5cc05c4
EBUILD requests-mock-1.9.2.ebuild 1280 BLAKE2B 7390ce03d66e4e6dfabee8dc5a4409694d017aa83d58d4745b622389259c337df8231fc12f1302f421ee4fc98e67170d769fa43b178f162053aef3ed37f9bbfd SHA512 4c16c132ecff2ec652a61c84840315ef10c53b514c2d557af311c8193bcdbc6da7eb425ca44f01293d4d9735942fa1eb20d1b577b961936eb428002af8d7eeab
MISC metadata.xml 478 BLAKE2B 73ae7388ccece263501b7b1b4b1953e2528cfa2287460aae4f9d4758dbb9a41ec38d6a00c45f74e87e4625243660ba530f85e37328ade1b88dbda55a20ea739d SHA512 5efc54aa7f3fda2909ddb82975cb6bd554ad90924075a22ecba41e50e4af8a70722ec9f69c7a588ba2cd01cf937d887a11f747bb0787f20976567423feaa5867

View File

@ -0,0 +1,45 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( pypy3 python3_{7..9} )
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 ~arm ~arm64 ~ppc64 x86"
RDEPEND="
>=dev-python/requests-2.3[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
"
BDEPEND="
>=dev-python/pbr-0.8[${PYTHON_USEDEP}]
test? (
dev-python/fixtures[${PYTHON_USEDEP}]
dev-python/mock[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/testtools[${PYTHON_USEDEP}]
)
"
distutils_enable_sphinx doc/source
distutils_enable_tests unittest
python_prepare_all() {
# Disable reno which only works inside a git repository
sed -i "s/'reno.sphinxext',//" doc/source/conf.py || die
# Remove the release notes section which requires reno
rm doc/source/release-notes.rst || die
sed -i '/^=============$/,/release-notes/d' doc/source/index.rst || die
# Disable a test which requires purl (not in the tree)
sed -i -e "/^import purl$/d" -e "s/test_with_purl/_&/" \
tests/test_adapter.py || die
distutils-r1_python_prepare_all
}