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