dev-python/tekore: version bump 3.0.0

Package-Manager: Portage-3.0.5, Repoman-3.0.1
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
This commit is contained in:
Andrew Ammerlaan
2020-09-04 13:01:07 +02:00
parent 34967aa2ca
commit 2b23ff4b18
3 changed files with 58 additions and 0 deletions

View File

@@ -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

View File

@@ -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'

View File

@@ -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
}