dev-python/pydispatcher: Port up to py3.9

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2020-11-19 20:27:15 +01:00
parent 47a1b34c41
commit f71a624eb4

View File

@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python3_{6,7} )
PYTHON_COMPAT=( python3_{6..9} )
inherit distutils-r1
@@ -10,16 +10,14 @@ MY_P="PyPyDispatcher-${PV}"
DESCRIPTION="Multi-producer-multi-consumer signal dispatching mechanism"
HOMEPAGE="https://github.com/scrapy/pypydispatcher https://pypi.org/project/PyPyDispatcher/"
SRC_URI="mirror://pypi/${MY_P::1}/${MY_P%-*}/${MY_P}.tar.gz"
S=${WORKDIR}/${MY_P}
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~ppc ~x86"
IUSE="doc"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND=""
S=${WORKDIR}/${MY_P}
distutils_enable_tests unittest
python_compile_all() {
if use doc; then
@@ -28,10 +26,6 @@ python_compile_all() {
fi
}
python_test() {
"${EPYTHON}" -m unittest discover -v || die "Tests fail for ${EPYTHON}"
}
python_install_all() {
use doc && local HTML_DOCS=( docs/pydoc/. )
distutils-r1_python_install_all