dev-python/slimit: revbump to silence warning on module import

Closes: https://bugs.gentoo.org/660510
Closes: https://github.com/gentoo/gentoo/pull/9068
Package-Manager: Portage-2.3.40, Repoman-2.3.9
This commit is contained in:
PPed72
2018-07-06 15:18:35 +02:00
committed by Michał Górny
parent b0d790b20a
commit c74caf635c

View File

@@ -15,7 +15,7 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RDEPEND="dev-python/ply[${PYTHON_USEDEP}]
RDEPEND="dev-python/ply:=[${PYTHON_USEDEP}]
dev-python/setuptools[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
test? (
@@ -25,6 +25,17 @@ DEPEND="${RDEPEND}
PATCHES=( "${FILESDIR}/${P}-fix-python3.patch" )
python_compile() {
distutils-r1_python_compile
rm "${BUILD_DIR}"/lib/slimit/*tab.py || die
# Regenerate yacctab.py and lextab.py files to avoid warnings whenever
# the module is imported. See https://github.com/rspivak/slimit/issues/97
# for details
"${EPYTHON}" -B -c 'import slimit;slimit.minify("")' || die
}
python_test() {
esetup.py pytest --addopts "${BUILD_DIR}" || die "Testing failed with ${EPYTHON}"
}