1 |
commit: 314b60862c07eddb65478a54b1a8b4cb7ca496e2 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 26 10:32:36 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 26 10:55:58 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=314b6086 |
7 |
|
8 |
dev-python/requests-cache: Bump to 0.9.4 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/requests-cache/Manifest | 1 + |
13 |
.../requests-cache/requests-cache-0.9.4.ebuild | 81 ++++++++++++++++++++++ |
14 |
2 files changed, 82 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/requests-cache/Manifest b/dev-python/requests-cache/Manifest |
17 |
index 04f1c4757361..960b9aff9981 100644 |
18 |
--- a/dev-python/requests-cache/Manifest |
19 |
+++ b/dev-python/requests-cache/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST requests-cache-0.9.3.gh.tar.gz 1541517 BLAKE2B a6096e8db01ccc7e6afa94ca35460ad79bbc503fe32fb272c3b43bb3344cb4a4e3c6f9240dc8d26a49b2ae4b564de72be22553b40847480487c150b192aa9490 SHA512 d413fbed156bd3fca48db8b153b01a883ee72d62f6e8982d490a5378dc188c19d0b3af5e37e6f47d19ed0ba11b3c0e01489720d56df12afcf1b47088e1541221 |
22 |
+DIST requests-cache-0.9.4.gh.tar.gz 1541821 BLAKE2B 90f3ffe8f4213a47d19c1190f1201bb484473a4ee2fae82dff59c9e80bc8c154739e99f5024aa55b436f9e620d5594441df61e2db44e3cbb381d394c1b6b4a0b SHA512 66023dc8b153070a532f160af58ac2102f6b9d536a0045c4c62ad1d4175f59df6e7db5a25422f5610a2f17049270ad0b63c6023ddddf64235432a63d2cce9b91 |
23 |
|
24 |
diff --git a/dev-python/requests-cache/requests-cache-0.9.4.ebuild b/dev-python/requests-cache/requests-cache-0.9.4.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..13d1ae62b521 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/requests-cache/requests-cache-0.9.4.ebuild |
29 |
@@ -0,0 +1,81 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+DISTUTILS_USE_PEP517=poetry |
36 |
+PYTHON_COMPAT=( python3_{8..10} ) |
37 |
+PYTHON_REQ_USE="sqlite" |
38 |
+ |
39 |
+inherit distutils-r1 optfeature |
40 |
+ |
41 |
+HOMEPAGE=" |
42 |
+ https://pypi.org/project/requests-cache/ |
43 |
+ https://github.com/reclosedev/requests-cache/ |
44 |
+" |
45 |
+DESCRIPTION="Persistent cache for requests library" |
46 |
+SRC_URI=" |
47 |
+ https://github.com/reclosedev/requests-cache/archive/v${PV}.tar.gz |
48 |
+ -> ${P}.gh.tar.gz |
49 |
+" |
50 |
+ |
51 |
+LICENSE="BSD" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~x86" |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ dev-python/attrs[${PYTHON_USEDEP}] |
57 |
+ dev-python/appdirs[${PYTHON_USEDEP}] |
58 |
+ dev-python/cattrs[${PYTHON_USEDEP}] |
59 |
+ >=dev-python/requests-2.0.0[${PYTHON_USEDEP}] |
60 |
+ dev-python/urllib3[${PYTHON_USEDEP}] |
61 |
+ >=dev-python/url-normalize-1.4[${PYTHON_USEDEP}] |
62 |
+" |
63 |
+BDEPEND=" |
64 |
+ test? ( |
65 |
+ dev-python/itsdangerous[${PYTHON_USEDEP}] |
66 |
+ dev-python/pytest-httpbin[${PYTHON_USEDEP}] |
67 |
+ dev-python/requests-mock[${PYTHON_USEDEP}] |
68 |
+ dev-python/responses[${PYTHON_USEDEP}] |
69 |
+ dev-python/timeout-decorator[${PYTHON_USEDEP}] |
70 |
+ dev-python/ujson[${PYTHON_USEDEP}] |
71 |
+ ) |
72 |
+" |
73 |
+ |
74 |
+distutils_enable_tests pytest |
75 |
+ |
76 |
+PATCHES=( |
77 |
+ "${FILESDIR}"/requests-cache-0.9.3-cattrs-22.patch |
78 |
+) |
79 |
+ |
80 |
+src_prepare() { |
81 |
+ # unpin the dep |
82 |
+ sed -i -e '/cattrs/s:\^:>=:' pyproject.toml || die |
83 |
+ distutils-r1_src_prepare |
84 |
+} |
85 |
+ |
86 |
+python_test() { |
87 |
+ local EPYTEST_IGNORE=( |
88 |
+ # These require extra servers running |
89 |
+ tests/integration/test_dynamodb.py |
90 |
+ tests/integration/test_gridfs.py |
91 |
+ tests/integration/test_mongodb.py |
92 |
+ tests/integration/test_redis.py |
93 |
+ ) |
94 |
+ local EPYTEST_DESELECT=( |
95 |
+ # Requires Internet access |
96 |
+ tests/integration/test_compat.py::test_version_upgrade |
97 |
+ ) |
98 |
+ |
99 |
+ local -x USE_PYTEST_HTTPBIN=true |
100 |
+ epytest |
101 |
+} |
102 |
+ |
103 |
+pkg_postinst() { |
104 |
+ optfeature "redis backend" "dev-python/redis-py" |
105 |
+ optfeature "MongoDB backend" "dev-python/pymongo" |
106 |
+ |
107 |
+ optfeature "JSON serialization" "dev-python/ujson" |
108 |
+ optfeature "YAML serialization" "dev-python/pyyaml" |
109 |
+ optfeature "signing serialized data" "dev-python/itsdangerous" |
110 |
+} |