commit: 2b23ff4b18e01c5daef416d0731c4ee2bcaaae96
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Fri Sep 4 11:01:07 2020 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Fri Sep 4 11:01:07 2020 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2b23ff4b
dev-python/tekore: version bump 3.0.0
Package-Manager: Portage-3.0.5, Repoman-3.0.1
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
dev-python/tekore/Manifest | 1 +
dev-python/tekore/files/tekore-fix-docs-path.patch | 13 +++++++
dev-python/tekore/tekore-3.0.0.ebuild | 44 ++++++++++++++++++++++
3 files changed, 58 insertions(+)
diff --git a/dev-python/tekore/Manifest b/dev-python/tekore/Manifest
index e158b1c..714ad64 100644
--- a/dev-python/tekore/Manifest
+++ b/dev-python/tekore/Manifest
@@ -1 +1,2 @@
DIST tekore-2.1.3.tar.gz 202522 BLAKE2B
2328116cf0d25e2c55e9f68c38064293bfb3e0d5361d02a7ed9f79a723ede54afeee2a355949ea619c56f02b242497a58044704197b757530cf51273b6970cc4
SHA512
d0895cdeee442bda19aecccd0cc2bd4022284972c535dac42d1aaa3c1e2b6676e9d80515cee44c555e6180b2b81a007fa43e77cb44f81c90e06aad6c6410d981
+DIST tekore-3.0.0.tar.gz 166551 BLAKE2B
e463ace4140bd897053e93000abd5ea4604c11d6bcf4008faa4956dbdc69713d746da242a06681fb4a8138fe2e33c7193d2754a018eec1f5e4b5964090c90193
SHA512
644b2cf49614dfbd06bfa6dde45f01634f01b77eb3997f958962d38caa84c5ea580f224b8d529ec54fc1e4860244ee6f74b5eb163fcb534e0108bbc58f373f72
diff --git a/dev-python/tekore/files/tekore-fix-docs-path.patch
b/dev-python/tekore/files/tekore-fix-docs-path.patch
new file mode 100644
index 0000000..ddd0b3a
--- /dev/null
+++ b/dev-python/tekore/files/tekore-fix-docs-path.patch
@@ -0,0 +1,13 @@
+diff --git a/docs/src/conf.py b/docs/src/conf.py
+index c99ca4e..4f216f8 100644
+--- a/docs/src/conf.py
++++ b/docs/src/conf.py
+@@ -3,7 +3,7 @@ import sys
+ from pathlib import Path
+
+ _root = Path(os.path.realpath(__file__)).parent.parent.parent
+-sys.path.insert(0, _root)
++sys.path.insert(0, str(_root))
+
+
+ project = 'tekore'
diff --git a/dev-python/tekore/tekore-3.0.0.ebuild
b/dev-python/tekore/tekore-3.0.0.ebuild
new file mode 100644
index 0000000..2611f7b
--- /dev/null
+++ b/dev-python/tekore/tekore-3.0.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7,8} )
+
+inherit distutils-r1
+
+DESCRIPTION="Spotify Web API client"
+HOMEPAGE="https://tekore.readthedocs.io
+ https://github.com/felix-hilden/tekore"
+SRC_URI="https://github.com/felix-hilden/${PN}/archive/v${PV}.tar.gz ->
${P}.tar.gz"
+
+LICENSE="MIT"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+
+RDEPEND="
+ dev-python/requests[${PYTHON_USEDEP}]
+ >=dev-python/httpx-0.11[${PYTHON_USEDEP}]
+ <dev-python/httpx-0.15[${PYTHON_USEDEP}]
+"
+
+BDEPEND="test? (
+ >=dev-python/pytest-asyncio-0.11[${PYTHON_USEDEP}]
+ <dev-python/pytest-asyncio-0.15[${PYTHON_USEDEP}]
+)"
+
+# fixes bug in conf.py: 'PosixPath' object has no attribute 'rstrip'
+PATCHES=( "${FILESDIR}/${PN}-fix-docs-path.patch" )
+
+DOCS="readme.rst"
+
+distutils_enable_tests pytest
+distutils_enable_sphinx docs/src dev-python/sphinx_rtd_theme
dev-python/sphinx-autodoc-typehints
+
+python_prepare_all() {
+ # requires network
+ sed -i -e 's:test_bad_arguments_raises_error:_&:' \
+ tests/auth/expiring.py || die
+
+ distutils-r1_python_prepare_all
+}