commit: 13b48888dad1968f69d8b9445a66723de2a8816f
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 6 05:59:28 2023 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Nov 6 06:22:27 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13b48888
dev-python/tekore: Bump to 5.2.0
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/tekore/Manifest | 1 +
dev-python/tekore/tekore-5.2.0.ebuild | 55 +++++++++++++++++++++++++++++++++++
2 files changed, 56 insertions(+)
diff --git a/dev-python/tekore/Manifest b/dev-python/tekore/Manifest
index 75611da06c69..0535cc86beb5 100644
--- a/dev-python/tekore/Manifest
+++ b/dev-python/tekore/Manifest
@@ -1,2 +1,3 @@
DIST tekore-5.1.0.gh.tar.gz 261207 BLAKE2B
7c52fe1bd0a29da10d846d04543ccca5770e2e5682e5f816fd6ac56c0f351ba2374662187ab71350cf2e8c298175c045c1d35b4512f529b67aef11a4a80a8f15
SHA512
13c8853c707ee2234632e8f051b22df67935afa26c5f4c684728031a78ded88b9d71fff44093d9765a2287ecb5613b8b6b792727d632bce234d89a8668d86ca4
DIST tekore-5.1.1.gh.tar.gz 261257 BLAKE2B
d0ba6a3564f0be269ea3dab8ec2860cc17cff52949f0781fb368a82611b2b9bfd37a018ef9446e078003def5e89de8e5c4219a4c0154baf37cb6e453b7369d0e
SHA512
0eb53cf242619a4646407c375a752877e82b231d187ffb3095eff33bdb3869a75c1194833487b7d377fbe9af6d9cb975714ea293a015743b7377a6eb0fd68424
+DIST tekore-5.2.0.gh.tar.gz 262281 BLAKE2B
84f759ed5856f9fdab2f4ef115cad11e021ac0c0c4006e7d07c23a413778d1c45e68d0b4bdb8234688c99f026daf519047e4ce7760a58c71e75aa30009472117
SHA512
9151d6d83420c8f80b420535b344063814ca2dc0ca5681c196e7c920844ad6b6305562e59a8d4e23c694eab2b47029cc735a4b0a079a98828252a09e75236a73
diff --git a/dev-python/tekore/tekore-5.2.0.ebuild
b/dev-python/tekore/tekore-5.2.0.ebuild
new file mode 100644
index 000000000000..98ce61f606a8
--- /dev/null
+++ b/dev-python/tekore/tekore-5.2.0.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit distutils-r1
+
+DESCRIPTION="Spotify Web API client"
+HOMEPAGE="
+ https://tekore.readthedocs.io/
+ https://github.com/felix-hilden/tekore/
+ https://pypi.org/project/tekore/
+"
+SRC_URI="
+ https://github.com/felix-hilden/${PN}/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="MIT"
+KEYWORDS="~amd64"
+SLOT="0"
+
+RDEPEND="
+ <dev-python/httpx-0.26[${PYTHON_USEDEP}]
+ >=dev-python/pydantic-1.8[${PYTHON_USEDEP}]
+"
+
+BDEPEND="
+ test? (
+ >=dev-python/pydantic-2[${PYTHON_USEDEP}]
+ >=dev-python/pytest-asyncio-0.17[${PYTHON_USEDEP}]
+ dev-python/pytest-httpx[${PYTHON_USEDEP}]
+ )
+"
+
+DOCS=( readme.rst )
+
+distutils_enable_tests pytest
+# TODO: package sphinx_codeautolink
+# distutils_enable_sphinx docs/src \
+# dev-python/sphinx-rtd-theme \
+# dev-python/sphinx-tabs \
+# dev-python/sphinx-autodoc-typehints
+
+EPYTEST_DESELECT=(
+ # Internet
+
tests/auth/expiring.py::TestCredentialsOnline::test_bad_arguments_raises_error
+ # these tests use calls specific to pydantic-2
+ # TODO: reselect when we can depend on >=pydantic-2
+ tests/model.py::TestModel::test_enum_in_model
+ tests/model.py::TestModel::test_unknown_attribute_ignored
+)