1 |
commit: bc4e6cdfa0d748afb83c1bcd69bd4bdc89e983b3 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 27 11:31:05 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 27 11:31:05 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc4e6cdf |
7 |
|
8 |
dev-python/requests-cache: cleanup deps |
9 |
|
10 |
- Add optional dependencies |
11 |
- Add missing test deps |
12 |
- Add missing rdeps |
13 |
|
14 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
15 |
|
16 |
...ache-0.8.1.ebuild => requests-cache-0.8.1-r1.ebuild} | 17 +++++++++++++++-- |
17 |
1 file changed, 15 insertions(+), 2 deletions(-) |
18 |
|
19 |
diff --git a/dev-python/requests-cache/requests-cache-0.8.1.ebuild b/dev-python/requests-cache/requests-cache-0.8.1-r1.ebuild |
20 |
similarity index 71% |
21 |
rename from dev-python/requests-cache/requests-cache-0.8.1.ebuild |
22 |
rename to dev-python/requests-cache/requests-cache-0.8.1-r1.ebuild |
23 |
index 61afa9af045..b5921df4921 100644 |
24 |
--- a/dev-python/requests-cache/requests-cache-0.8.1.ebuild |
25 |
+++ b/dev-python/requests-cache/requests-cache-0.8.1-r1.ebuild |
26 |
@@ -7,7 +7,7 @@ DISTUTILS_USE_SETUPTOOLS=pyproject.toml |
27 |
PYTHON_COMPAT=( python3_{8..10} ) |
28 |
PYTHON_REQ_USE="sqlite" |
29 |
|
30 |
-inherit distutils-r1 |
31 |
+inherit distutils-r1 optfeature |
32 |
|
33 |
HOMEPAGE=" |
34 |
https://pypi.org/project/requests-cache/ |
35 |
@@ -22,16 +22,20 @@ SLOT="0" |
36 |
KEYWORDS="~amd64 ~x86" |
37 |
|
38 |
RDEPEND=" |
39 |
+ dev-python/attrs[${PYTHON_USEDEP}] |
40 |
+ dev-python/appdirs[${PYTHON_USEDEP}] |
41 |
dev-python/cattrs[${PYTHON_USEDEP}] |
42 |
- dev-python/itsdangerous[${PYTHON_USEDEP}] |
43 |
>=dev-python/requests-2.0.0[${PYTHON_USEDEP}] |
44 |
+ dev-python/urllib3[${PYTHON_USEDEP}] |
45 |
>=dev-python/url-normalize-1.4[${PYTHON_USEDEP}]" |
46 |
BDEPEND=" |
47 |
test? ( |
48 |
+ dev-python/itsdangerous[${PYTHON_USEDEP}] |
49 |
dev-python/pytest-httpbin[${PYTHON_USEDEP}] |
50 |
dev-python/requests-mock[${PYTHON_USEDEP}] |
51 |
dev-python/responses[${PYTHON_USEDEP}] |
52 |
dev-python/timeout-decorator[${PYTHON_USEDEP}] |
53 |
+ dev-python/ujson[${PYTHON_USEDEP}] |
54 |
)" |
55 |
|
56 |
distutils_enable_tests pytest |
57 |
@@ -52,3 +56,12 @@ python_test() { |
58 |
local -x USE_PYTEST_HTTPBIN=true |
59 |
epytest |
60 |
} |
61 |
+ |
62 |
+pkg_postinst() { |
63 |
+ optfeature "redis backend" "dev-python/redis-py" |
64 |
+ optfeature "MongoDB backend" "dev-python/pymongo" |
65 |
+ |
66 |
+ optfeature "JSON serialization" "dev-python/ujson" |
67 |
+ optfeature "YAML serialization" "dev-python/pyyaml" |
68 |
+ optfeature "signing serialized data" "dev-python/itsdangerous" |
69 |
+} |