Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/requests-mock/
Date: Wed, 28 Apr 2021 08:16:38
Message-Id: 1619597771.7ca3d4cce1003ab2e6416657046bf814a3d5bce7.mgorny@gentoo
1 commit: 7ca3d4cce1003ab2e6416657046bf814a3d5bce7
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 28 06:57:28 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 28 08:16:11 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ca3d4cc
7
8 dev-python/requests-mock: Bump to 1.9.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/requests-mock/Manifest | 1 +
13 .../requests-mock/requests-mock-1.9.0.ebuild | 45 ++++++++++++++++++++++
14 2 files changed, 46 insertions(+)
15
16 diff --git a/dev-python/requests-mock/Manifest b/dev-python/requests-mock/Manifest
17 index 99ba5616108..e67982eaedc 100644
18 --- a/dev-python/requests-mock/Manifest
19 +++ b/dev-python/requests-mock/Manifest
20 @@ -1 +1,2 @@
21 DIST requests-mock-1.8.0.tar.gz 59794 BLAKE2B 2bdcd180ea793a02cf34eda356d90c0e338cec6f3fb718564026d28ea06ac975073f291be9cb685f012c803fdeca1fe29139537529e292b91a3356f0b781f97a SHA512 252bce965e0fca03cd5ce09912c726045f9c632e90bfee13b06c9f3e2c6b70eab7f39cf8e7efb3b7d2cf2b5d79cc5c5ba6e2379b3d48ce33bf78861ada911918
22 +DIST requests-mock-1.9.0.tar.gz 66243 BLAKE2B 33602e85376d7812b8f4b35bf657c905ddc7db4d85e3de1f70d38871c90c42fc886e99bce3dc45079b6c8ac8e3e6b0b5291d4acda31d26045396d4ed505c3faf SHA512 1382077357a13dbec65cc4226b628ff6b55348422d9f0e9e2311c85affbc40437d22c2f95fa305303a86decc765a6228366f27eea76e254da194789b1d8fb610
23
24 diff --git a/dev-python/requests-mock/requests-mock-1.9.0.ebuild b/dev-python/requests-mock/requests-mock-1.9.0.ebuild
25 new file mode 100644
26 index 00000000000..930d9082097
27 --- /dev/null
28 +++ b/dev-python/requests-mock/requests-mock-1.9.0.ebuild
29 @@ -0,0 +1,45 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +PYTHON_COMPAT=( pypy3 python3_{7..9} )
36 +
37 +inherit distutils-r1
38 +
39 +DESCRIPTION="Mock out responses from the requests package"
40 +HOMEPAGE="https://github.com/jamielennox/requests-mock"
41 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
42 +
43 +LICENSE="Apache-2.0"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
46 +
47 +RDEPEND="
48 + >=dev-python/requests-2.3[${PYTHON_USEDEP}]
49 + dev-python/six[${PYTHON_USEDEP}]
50 +"
51 +BDEPEND="
52 + >=dev-python/pbr-0.8[${PYTHON_USEDEP}]
53 + test? (
54 + dev-python/fixtures[${PYTHON_USEDEP}]
55 + dev-python/mock[${PYTHON_USEDEP}]
56 + dev-python/pytest[${PYTHON_USEDEP}]
57 + dev-python/testtools[${PYTHON_USEDEP}]
58 + )
59 +"
60 +
61 +distutils_enable_sphinx doc/source
62 +distutils_enable_tests unittest
63 +
64 +python_prepare_all() {
65 + # Disable reno which only works inside a git repository
66 + sed -i "s/'reno.sphinxext',//" doc/source/conf.py || die
67 + # Remove the release notes section which requires reno
68 + rm doc/source/release-notes.rst || die
69 + sed -i '/^=============$/,/release-notes/d' doc/source/index.rst || die
70 + # Disable a test which requires purl (not in the tree)
71 + sed -i -e "/^import purl$/d" -e "s/test_with_purl/_&/" \
72 + tests/test_adapter.py || die
73 + distutils-r1_python_prepare_all
74 +}