1 |
commit: 2bc209fb011e87ee41f7bf2111eb68a0187f913d |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
3 |
AuthorDate: Mon Mar 9 16:38:35 2020 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Mon Mar 9 16:38:35 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2bc209fb |
7 |
|
8 |
dev-python/tekore: depend on dataclasses if py3_6 |
9 |
|
10 |
Package-Manager: Portage-2.3.93, Repoman-2.3.20 |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> |
12 |
|
13 |
dev-python/tekore/tekore-1.4.0.ebuild | 23 +++++++---------------- |
14 |
1 file changed, 7 insertions(+), 16 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/tekore/tekore-1.4.0.ebuild b/dev-python/tekore/tekore-1.4.0.ebuild |
17 |
index 88c60d0..93f8f55 100644 |
18 |
--- a/dev-python/tekore/tekore-1.4.0.ebuild |
19 |
+++ b/dev-python/tekore/tekore-1.4.0.ebuild |
20 |
@@ -3,7 +3,7 @@ |
21 |
|
22 |
EAPI=7 |
23 |
|
24 |
-PYTHON_COMPAT=( python3_7 ) |
25 |
+PYTHON_COMPAT=( python3_{6,7} ) |
26 |
|
27 |
inherit distutils-r1 |
28 |
|
29 |
@@ -16,25 +16,16 @@ LICENSE="MIT" |
30 |
KEYWORDS="~amd64 ~x86" |
31 |
SLOT="0" |
32 |
|
33 |
-distutils_enable_sphinx docs/src |
34 |
- |
35 |
-# the enable_sphinx fucntion seems to act strange when there is only 1 PYTHON_COMPAT |
36 |
-# repoman says: |
37 |
-# dev-python/tekore/tekore-1.1.0.ebuild: BDEPEND: ~x86(default/linux/x86/17.0/systemd) |
38 |
-# [ 'dev-python/sphinx[python_targets_python3_7(-),python_single_target_python3_7(+)]'] |
39 |
-# therefore we overwrite the deps that the function adds here: |
40 |
-BDEPEND="doc? ( |
41 |
- dev-python/sphinx[${PYTHON_USEDEP}] |
42 |
- dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] |
43 |
- dev-python/sphinx-autodoc-typehints[${PYTHON_USEDEP}] )" |
44 |
- |
45 |
-RDEPEND="dev-python/requests[${PYTHON_USEDEP}] |
46 |
- dev-python/httpx[${PYTHON_USEDEP}] |
47 |
- media-sound/spotify" |
48 |
+RDEPEND=" |
49 |
+ dev-python/requests[${PYTHON_USEDEP}] |
50 |
+ ~dev-python/httpx-0.11.1[${PYTHON_USEDEP}] |
51 |
+ media-sound/spotify |
52 |
+ python_targets_python3_6? ( dev-python/dataclasses[python_targets_python3_6] )" |
53 |
|
54 |
DOCS="readme.rst" |
55 |
|
56 |
distutils_enable_tests pytest |
57 |
+distutils_enable_sphinx docs/src dev-python/sphinx_rtd_theme dev-python/sphinx-autodoc-typehints |
58 |
|
59 |
python_test() { |
60 |
pytest -vv tests/* || die "Tests fail with ${EPYTHON}" |