dev-python/pyaaf2: bump EAPI, PYTHON_COMPAT. Improve tests/docs

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2021-06-30 21:15:52 +03:00
parent aa9cf27e0f
commit e91f7de0e8
No known key found for this signature in database
GPG Key ID: A12750536B5E7010

View File

@ -1,20 +1,19 @@
# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
PYTHON_COMPAT=(python3_{7..9})
PYTHON_COMPAT=(python3_{8..10})
inherit distutils-r1
DESCRIPTION="Read and write Advanced Authoring Format (AAF) files"
HOMEPAGE="http://pyaaf.readthedocs.io/"
SRC_URI="https://github.com/markreidvfx/pyaaf2/archive/v"${PV}".tar.gz -> "${P}".tar.gz"
SRC_URI="https://github.com/markreidvfx/pyaaf2/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc test"
DEPEND="
test? (
@ -22,21 +21,12 @@ DEPEND="
dev-python/numpy[${PYTHON_USEDEP}]
)
"
BDEPEND="doc? ( app-misc/sphinx )"
distutils_enable_tests setup.py
python_compile_all() {
use doc && emake -C docs html
}
python_install_all() {
use doc && HTML_DOCS=( docs/build/html/. )
distutils-r1_python_install_all
}
distutils_enable_tests unittest
distutils_enable_sphinx docs/source
python_test() {
# Tests import from tests/common.py which is breaks unless the dir is added to PYTHONPATH
PYTHONPATH="${S}/tests"
epytest
eunittest
}