guru/dev-python/sortedcollections/sortedcollections-2.1.0.ebuild
Takuya Wakazono 1029ecd087
dev-python/sortedcollections: enable py3.13
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
2024-09-07 21:54:55 +09:00

38 lines
863 B
Bash

# Copyright 2021-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..13} pypy3 )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1
DESCRIPTION="Apache2 licensed Python sorted collections library"
HOMEPAGE="
https://pypi.org/project/sortedcollections/
https://github.com/grantjenks/python-sortedcollections
"
SRC_URI="https://github.com/grantjenks/python-${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
S="${WORKDIR}/python-${P}"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
RDEPEND="dev-python/sortedcontainers[${PYTHON_USEDEP}]"
BDEPEND="doc? ( ${RDEPEND} )"
distutils_enable_tests pytest
distutils_enable_sphinx docs
src_prepare() {
# breaks pytest
rm tox.ini || die
distutils-r1_src_prepare
}
python_test() {
epytest --doctest-glob="*.rst"
}