dev-python/vecrec: Enable py3.12

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2023-10-27 20:24:38 +02:00
parent 1ea8886945
commit 4fb2e25eb3
+9 -6
View File
@@ -4,29 +4,32 @@
EAPI=8
DISTUTILS_USE_PEP517=flit
PYTHON_COMPAT=( python3_{9..11} )
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1 pypi
DESCRIPTION="2D vector and rectangle classes"
HOMEPAGE="https://github.com/kxgames/vecrec
https://pypi.org/project/vecrec/"
HOMEPAGE="
https://github.com/kxgames/vecrec/
https://pypi.org/project/vecrec/
"
LICENSE="MIT"
KEYWORDS="~amd64"
SLOT="0"
RDEPEND="dev-python/autoprop[${PYTHON_USEDEP}]"
RDEPEND="
dev-python/autoprop[${PYTHON_USEDEP}]
"
distutils_enable_tests pytest
src_prepare() {
sed -e '/addopts/d' -i tests/pytest.ini || die
sed -e '/build-backend/s/flit.buildapi/flit_core.buildapi/' \
-e '/requires/s/flit/flit_core/' -i pyproject.toml || die
distutils-r1_src_prepare
}
python_test() {
epytest tests
epytest -o addopts= tests
}