dev-python/py: Unbundle apipkg

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-08-01 19:16:06 +02:00
parent 370daf71c2
commit aaa0cf95d4

View File

@@ -0,0 +1,38 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..15} python3_{13..15}t pypy3_11 )
inherit distutils-r1 pypi
DESCRIPTION="library with cross-python path, ini-parsing, io, code, log facilities"
HOMEPAGE="
https://py.readthedocs.io/
https://github.com/pytest-dev/py/
https://pypi.org/project/py/
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos ~x64-solaris"
# This package is unmaintained and keeps being broken periodically.
RESTRICT=test
RDEPEND="
dev-python/apipkg[${PYTHON_USEDEP}]
"
BDEPEND="
dev-python/setuptools-scm[${PYTHON_USEDEP}]
"
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
src_prepare() {
distutils-r1_src_prepare
rm -r py/_vendored_packages || die
}