1 |
commit: 2b23ff4b18e01c5daef416d0731c4ee2bcaaae96 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
3 |
AuthorDate: Fri Sep 4 11:01:07 2020 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Fri Sep 4 11:01:07 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2b23ff4b |
7 |
|
8 |
dev-python/tekore: version bump 3.0.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.5, Repoman-3.0.1 |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> |
12 |
|
13 |
dev-python/tekore/Manifest | 1 + |
14 |
dev-python/tekore/files/tekore-fix-docs-path.patch | 13 +++++++ |
15 |
dev-python/tekore/tekore-3.0.0.ebuild | 44 ++++++++++++++++++++++ |
16 |
3 files changed, 58 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/tekore/Manifest b/dev-python/tekore/Manifest |
19 |
index e158b1c..714ad64 100644 |
20 |
--- a/dev-python/tekore/Manifest |
21 |
+++ b/dev-python/tekore/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST tekore-2.1.3.tar.gz 202522 BLAKE2B 2328116cf0d25e2c55e9f68c38064293bfb3e0d5361d02a7ed9f79a723ede54afeee2a355949ea619c56f02b242497a58044704197b757530cf51273b6970cc4 SHA512 d0895cdeee442bda19aecccd0cc2bd4022284972c535dac42d1aaa3c1e2b6676e9d80515cee44c555e6180b2b81a007fa43e77cb44f81c90e06aad6c6410d981 |
24 |
+DIST tekore-3.0.0.tar.gz 166551 BLAKE2B e463ace4140bd897053e93000abd5ea4604c11d6bcf4008faa4956dbdc69713d746da242a06681fb4a8138fe2e33c7193d2754a018eec1f5e4b5964090c90193 SHA512 644b2cf49614dfbd06bfa6dde45f01634f01b77eb3997f958962d38caa84c5ea580f224b8d529ec54fc1e4860244ee6f74b5eb163fcb534e0108bbc58f373f72 |
25 |
|
26 |
diff --git a/dev-python/tekore/files/tekore-fix-docs-path.patch b/dev-python/tekore/files/tekore-fix-docs-path.patch |
27 |
new file mode 100644 |
28 |
index 0000000..ddd0b3a |
29 |
--- /dev/null |
30 |
+++ b/dev-python/tekore/files/tekore-fix-docs-path.patch |
31 |
@@ -0,0 +1,13 @@ |
32 |
+diff --git a/docs/src/conf.py b/docs/src/conf.py |
33 |
+index c99ca4e..4f216f8 100644 |
34 |
+--- a/docs/src/conf.py |
35 |
++++ b/docs/src/conf.py |
36 |
+@@ -3,7 +3,7 @@ import sys |
37 |
+ from pathlib import Path |
38 |
+ |
39 |
+ _root = Path(os.path.realpath(__file__)).parent.parent.parent |
40 |
+-sys.path.insert(0, _root) |
41 |
++sys.path.insert(0, str(_root)) |
42 |
+ |
43 |
+ |
44 |
+ project = 'tekore' |
45 |
|
46 |
diff --git a/dev-python/tekore/tekore-3.0.0.ebuild b/dev-python/tekore/tekore-3.0.0.ebuild |
47 |
new file mode 100644 |
48 |
index 0000000..2611f7b |
49 |
--- /dev/null |
50 |
+++ b/dev-python/tekore/tekore-3.0.0.ebuild |
51 |
@@ -0,0 +1,44 @@ |
52 |
+# Copyright 1999-2020 Gentoo Authors |
53 |
+# Distributed under the terms of the GNU General Public License v2 |
54 |
+ |
55 |
+EAPI=7 |
56 |
+ |
57 |
+PYTHON_COMPAT=( python3_{7,8} ) |
58 |
+ |
59 |
+inherit distutils-r1 |
60 |
+ |
61 |
+DESCRIPTION="Spotify Web API client" |
62 |
+HOMEPAGE="https://tekore.readthedocs.io |
63 |
+ https://github.com/felix-hilden/tekore" |
64 |
+SRC_URI="https://github.com/felix-hilden/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
65 |
+ |
66 |
+LICENSE="MIT" |
67 |
+KEYWORDS="~amd64 ~x86" |
68 |
+SLOT="0" |
69 |
+ |
70 |
+RDEPEND=" |
71 |
+ dev-python/requests[${PYTHON_USEDEP}] |
72 |
+ >=dev-python/httpx-0.11[${PYTHON_USEDEP}] |
73 |
+ <dev-python/httpx-0.15[${PYTHON_USEDEP}] |
74 |
+" |
75 |
+ |
76 |
+BDEPEND="test? ( |
77 |
+ >=dev-python/pytest-asyncio-0.11[${PYTHON_USEDEP}] |
78 |
+ <dev-python/pytest-asyncio-0.15[${PYTHON_USEDEP}] |
79 |
+)" |
80 |
+ |
81 |
+# fixes bug in conf.py: 'PosixPath' object has no attribute 'rstrip' |
82 |
+PATCHES=( "${FILESDIR}/${PN}-fix-docs-path.patch" ) |
83 |
+ |
84 |
+DOCS="readme.rst" |
85 |
+ |
86 |
+distutils_enable_tests pytest |
87 |
+distutils_enable_sphinx docs/src dev-python/sphinx_rtd_theme dev-python/sphinx-autodoc-typehints |
88 |
+ |
89 |
+python_prepare_all() { |
90 |
+ # requires network |
91 |
+ sed -i -e 's:test_bad_arguments_raises_error:_&:' \ |
92 |
+ tests/auth/expiring.py || die |
93 |
+ |
94 |
+ distutils-r1_python_prepare_all |
95 |
+} |