dev-python/requests-mock: treeclean

Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
Andreas Billmeier 2023-11-02 22:15:03 +01:00 committed by Andreas Billmeier
parent c310f6e324
commit bdd5e7e24f
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
3 changed files with 0 additions and 62 deletions

View File

@ -1,3 +0,0 @@
DIST requests-mock-1.9.2.tar.gz 67383 BLAKE2B 70a0772b415f437c38897862d663983d9ac65a5fc37d70b4f8734f8c249457dab6c4b1c04db79f7865a9b31a49aaa9cbbee98453ea5bcda35aad2e7cd9ca3f4a SHA512 b8da389f6642a4dfaac77b2613d12e3028555a5d4154aa7252e50fef527a49fb78d85dbd911ad2fd7d5ebc0efa49a2c0fd8d3b10114596839f0ddb53d917773c
EBUILD requests-mock-1.9.2.ebuild 1275 BLAKE2B d77634e5ed809a0360043dd8e8f7a25e1c6e9d9093c05140f89a08dcb1bdc414983eca430bda3b15d66a9cc172df02545bd3650da984c398ea8b8f7c5fead1cf SHA512 5972903b0481cf940769435f889ff8e880301ff537f7d8d781df7ad5c5680dddc31ea7f2a56670a981614b1a32a5522cdfc53eca540d3feed6b9096307718904
MISC metadata.xml 478 BLAKE2B 73ae7388ccece263501b7b1b4b1953e2528cfa2287460aae4f9d4758dbb9a41ec38d6a00c45f74e87e4625243660ba530f85e37328ade1b88dbda55a20ea739d SHA512 5efc54aa7f3fda2909ddb82975cb6bd554ad90924075a22ecba41e50e4af8a70722ec9f69c7a588ba2cd01cf937d887a11f747bb0787f20976567423feaa5867

View File

@ -1,14 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://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">requests-mock</remote-id>
<remote-id type="github">jamielennox/requests-mock</remote-id>
<bugs-to>https://github.com/jamielennox/requests-mock/issues</bugs-to>
</upstream>
</pkgmetadata>

View File

@ -1,45 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{8..10} )
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
}