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