summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-03-25 09:41:10 +0100
committerMichał Górny <mgorny@gentoo.org>2020-03-25 10:39:39 +0100
commitd2b209c2785cb9d2d995b7e2edca6df25b82a6b3 (patch)
tree9544ad8b15259c8efae773b1dddffa20a0ef1994 /media-video
parentnet-analyzer/wapiti: Remove unused dep on pytest-runner (diff)
downloadgentoo-d2b209c2785cb9d2d995b7e2edca6df25b82a6b3.tar.gz
gentoo-d2b209c2785cb9d2d995b7e2edca6df25b82a6b3.tar.bz2
gentoo-d2b209c2785cb9d2d995b7e2edca6df25b82a6b3.zip
media-video/subliminal: Call pytest directly
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'media-video')
-rw-r--r--media-video/subliminal/subliminal-2.0.5-r2.ebuild2
-rw-r--r--media-video/subliminal/subliminal-2.0.5-r3.ebuild11
-rw-r--r--media-video/subliminal/subliminal-9999.ebuild13
3 files changed, 5 insertions, 21 deletions
diff --git a/media-video/subliminal/subliminal-2.0.5-r2.ebuild b/media-video/subliminal/subliminal-2.0.5-r2.ebuild
index 563745b2e1c3..553544eeb7c5 100644
--- a/media-video/subliminal/subliminal-2.0.5-r2.ebuild
+++ b/media-video/subliminal/subliminal-2.0.5-r2.ebuild
@@ -43,8 +43,6 @@ DEPEND="${RDEPEND}
app-arch/unzip
>=dev-python/vcrpy-1.6.1[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
- dev-python/pytest-cov[${PYTHON_USEDEP}]
- dev-python/pytest-runner[${PYTHON_USEDEP}]
dev-python/sympy[${PYTHON_USEDEP}]
)
"
diff --git a/media-video/subliminal/subliminal-2.0.5-r3.ebuild b/media-video/subliminal/subliminal-2.0.5-r3.ebuild
index d2167d8739af..1f8be45ef01b 100644
--- a/media-video/subliminal/subliminal-2.0.5-r3.ebuild
+++ b/media-video/subliminal/subliminal-2.0.5-r3.ebuild
@@ -19,7 +19,6 @@ SRC_URI="
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="test"
RDEPEND="
>=dev-python/appdirs-1.3[${PYTHON_USEDEP}]
@@ -42,11 +41,7 @@ RDEPEND="
DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
- ${RDEPEND}
app-arch/unzip
- dev-python/pytest-cov[${PYTHON_USEDEP}]
- dev-python/pytest-runner[${PYTHON_USEDEP}]
- dev-python/pytest[${PYTHON_USEDEP}]
dev-python/sympy[${PYTHON_USEDEP}]
>=dev-python/vcrpy-1.6.1[${PYTHON_USEDEP}]
)
@@ -59,6 +54,8 @@ PATCHES=( "${FILESDIR}/${P}-add-missing-comma.patch" )
S="${WORKDIR}/${PN}-${COMMIT_ID}"
+distutils_enable_tests pytest
+
python_prepare_all() {
# Disable code checkers as they require unavailable dependencies.
sed -i -e 's/--\(pep8\|flakes\)//g' pytest.ini || die
@@ -74,7 +71,3 @@ python_prepare_all() {
distutils-r1_python_prepare_all
}
-
-python_test() {
- esetup.py test
-}
diff --git a/media-video/subliminal/subliminal-9999.ebuild b/media-video/subliminal/subliminal-9999.ebuild
index f729768f9ee6..13b314d12fb2 100644
--- a/media-video/subliminal/subliminal-9999.ebuild
+++ b/media-video/subliminal/subliminal-9999.ebuild
@@ -17,8 +17,6 @@ SRC_URI="test? ( mirror://sourceforge/matroska/test_files/matroska_test_w1_1.zip
LICENSE="MIT"
SLOT="0"
KEYWORDS=""
-IUSE="test"
-RESTRICT="!test? ( test )"
RDEPEND="
>=dev-python/appdirs-1.3[${PYTHON_USEDEP}]
@@ -38,17 +36,16 @@ RDEPEND="
>=dev-python/six-1.9.0[${PYTHON_USEDEP}]
>=dev-python/stevedore-1.0.0[${PYTHON_USEDEP}]
"
-DEPEND="${RDEPEND}
+DEPEND="
test? (
app-arch/unzip
- dev-python/pytest-cov[${PYTHON_USEDEP}]
- dev-python/pytest-runner[${PYTHON_USEDEP}]
- dev-python/pytest[${PYTHON_USEDEP}]
dev-python/sympy[${PYTHON_USEDEP}]
>=dev-python/vcrpy-1.6.1[${PYTHON_USEDEP}]
)
"
+distutils_enable_tests pytest
+
src_unpack() {
default_src_unpack
git-r3_src_unpack
@@ -69,7 +66,3 @@ python_prepare_all() {
distutils-r1_python_prepare_all
}
-
-python_test() {
- esetup.py test
-}