Diff subliminal-2.1.0-r1 with a subliminal-2.1.0-r2
/usr/portage/media-video/subliminal/subliminal-2.1.0-r2.ebuild 2023-10-09 14:52:31.832368409 +0300 | ||
---|---|---|
1 | 1 |
# Copyright 1999-2023 Gentoo Authors |
2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 | 3 | |
4 |
EAPI=7 |
|
4 |
EAPI=8 |
|
5 | 5 | |
6 |
PYTHON_COMPAT=( python3_{9..10} ) |
|
6 |
DISTUTILS_USE_PEP517=setuptools |
|
7 |
PYTHON_COMPAT=( python3_{9..11} ) |
|
7 | 8 |
PYTHON_REQ_USE='xml(+)' |
8 |
DISTUTILS_USE_SETUPTOOLS=rdepend |
|
9 | 9 | |
10 | 10 |
inherit distutils-r1 |
11 | 11 | |
... | ... | |
15 | 15 |
EGIT_BRANCH="develop" |
16 | 16 |
else |
17 | 17 |
SRC_URI="https://github.com/Diaoul/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
18 |
KEYWORDS="amd64 ~arm ~arm64 ~x86" |
|
18 | 19 |
fi |
19 | 20 | |
20 | 21 |
DESCRIPTION="Python library to search and download subtitles" |
... | ... | |
23 | 24 | |
24 | 25 |
LICENSE="MIT" |
25 | 26 |
SLOT="0" |
26 |
KEYWORDS="amd64 ~arm ~arm64 ~x86" |
|
27 | 27 | |
28 | 28 |
BDEPEND=" |
29 | 29 |
test? ( |
... | ... | |
51 | 51 |
" |
52 | 52 | |
53 | 53 |
PATCHES=( |
54 |
"${FILESDIR}/${P}-fix-pytest-warning.patch" |
|
54 |
"${FILESDIR}"/${P}-fix-pytest-warning.patch |
|
55 |
"${FILESDIR}"/${PN}-2.1.0-rarfile-4.0-compat.patch |
|
55 | 56 |
) |
56 | 57 | |
57 | 58 |
distutils_enable_tests pytest |
... | ... | |
81 | 82 |
} |
82 | 83 | |
83 | 84 |
python_test() { |
84 |
local skipped_tests=( |
|
85 |
EPYTEST_DESELECT=( |
|
85 | 86 |
tests/test_core.py::test_scan_archive_with_one_video |
86 | 87 |
tests/test_core.py::test_scan_archive_with_multiple_videos |
87 | 88 |
tests/test_core.py::test_scan_archive_with_no_video |
88 | 89 |
tests/test_core.py::test_scan_password_protected_archive |
90 |
# NotImplementedError |
|
91 |
tests/test_core.py::test_save_subtitles |
|
89 | 92 |
) |
90 | 93 | |
91 |
# Two tests that list providers rely on entry points |
|
92 |
# so they need the package to be installed |
|
93 |
distutils_install_for_testing |
|
94 |
pytest -vv --ignore ${PN}/test/test_core.py ${skipped_tests[@]/#/--deselect } \ |
|
95 |
|| die "Tests fail with ${EPYTHON}" |
|
94 |
epytest |
|
96 | 95 |
} |