* [gentoo-commits] repo/gentoo:master commit in: media-video/subliminal/, media-video/subliminal/files/
@ 2020-06-01 8:41 Joonas Niilola
0 siblings, 0 replies; 5+ messages in thread
From: Joonas Niilola @ 2020-06-01 8:41 UTC (permalink / raw
To: gentoo-commits
commit: 67491056177628c17bbfd42349fe5a75d8b59d2d
Author: Sam James (sam_c) <sam <AT> cmpct <DOT> info>
AuthorDate: Mon May 11 22:13:15 2020 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Mon Jun 1 08:41:46 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67491056
media-video/subliminal: Bump
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Sam James (sam_c) <sam <AT> cmpct.info>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
media-video/subliminal/Manifest | 1 +
.../subliminal-2.1.0-fix-pytest-warning.patch | 11 +++
media-video/subliminal/subliminal-2.1.0.ebuild | 83 ++++++++++++++++++++++
3 files changed, 95 insertions(+)
diff --git a/media-video/subliminal/Manifest b/media-video/subliminal/Manifest
index 9a2ec304943..df7a19ff8ab 100644
--- a/media-video/subliminal/Manifest
+++ b/media-video/subliminal/Manifest
@@ -1,2 +1,3 @@
DIST matroska_test_w1_1.zip 184550509 BLAKE2B f111725aa08267661942072c2d4ac019d3d322c4e933aad10afb3aa6f69bb3469114c4400d161e53d8a7618b818b22465177460003804a7ac3e69fa4f4db000d SHA512 f170a8e83dab15228f992b3692330163da2402b8e436c7fa195ac1ecc06cf1eaf1a48d8c99a85c031122c158c2d4006023aae75d5b7805385ba25a6d601cb78f
DIST subliminal-2.0.5-r2.tar.gz 4442435 BLAKE2B ea2139bd61344d6a0cb4b48a2b75cbfd29905adc81bca25a332443725fff80bc03b58704d0e6289d44ddc26104e15744f67acb7e0e4eafae584098b02fb4c007 SHA512 b0f99c6b2fa6bc3860c86592bb428c7b4b34836df7a619b19d69b15532a68b4d05369f724131e120d4b390bd91f430aea442aef72ebc00ae8e3d31a457925eec
+DIST subliminal-2.1.0.tar.gz 5480458 BLAKE2B 249bdd027d99dfb0b81d939af2dc08f62b52dca2c8618f1006ca76eee41c2443b450076eddc1aa533997beca8cdf9016b884d7eceeebbf4e48ced91dae1a2361 SHA512 9b26ae594895470830547eed604aa5b28b75f590e5be12c2d5a478c5daf798d405f209639bd54dce0565b0e27d1b0daa5bef87dfa8590af61f2ab1e287c41060
diff --git a/media-video/subliminal/files/subliminal-2.1.0-fix-pytest-warning.patch b/media-video/subliminal/files/subliminal-2.1.0-fix-pytest-warning.patch
new file mode 100644
index 00000000000..b3d6cd019fd
--- /dev/null
+++ b/media-video/subliminal/files/subliminal-2.1.0-fix-pytest-warning.patch
@@ -0,0 +1,11 @@
+diff --git a/pytest.ini b/pytest.ini
+index cfa3e35..e85c34b 100644
+--- a/pytest.ini
++++ b/pytest.ini
+@@ -9,3 +9,6 @@ flakes-ignore =
+ docs/conf.py ALL
+ subliminal/__init__.py UnusedImport
+ doctest_optionflags = NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL
++markers =
++ integration
++ converter
diff --git a/media-video/subliminal/subliminal-2.1.0.ebuild b/media-video/subliminal/subliminal-2.1.0.ebuild
new file mode 100644
index 00000000000..bca1f740d38
--- /dev/null
+++ b/media-video/subliminal/subliminal-2.1.0.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7} )
+PYTHON_REQ_USE='xml(+)'
+
+inherit distutils-r1
+
+DESCRIPTION="Python library to search and download subtitles"
+HOMEPAGE="https://github.com/Diaoul/subliminal https://pypi.org/project/subliminal/"
+SRC_URI="
+ https://github.com/Diaoul/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
+ test? ( mirror://sourceforge/matroska/test_files/matroska_test_w1_1.zip )
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ >=dev-python/appdirs-1.3[${PYTHON_USEDEP}]
+ >=dev-python/babelfish-0.5.2[${PYTHON_USEDEP}]
+ >=dev-python/beautifulsoup-4.4.0:4[${PYTHON_USEDEP}]
+ >=dev-python/chardet-2.3.0[${PYTHON_USEDEP}]
+ >=dev-python/click-4.0[${PYTHON_USEDEP}]
+ dev-python/decorator[${PYTHON_USEDEP}]
+ >=dev-python/dogpile-cache-0.6.0[${PYTHON_USEDEP}]
+ >=dev-python/enzyme-0.4.1[${PYTHON_USEDEP}]
+ >=dev-python/guessit-2.0.1[${PYTHON_USEDEP}]
+ >=dev-python/pysrt-1.0.1[${PYTHON_USEDEP}]
+ >=dev-python/pytz-2012c[${PYTHON_USEDEP}]
+ >=dev-python/rarfile-2.7[compressed,${PYTHON_USEDEP}]
+ >=dev-python/requests-2.0[${PYTHON_USEDEP}]
+ >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
+ >=dev-python/stevedore-1.0.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ app-arch/unzip
+ dev-python/sympy[${PYTHON_USEDEP}]
+ >=dev-python/vcrpy-1.6.1[${PYTHON_USEDEP}]
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/${P}-fix-pytest-warning.patch"
+)
+
+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
+
+ # Disable unconditional dependency on dev-python/pytest-runner.
+ sed -i -e "s|'pytest-runner'||g" setup.py || die
+
+ if use test; then
+ mkdir -p tests/data/mkv || die
+ ln -s "${WORKDIR}"/test*.mkv tests/data/mkv/ || die
+ fi
+
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ local skipped_tests=(
+ tests/test_core.py::test_scan_archive_with_one_video
+ tests/test_core.py::test_scan_archive_with_multiple_videos
+ tests/test_core.py::test_scan_archive_with_no_video
+ tests/test_core.py::test_scan_password_protected_archive
+ )
+
+ # Two tests that list providers rely on entry points
+ # so they need the package to be installed
+ distutils_install_for_testing
+ pytest -vv --ignore ${PN}/test/test_core.py ${skipped_tests[@]/#/--deselect } \
+ || die "Tests fail with ${EPYTHON}"
+}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-video/subliminal/, media-video/subliminal/files/
@ 2025-05-06 16:27 Sam James
0 siblings, 0 replies; 5+ messages in thread
From: Sam James @ 2025-05-06 16:27 UTC (permalink / raw
To: gentoo-commits
commit: d3ae7152829432dc1304b8153a4709d3b50c53f4
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue May 6 16:27:04 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue May 6 16:27:21 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3ae7152
media-video/subliminal: add 2.3.0
Bug: https://bugs.gentoo.org/955197
Signed-off-by: Sam James <sam <AT> gentoo.org>
media-video/subliminal/Manifest | 1 +
.../files/subliminal-2.3.0-win32-tests.patch | 52 ++++++++++++++++++++++
...liminal-9999.ebuild => subliminal-2.3.0.ebuild} | 32 ++++++++++---
media-video/subliminal/subliminal-9999.ebuild | 32 ++++++++++---
4 files changed, 103 insertions(+), 14 deletions(-)
diff --git a/media-video/subliminal/Manifest b/media-video/subliminal/Manifest
index 610eecca1835..4b6790883fb5 100644
--- a/media-video/subliminal/Manifest
+++ b/media-video/subliminal/Manifest
@@ -1,3 +1,4 @@
DIST matroska_test_w1_1.zip 184550509 BLAKE2B f111725aa08267661942072c2d4ac019d3d322c4e933aad10afb3aa6f69bb3469114c4400d161e53d8a7618b818b22465177460003804a7ac3e69fa4f4db000d SHA512 f170a8e83dab15228f992b3692330163da2402b8e436c7fa195ac1ecc06cf1eaf1a48d8c99a85c031122c158c2d4006023aae75d5b7805385ba25a6d601cb78f
DIST subliminal-2.1.0.tar.gz 5480458 BLAKE2B 249bdd027d99dfb0b81d939af2dc08f62b52dca2c8618f1006ca76eee41c2443b450076eddc1aa533997beca8cdf9016b884d7eceeebbf4e48ced91dae1a2361 SHA512 9b26ae594895470830547eed604aa5b28b75f590e5be12c2d5a478c5daf798d405f209639bd54dce0565b0e27d1b0daa5bef87dfa8590af61f2ab1e287c41060
DIST subliminal-2.2.1.gh.tar.gz 3165965 BLAKE2B 9b69547540773d1434117a0e81bebcb3da49f97c145285a2bb2349ff8d6a4cb35f42f8fa8c306d2afedaf0ccff275908526a0f6d6c7ba7846aea6acd2b154b92 SHA512 4e59ccfe42419bb33df395aad6c2255ad03cfe7311fc754ea591be7c9e33ef5cc3e980a1da2839afe79e3b22024b3e7b458b03b4e6270ea8bcadc0337d7e37bf
+DIST subliminal-2.3.0.gh.tar.gz 3531908 BLAKE2B cdc2df8fb9cff915c9eb7cd6cf490ad460457ebb197e7f79a12acef8eb58bec552e12fd3ead5efb2f95edb0b79d4d4ef42fa64aa18fe516868d0c49c648c2050 SHA512 400a57265d4086776d613256e09d900f554c59e225019d4f1efa733fb6dbf7139be37de906603e7569977f974d3e618217993839f8c006f57ca533afa48f17df
diff --git a/media-video/subliminal/files/subliminal-2.3.0-win32-tests.patch b/media-video/subliminal/files/subliminal-2.3.0-win32-tests.patch
new file mode 100644
index 000000000000..377b518c1ad5
--- /dev/null
+++ b/media-video/subliminal/files/subliminal-2.3.0-win32-tests.patch
@@ -0,0 +1,52 @@
+https://github.com/Diaoul/subliminal/commit/8f410a261a490cea5f10b60afe281490859b0977
+
+From 8f410a261a490cea5f10b60afe281490859b0977 Mon Sep 17 00:00:00 2001
+From: getzze <getzze@gmail.com>
+Date: Mon, 5 May 2025 23:10:49 +0100
+Subject: [PATCH] Make win32-setctime an optional tests dependency, only for
+ win32 platform (#1278)
+
+---
+ pyproject.toml | 2 +-
+ tests/test_video.py | 7 ++++++-
+ 2 files changed, 7 insertions(+), 2 deletions(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index bbe8f7c99..52054d5ec 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -73,7 +73,7 @@ tests = [
+ "sympy",
+ "colorama", # used in scripts/
+ "vcrpy>=5", # keep synchronized with docs dependencies
+- "win32-setctime",
++ "win32-setctime; sys_platform=='win32'",
+ "importlib_metadata>=4.6; python_version<'3.10'",
+ ]
+ types = [
+diff --git a/tests/test_video.py b/tests/test_video.py
+index c8625b5d3..06c737596 100644
+--- a/tests/test_video.py
++++ b/tests/test_video.py
+@@ -7,7 +7,6 @@
+ from unittest.mock import Mock
+
+ import pytest
+-from win32_setctime import SUPPORTED, setctime
+
+ from subliminal.utils import sanitize, timestamp
+ from subliminal.video import Episode, Movie, Video
+@@ -40,6 +39,12 @@ def test_video_exists_age_no_use_ctime(
+
+
+ def test_video_exists_age(movies: dict[str, Movie], tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:
++ try:
++ from win32_setctime import SUPPORTED, setctime
++ except (ImportError, ModuleNotFoundError):
++ SUPPORTED = False
++ setctime = None
++
+ monkeypatch.chdir(tmp_path)
+ video = movies['man_of_steel']
+ video_path = tmp_path / video.name
+
diff --git a/media-video/subliminal/subliminal-9999.ebuild b/media-video/subliminal/subliminal-2.3.0.ebuild
similarity index 67%
copy from media-video/subliminal/subliminal-9999.ebuild
copy to media-video/subliminal/subliminal-2.3.0.ebuild
index e725e00788da..fcca62900667 100644
--- a/media-video/subliminal/subliminal-9999.ebuild
+++ b/media-video/subliminal/subliminal-2.3.0.ebuild
@@ -3,11 +3,11 @@
EAPI=8
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..13} )
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( python3_{11..13} )
PYTHON_REQ_USE='xml(+)'
-inherit distutils-r1
+inherit distutils-r1 optfeature
DESCRIPTION="Python library to search and download subtitles"
HOMEPAGE="https://github.com/Diaoul/subliminal https://pypi.org/project/subliminal/"
@@ -18,7 +18,7 @@ if [[ ${PV} == 9999 ]] ; then
EGIT_BRANCH="develop"
else
SRC_URI="https://github.com/Diaoul/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
- KEYWORDS="~amd64 ~arm64 ~x86"
+ KEYWORDS="~amd64"
fi
SRC_URI+=" test? ( https://downloads.sourceforge.net/matroska/test_files/matroska_test_w1_1.zip )"
@@ -40,16 +40,16 @@ RDEPEND="
>=dev-python/click-8.0[${PYTHON_USEDEP}]
>=dev-python/click-option-group-0.5.6[${PYTHON_USEDEP}]
dev-python/decorator[${PYTHON_USEDEP}]
+ >=dev-python/defusedxml-0.7.1[${PYTHON_USEDEP}]
>=dev-python/dogpile-cache-1.0[${PYTHON_USEDEP}]
- >=dev-python/enzyme-0.5.0[${PYTHON_USEDEP}]
>=dev-python/guessit-2.0.1[${PYTHON_USEDEP}]
+ >=dev-python/knowit-0.5.5[${PYTHON_USEDEP}]
>=dev-python/platformdirs-4.2[${PYTHON_USEDEP}]
>=dev-python/pysubs2-1.7[${PYTHON_USEDEP}]
- >=dev-python/rarfile-2.7[compressed,${PYTHON_USEDEP}]
>=dev-python/requests-2.0[${PYTHON_USEDEP}]
>=dev-python/srt-3.5[${PYTHON_USEDEP}]
>=dev-python/stevedore-3.0[${PYTHON_USEDEP}]
- >=dev-python/tomli-2[${PYTHON_USEDEP}]
+ >=dev-python/tomlkit-0.13.2[${PYTHON_USEDEP}]
"
EPYTEST_DESELECT=(
@@ -58,11 +58,25 @@ EPYTEST_DESELECT=(
tests/test_core.py::test_scan_archive_with_multiple_videos
tests/test_core.py::test_scan_archive_with_no_video
tests/test_core.py::test_scan_password_protected_archive
+ tests/test_archives.py::test_is_supported_archive
+ tests/test_archives.py::test_scan_archive_with_one_video
+ tests/test_archives.py::test_scan_archive_with_multiple_videos
+ tests/test_archives.py::test_scan_archive_with_no_video
+ tests/test_archives.py::test_scan_password_protected_archive
+ tests/test_archives.py::test_scan_archive_error
+ tests/test_archives.py::test_scan_videos_error
+ 'tests/test_cli.py::test_cli_download_use_absolute_path[never]'
+ 'tests/test_cli.py::test_cli_download_use_absolute_path[always]'
+ 'tests/test_cli.py::test_cli_download_use_absolute_path[fallback]'
# TODO
tests/test_core.py::test_refine_video_metadata
)
+PATCHES=(
+ "${FILESDIR}"/${P}-win32-tests.patch
+)
+
distutils_enable_tests pytest
src_unpack() {
@@ -82,3 +96,7 @@ python_prepare_all() {
distutils-r1_python_prepare_all
}
+
+pkg_postinst() {
+ optfeature "RAR file support" dev-python/rarfile[compressed]
+}
diff --git a/media-video/subliminal/subliminal-9999.ebuild b/media-video/subliminal/subliminal-9999.ebuild
index e725e00788da..fcca62900667 100644
--- a/media-video/subliminal/subliminal-9999.ebuild
+++ b/media-video/subliminal/subliminal-9999.ebuild
@@ -3,11 +3,11 @@
EAPI=8
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..13} )
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( python3_{11..13} )
PYTHON_REQ_USE='xml(+)'
-inherit distutils-r1
+inherit distutils-r1 optfeature
DESCRIPTION="Python library to search and download subtitles"
HOMEPAGE="https://github.com/Diaoul/subliminal https://pypi.org/project/subliminal/"
@@ -18,7 +18,7 @@ if [[ ${PV} == 9999 ]] ; then
EGIT_BRANCH="develop"
else
SRC_URI="https://github.com/Diaoul/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
- KEYWORDS="~amd64 ~arm64 ~x86"
+ KEYWORDS="~amd64"
fi
SRC_URI+=" test? ( https://downloads.sourceforge.net/matroska/test_files/matroska_test_w1_1.zip )"
@@ -40,16 +40,16 @@ RDEPEND="
>=dev-python/click-8.0[${PYTHON_USEDEP}]
>=dev-python/click-option-group-0.5.6[${PYTHON_USEDEP}]
dev-python/decorator[${PYTHON_USEDEP}]
+ >=dev-python/defusedxml-0.7.1[${PYTHON_USEDEP}]
>=dev-python/dogpile-cache-1.0[${PYTHON_USEDEP}]
- >=dev-python/enzyme-0.5.0[${PYTHON_USEDEP}]
>=dev-python/guessit-2.0.1[${PYTHON_USEDEP}]
+ >=dev-python/knowit-0.5.5[${PYTHON_USEDEP}]
>=dev-python/platformdirs-4.2[${PYTHON_USEDEP}]
>=dev-python/pysubs2-1.7[${PYTHON_USEDEP}]
- >=dev-python/rarfile-2.7[compressed,${PYTHON_USEDEP}]
>=dev-python/requests-2.0[${PYTHON_USEDEP}]
>=dev-python/srt-3.5[${PYTHON_USEDEP}]
>=dev-python/stevedore-3.0[${PYTHON_USEDEP}]
- >=dev-python/tomli-2[${PYTHON_USEDEP}]
+ >=dev-python/tomlkit-0.13.2[${PYTHON_USEDEP}]
"
EPYTEST_DESELECT=(
@@ -58,11 +58,25 @@ EPYTEST_DESELECT=(
tests/test_core.py::test_scan_archive_with_multiple_videos
tests/test_core.py::test_scan_archive_with_no_video
tests/test_core.py::test_scan_password_protected_archive
+ tests/test_archives.py::test_is_supported_archive
+ tests/test_archives.py::test_scan_archive_with_one_video
+ tests/test_archives.py::test_scan_archive_with_multiple_videos
+ tests/test_archives.py::test_scan_archive_with_no_video
+ tests/test_archives.py::test_scan_password_protected_archive
+ tests/test_archives.py::test_scan_archive_error
+ tests/test_archives.py::test_scan_videos_error
+ 'tests/test_cli.py::test_cli_download_use_absolute_path[never]'
+ 'tests/test_cli.py::test_cli_download_use_absolute_path[always]'
+ 'tests/test_cli.py::test_cli_download_use_absolute_path[fallback]'
# TODO
tests/test_core.py::test_refine_video_metadata
)
+PATCHES=(
+ "${FILESDIR}"/${P}-win32-tests.patch
+)
+
distutils_enable_tests pytest
src_unpack() {
@@ -82,3 +96,7 @@ python_prepare_all() {
distutils-r1_python_prepare_all
}
+
+pkg_postinst() {
+ optfeature "RAR file support" dev-python/rarfile[compressed]
+}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-video/subliminal/, media-video/subliminal/files/
@ 2023-02-18 2:09 Sam James
0 siblings, 0 replies; 5+ messages in thread
From: Sam James @ 2023-02-18 2:09 UTC (permalink / raw
To: gentoo-commits
commit: f2a9993afbc4a4ced0c2a03a57e52515e2d4e4cf
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 18 01:53:18 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Feb 18 02:09:17 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2a9993a
media-video/subliminal: enable py3.11, use PEP517, fix runtime w/ rarfile
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../subliminal-2.1.0-rarfile-4.0-compat.patch | 25 ++++++++++++++++++++++
...inal-9999.ebuild => subliminal-2.1.0-r2.ebuild} | 20 ++++++++---------
media-video/subliminal/subliminal-9999.ebuild | 20 ++++++++---------
3 files changed, 45 insertions(+), 20 deletions(-)
diff --git a/media-video/subliminal/files/subliminal-2.1.0-rarfile-4.0-compat.patch b/media-video/subliminal/files/subliminal-2.1.0-rarfile-4.0-compat.patch
new file mode 100644
index 000000000000..55b8b9484808
--- /dev/null
+++ b/media-video/subliminal/files/subliminal-2.1.0-rarfile-4.0-compat.patch
@@ -0,0 +1,25 @@
+https://github.com/Diaoul/subliminal/pull/1045
+
+From e9ed47e61a63ad0e0cdb036375ffa5a144953f1e Mon Sep 17 00:00:00 2001
+From: Eduardo Soares <eduardosoares.pt@gmail.com>
+Date: Fri, 24 Dec 2021 17:08:04 +0000
+Subject: [PATCH] Fix removal of custom check from rarfile dependency
+
+---
+ subliminal/providers/legendastv.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/subliminal/providers/legendastv.py b/subliminal/providers/legendastv.py
+index 9d696ca24..bf57a22dc 100644
+--- a/subliminal/providers/legendastv.py
++++ b/subliminal/providers/legendastv.py
+@@ -161,7 +161,7 @@ def __init__(self, username=None, password=None):
+
+ # Provider needs UNRAR installed. If not available raise ConfigurationError
+ try:
+- rarfile.custom_check([rarfile.UNRAR_TOOL], True)
++ rarfile.tool_setup(True, False, False, True)
+ except rarfile.RarExecError:
+ raise ConfigurationError('UNRAR tool not available')
+
+
diff --git a/media-video/subliminal/subliminal-9999.ebuild b/media-video/subliminal/subliminal-2.1.0-r2.ebuild
similarity index 85%
copy from media-video/subliminal/subliminal-9999.ebuild
copy to media-video/subliminal/subliminal-2.1.0-r2.ebuild
index 792931859484..a3c58afc2d5e 100644
--- a/media-video/subliminal/subliminal-9999.ebuild
+++ b/media-video/subliminal/subliminal-2.1.0-r2.ebuild
@@ -1,11 +1,11 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
-PYTHON_COMPAT=( python3_{9..10} )
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} )
PYTHON_REQ_USE='xml(+)'
-DISTUTILS_USE_SETUPTOOLS=rdepend
inherit distutils-r1
@@ -15,6 +15,7 @@ if [[ ${PV} == 9999 ]] ; then
EGIT_BRANCH="develop"
else
SRC_URI="https://github.com/Diaoul/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~arm64 ~x86"
fi
DESCRIPTION="Python library to search and download subtitles"
@@ -50,7 +51,8 @@ RDEPEND="
"
PATCHES=(
- "${FILESDIR}/${PN}-2.1.0-fix-pytest-warning.patch"
+ "${FILESDIR}"/${P}-fix-pytest-warning.patch
+ "${FILESDIR}"/${PN}-2.1.0-rarfile-4.0-compat.patch
)
distutils_enable_tests pytest
@@ -80,16 +82,14 @@ python_prepare_all() {
}
python_test() {
- local skipped_tests=(
+ EPYTEST_DESELECT=(
tests/test_core.py::test_scan_archive_with_one_video
tests/test_core.py::test_scan_archive_with_multiple_videos
tests/test_core.py::test_scan_archive_with_no_video
tests/test_core.py::test_scan_password_protected_archive
+ # NotImplementedError
+ tests/test_core.py::test_save_subtitles
)
- # Two tests that list providers rely on entry points
- # so they need the package to be installed
- distutils_install_for_testing
- pytest -vv --ignore ${PN}/test/test_core.py ${skipped_tests[@]/#/--deselect } \
- || die "Tests fail with ${EPYTHON}"
+ epytest
}
diff --git a/media-video/subliminal/subliminal-9999.ebuild b/media-video/subliminal/subliminal-9999.ebuild
index 792931859484..a3c58afc2d5e 100644
--- a/media-video/subliminal/subliminal-9999.ebuild
+++ b/media-video/subliminal/subliminal-9999.ebuild
@@ -1,11 +1,11 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
-PYTHON_COMPAT=( python3_{9..10} )
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} )
PYTHON_REQ_USE='xml(+)'
-DISTUTILS_USE_SETUPTOOLS=rdepend
inherit distutils-r1
@@ -15,6 +15,7 @@ if [[ ${PV} == 9999 ]] ; then
EGIT_BRANCH="develop"
else
SRC_URI="https://github.com/Diaoul/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~arm64 ~x86"
fi
DESCRIPTION="Python library to search and download subtitles"
@@ -50,7 +51,8 @@ RDEPEND="
"
PATCHES=(
- "${FILESDIR}/${PN}-2.1.0-fix-pytest-warning.patch"
+ "${FILESDIR}"/${P}-fix-pytest-warning.patch
+ "${FILESDIR}"/${PN}-2.1.0-rarfile-4.0-compat.patch
)
distutils_enable_tests pytest
@@ -80,16 +82,14 @@ python_prepare_all() {
}
python_test() {
- local skipped_tests=(
+ EPYTEST_DESELECT=(
tests/test_core.py::test_scan_archive_with_one_video
tests/test_core.py::test_scan_archive_with_multiple_videos
tests/test_core.py::test_scan_archive_with_no_video
tests/test_core.py::test_scan_password_protected_archive
+ # NotImplementedError
+ tests/test_core.py::test_save_subtitles
)
- # Two tests that list providers rely on entry points
- # so they need the package to be installed
- distutils_install_for_testing
- pytest -vv --ignore ${PN}/test/test_core.py ${skipped_tests[@]/#/--deselect } \
- || die "Tests fail with ${EPYTHON}"
+ epytest
}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-video/subliminal/, media-video/subliminal/files/
@ 2020-07-23 22:40 Sam James
0 siblings, 0 replies; 5+ messages in thread
From: Sam James @ 2020-07-23 22:40 UTC (permalink / raw
To: gentoo-commits
commit: 126707a526c12328bbc58030dbf2bd51570240e6
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 23 22:35:22 2020 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jul 23 22:36:15 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=126707a5
media-video/subliminal: cleanup old
Package-Manager: Portage-3.0.0, Repoman-2.3.23
Signed-off-by: Sam James <sam <AT> gentoo.org>
media-video/subliminal/Manifest | 1 -
.../files/subliminal-2.0.5-add-missing-comma.patch | 19 ------
media-video/subliminal/subliminal-2.0.5-r2.ebuild | 75 ----------------------
media-video/subliminal/subliminal-2.0.5-r3.ebuild | 73 ---------------------
4 files changed, 168 deletions(-)
diff --git a/media-video/subliminal/Manifest b/media-video/subliminal/Manifest
index df7a19ff8ab..0b09ed7b8e8 100644
--- a/media-video/subliminal/Manifest
+++ b/media-video/subliminal/Manifest
@@ -1,3 +1,2 @@
DIST matroska_test_w1_1.zip 184550509 BLAKE2B f111725aa08267661942072c2d4ac019d3d322c4e933aad10afb3aa6f69bb3469114c4400d161e53d8a7618b818b22465177460003804a7ac3e69fa4f4db000d SHA512 f170a8e83dab15228f992b3692330163da2402b8e436c7fa195ac1ecc06cf1eaf1a48d8c99a85c031122c158c2d4006023aae75d5b7805385ba25a6d601cb78f
-DIST subliminal-2.0.5-r2.tar.gz 4442435 BLAKE2B ea2139bd61344d6a0cb4b48a2b75cbfd29905adc81bca25a332443725fff80bc03b58704d0e6289d44ddc26104e15744f67acb7e0e4eafae584098b02fb4c007 SHA512 b0f99c6b2fa6bc3860c86592bb428c7b4b34836df7a619b19d69b15532a68b4d05369f724131e120d4b390bd91f430aea442aef72ebc00ae8e3d31a457925eec
DIST subliminal-2.1.0.tar.gz 5480458 BLAKE2B 249bdd027d99dfb0b81d939af2dc08f62b52dca2c8618f1006ca76eee41c2443b450076eddc1aa533997beca8cdf9016b884d7eceeebbf4e48ced91dae1a2361 SHA512 9b26ae594895470830547eed604aa5b28b75f590e5be12c2d5a478c5daf798d405f209639bd54dce0565b0e27d1b0daa5bef87dfa8590af61f2ab1e287c41060
diff --git a/media-video/subliminal/files/subliminal-2.0.5-add-missing-comma.patch b/media-video/subliminal/files/subliminal-2.0.5-add-missing-comma.patch
deleted file mode 100644
index 148307781b7..00000000000
--- a/media-video/subliminal/files/subliminal-2.0.5-add-missing-comma.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-commit 9c2cfa23b3eedad64cfd4133c40bb73e6be0139f
-Author: Fernando <fernandog@users.noreply.github.com>
-Date: Thu Sep 29 22:57:51 2016 -0300
-
-Fix missing comma
-
-diff --git a/subliminal/video.py b/subliminal/video.py
-index 00304e9..b79570f 100644
---- a/subliminal/video.py
-+++ b/subliminal/video.py
-@@ -13,7 +13,7 @@ VIDEO_EXTENSIONS = ('.3g2', '.3gp', '.3gp2', '.3gpp', '.60d', '.ajp', '.asf', '.
- '.bix', '.box', '.cam', '.dat', '.divx', '.dmf', '.dv', '.dvr-ms', '.evo', '.flc', '.fli',
- '.flic', '.flv', '.flx', '.gvi', '.gvp', '.h264', '.m1v', '.m2p', '.m2ts', '.m2v', '.m4e',
- '.m4v', '.mjp', '.mjpeg', '.mjpg', '.mkv', '.moov', '.mov', '.movhd', '.movie', '.movx', '.mp4',
-- '.mpe', '.mpeg', '.mpg', '.mpv', '.mpv2', '.mxf', '.nsv', '.nut', '.ogg', '.ogm' '.ogv', '.omf',
-+ '.mpe', '.mpeg', '.mpg', '.mpv', '.mpv2', '.mxf', '.nsv', '.nut', '.ogg', '.ogm', '.ogv', '.omf',
- '.ps', '.qt', '.ram', '.rm', '.rmvb', '.swf', '.ts', '.vfw', '.vid', '.video', '.viv', '.vivo',
- '.vob', '.vro', '.wm', '.wmv', '.wmx', '.wrap', '.wvx', '.wx', '.x264', '.xvid')
-
diff --git a/media-video/subliminal/subliminal-2.0.5-r2.ebuild b/media-video/subliminal/subliminal-2.0.5-r2.ebuild
deleted file mode 100644
index 553544eeb7c..00000000000
--- a/media-video/subliminal/subliminal-2.0.5-r2.ebuild
+++ /dev/null
@@ -1,75 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-PYTHON_COMPAT=( python3_6 )
-PYTHON_REQ_USE='xml(+)'
-COMMIT_ID='dd74383d1cba82829ce720f2e439a65d13ffe7ef'
-
-inherit distutils-r1 vcs-snapshot
-
-DESCRIPTION="Python library to search and download subtitles"
-HOMEPAGE="https://github.com/Diaoul/subliminal https://pypi.org/project/subliminal/"
-SRC_URI="
- https://github.com/Diaoul/${PN}/archive/${COMMIT_ID}.tar.gz -> ${PF}.tar.gz
- test? ( mirror://sourceforge/matroska/test_files/matroska_test_w1_1.zip )
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="amd64 ~x86"
-IUSE="test"
-
-RDEPEND="
- >=dev-python/guessit-2.0.1[${PYTHON_USEDEP}]
- >=dev-python/babelfish-0.5.2[${PYTHON_USEDEP}]
- >=dev-python/enzyme-0.4.1[${PYTHON_USEDEP}]
- >=dev-python/beautifulsoup-4.4.0:4[${PYTHON_USEDEP}]
- >=dev-python/requests-2.0[${PYTHON_USEDEP}]
- >=dev-python/click-4.0[${PYTHON_USEDEP}]
- >=dev-python/dogpile-cache-0.6.0[${PYTHON_USEDEP}]
- >=dev-python/stevedore-1.0.0[${PYTHON_USEDEP}]
- >=dev-python/chardet-2.3.0[${PYTHON_USEDEP}]
- >=dev-python/pysrt-1.0.1[${PYTHON_USEDEP}]
- >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
- >=dev-python/appdirs-1.3[${PYTHON_USEDEP}]
- >=dev-python/rarfile-2.7[compressed,${PYTHON_USEDEP}]
- >=dev-python/pytz-2012c[${PYTHON_USEDEP}]
- dev-python/setuptools[${PYTHON_USEDEP}]
-"
-DEPEND="${RDEPEND}
- test? (
- app-arch/unzip
- >=dev-python/vcrpy-1.6.1[${PYTHON_USEDEP}]
- dev-python/pytest[${PYTHON_USEDEP}]
- dev-python/sympy[${PYTHON_USEDEP}]
- )
-"
-
-# Tests don't work in 2.0.5. Recheck in later versions. See Gentoo bug 630114.
-RESTRICT=test
-
-PATCHES=( "${FILESDIR}/${P}-add-missing-comma.patch" )
-
-S="${WORKDIR}/${PF}"
-
-python_prepare_all() {
- # Disable code checkers as they require unavailable dependencies.
- sed -i -e 's/--\(pep8\|flakes\)//g' pytest.ini || die
- sed -i -e "s/'pytest-\(pep8\|flakes\)',//g" setup.py || die
-
- # Disable unconditional dependency on dev-python/pytest-runner.
- sed -i -e "s|'pytest-runner'||g" setup.py || die
-
- if use test; then
- mkdir -p tests/data/mkv || die
- ln -s "${WORKDIR}"/test*.mkv tests/data/mkv/ || die
- fi
-
- distutils-r1_python_prepare_all
-}
-
-python_test() {
- esetup.py test
-}
diff --git a/media-video/subliminal/subliminal-2.0.5-r3.ebuild b/media-video/subliminal/subliminal-2.0.5-r3.ebuild
deleted file mode 100644
index 1f8be45ef01..00000000000
--- a/media-video/subliminal/subliminal-2.0.5-r3.ebuild
+++ /dev/null
@@ -1,73 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_6 )
-PYTHON_REQ_USE='xml(+)'
-COMMIT_ID='dd74383d1cba82829ce720f2e439a65d13ffe7ef'
-
-inherit distutils-r1
-
-DESCRIPTION="Python library to search and download subtitles"
-HOMEPAGE="https://github.com/Diaoul/subliminal https://pypi.org/project/subliminal/"
-SRC_URI="
- https://github.com/Diaoul/${PN}/archive/${COMMIT_ID}.tar.gz -> ${P}-r2.tar.gz
- test? ( mirror://sourceforge/matroska/test_files/matroska_test_w1_1.zip )
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-RDEPEND="
- >=dev-python/appdirs-1.3[${PYTHON_USEDEP}]
- >=dev-python/babelfish-0.5.2[${PYTHON_USEDEP}]
- >=dev-python/beautifulsoup-4.4.0:4[${PYTHON_USEDEP}]
- >=dev-python/chardet-2.3.0[${PYTHON_USEDEP}]
- >=dev-python/click-4.0[${PYTHON_USEDEP}]
- dev-python/decorator[${PYTHON_USEDEP}]
- >=dev-python/dogpile-cache-0.6.0[${PYTHON_USEDEP}]
- >=dev-python/enzyme-0.4.1[${PYTHON_USEDEP}]
- >=dev-python/guessit-2.0.1[${PYTHON_USEDEP}]
- >=dev-python/pysrt-1.0.1[${PYTHON_USEDEP}]
- >=dev-python/pytz-2012c[${PYTHON_USEDEP}]
- >=dev-python/rarfile-2.7[compressed,${PYTHON_USEDEP}]
- >=dev-python/requests-2.0[${PYTHON_USEDEP}]
- dev-python/setuptools[${PYTHON_USEDEP}]
- >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
- >=dev-python/stevedore-1.0.0[${PYTHON_USEDEP}]
-"
-DEPEND="
- dev-python/setuptools[${PYTHON_USEDEP}]
- test? (
- app-arch/unzip
- dev-python/sympy[${PYTHON_USEDEP}]
- >=dev-python/vcrpy-1.6.1[${PYTHON_USEDEP}]
- )
-"
-
-# Tests don't work in 2.0.5. Recheck in later versions. See Gentoo bug 630114.
-RESTRICT=test
-
-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
- sed -i -e "s/'pytest-\(pep8\|flakes\)',//g" setup.py || die
-
- # Disable unconditional dependency on dev-python/pytest-runner.
- sed -i -e "s|'pytest-runner'||g" setup.py || die
-
- if use test; then
- mkdir -p tests/data/mkv || die
- ln -s "${WORKDIR}"/test*.mkv tests/data/mkv/ || die
- fi
-
- distutils-r1_python_prepare_all
-}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-video/subliminal/, media-video/subliminal/files/
@ 2017-01-15 13:34 David Seifert
0 siblings, 0 replies; 5+ messages in thread
From: David Seifert @ 2017-01-15 13:34 UTC (permalink / raw
To: gentoo-commits
commit: 19a0f46be96a9afb98504458a2aa63e33769577d
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com>
AuthorDate: Fri Jan 13 21:38:59 2017 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Jan 15 13:33:53 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19a0f46b
media-video/subliminal: revbump to 2.0.5-r1 to sync with 9999
This revbump is mostly to fix tests, but as a reward users will get one
fix backported. Also change tarball to fetch sources with the monstrous
patch from SRC_URI already applied.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
media-video/subliminal/Manifest | 1 +
.../files/subliminal-2.0.5-add-missing-comma.patch | 19 ++++++
media-video/subliminal/subliminal-2.0.5-r1.ebuild | 77 ++++++++++++++++++++++
3 files changed, 97 insertions(+)
diff --git a/media-video/subliminal/Manifest b/media-video/subliminal/Manifest
index 32bedee..5be66a3 100644
--- a/media-video/subliminal/Manifest
+++ b/media-video/subliminal/Manifest
@@ -1,4 +1,5 @@
DIST matroska_test_w1_1.zip 184550509 SHA256 d86f96e165e695e6cf5324ebca184f2df723872f02965b565820d265b53004eb SHA512 f170a8e83dab15228f992b3692330163da2402b8e436c7fa195ac1ecc06cf1eaf1a48d8c99a85c031122c158c2d4006023aae75d5b7805385ba25a6d601cb78f WHIRLPOOL 3d0a16871fc7df0a3ef3f34f7c496eff188400a9796a2ad66667112ef0de7deecf025196898bd24ea395f8c44e75156a8b8c09d40a92e98d833d995473eefa9e
DIST subliminal-2.0.3.tar.gz 4428821 SHA256 12ad058d8bfdb0471d2021f8a486c2a11d2470e845bec1e71f698e4523ddc8fe SHA512 ed014ac25ab867cf1d7d16c1ecc19364a1b1281893c3e1aa1e678176d6df12623fc29f6a8159984cd2d621bf2f708655382ae7e0cf41c92956fc2d803f1b5c37 WHIRLPOOL 39a20b595660a78c3a48efa7affc973e4349f2912b5d077583d75d05e4bad8675b5d5594512e739398fff641fdc76a08afdc1deec6f54bba5b02b3f5014ea531
DIST subliminal-2.0.5-fix-tests.patch 377419 SHA256 d5280c3ede7a195ca21707a57b801bdcf3401bc6d54eebb82db90836a1e5c566 SHA512 35a59dec59a0075d51f00147661d9a949019069a00b4882492f7dab4bb2af35d61f4aad70d49094d16128538677907ed154dbb2e2da5959188f3996fb6200d2e WHIRLPOOL a320ce105288de78cdeeb897706fb9e622c1d82cfe582225e5d08f4b4de3781ba6a4bcdfe6b7875396bee6f8c60e25945a73474be5563755601abd195031ebef
+DIST subliminal-2.0.5-r1.tar.gz 4442435 SHA256 b7a54377937810842cf9e9f06d9c9affd1e02c591f3f9a1ddf76c25a9b51a434 SHA512 b0f99c6b2fa6bc3860c86592bb428c7b4b34836df7a619b19d69b15532a68b4d05369f724131e120d4b390bd91f430aea442aef72ebc00ae8e3d31a457925eec WHIRLPOOL eae38af4612576fa6903ab23aeab6d1c769ee1c3a95709c23e265819159d83e0624c53527cf86d58e059aca51f2ba7f27820e413ac9dcb584c58d0066a38067a
DIST subliminal-2.0.5.tar.gz 4440754 SHA256 b956f02ae0286ad04be5bbf1c5570964aa17bb53c99fcce067e8334d99516ae2 SHA512 e2f563fa86fea286a172aa4a6a846d997e777cf69666fb39f3f73e3073ce5b5467474561ced4468d51708c0b1559f97b314f2f9ffb3d5e61978ad635c00ba0f8 WHIRLPOOL cb57c8d553eb0164a21d2ea1c81129aef78b425748d52be6d73444fc111b227eeae5e3321253d163c2df46acfa274d6c0852d5aa7153b3ee2ba3c311c56dfd2d
diff --git a/media-video/subliminal/files/subliminal-2.0.5-add-missing-comma.patch b/media-video/subliminal/files/subliminal-2.0.5-add-missing-comma.patch
new file mode 100644
index 00000000..1483077
--- /dev/null
+++ b/media-video/subliminal/files/subliminal-2.0.5-add-missing-comma.patch
@@ -0,0 +1,19 @@
+commit 9c2cfa23b3eedad64cfd4133c40bb73e6be0139f
+Author: Fernando <fernandog@users.noreply.github.com>
+Date: Thu Sep 29 22:57:51 2016 -0300
+
+Fix missing comma
+
+diff --git a/subliminal/video.py b/subliminal/video.py
+index 00304e9..b79570f 100644
+--- a/subliminal/video.py
++++ b/subliminal/video.py
+@@ -13,7 +13,7 @@ VIDEO_EXTENSIONS = ('.3g2', '.3gp', '.3gp2', '.3gpp', '.60d', '.ajp', '.asf', '.
+ '.bix', '.box', '.cam', '.dat', '.divx', '.dmf', '.dv', '.dvr-ms', '.evo', '.flc', '.fli',
+ '.flic', '.flv', '.flx', '.gvi', '.gvp', '.h264', '.m1v', '.m2p', '.m2ts', '.m2v', '.m4e',
+ '.m4v', '.mjp', '.mjpeg', '.mjpg', '.mkv', '.moov', '.mov', '.movhd', '.movie', '.movx', '.mp4',
+- '.mpe', '.mpeg', '.mpg', '.mpv', '.mpv2', '.mxf', '.nsv', '.nut', '.ogg', '.ogm' '.ogv', '.omf',
++ '.mpe', '.mpeg', '.mpg', '.mpv', '.mpv2', '.mxf', '.nsv', '.nut', '.ogg', '.ogm', '.ogv', '.omf',
+ '.ps', '.qt', '.ram', '.rm', '.rmvb', '.swf', '.ts', '.vfw', '.vid', '.video', '.viv', '.vivo',
+ '.vob', '.vro', '.wm', '.wmv', '.wmx', '.wrap', '.wvx', '.wx', '.x264', '.xvid')
+
diff --git a/media-video/subliminal/subliminal-2.0.5-r1.ebuild b/media-video/subliminal/subliminal-2.0.5-r1.ebuild
new file mode 100644
index 00000000..bad06d4
--- /dev/null
+++ b/media-video/subliminal/subliminal-2.0.5-r1.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+PYTHON_REQ_USE='xml(+)'
+COMMIT_ID='dd74383d1cba82829ce720f2e439a65d13ffe7ef'
+
+inherit distutils-r1 vcs-snapshot
+
+DESCRIPTION="Python library to search and download subtitles"
+HOMEPAGE="https://github.com/Diaoul/subliminal https://pypi.python.org/pypi/subliminal"
+SRC_URI="
+ https://github.com/Diaoul/${PN}/archive/${COMMIT_ID}.tar.gz -> ${PF}.tar.gz
+ test? ( mirror://sourceforge/matroska/test_files/matroska_test_w1_1.zip )
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="
+ >=dev-python/guessit-2.0.1[${PYTHON_USEDEP}]
+ >=dev-python/babelfish-0.5.2[${PYTHON_USEDEP}]
+ >=dev-python/enzyme-0.4.1[${PYTHON_USEDEP}]
+ >=dev-python/beautifulsoup-4.4.0:4[${PYTHON_USEDEP}]
+ >=dev-python/requests-2.0[${PYTHON_USEDEP}]
+ >=dev-python/click-4.0[${PYTHON_USEDEP}]
+ >=dev-python/dogpile-cache-0.6.0[${PYTHON_USEDEP}]
+ >=dev-python/stevedore-1.0.0[${PYTHON_USEDEP}]
+ >=dev-python/chardet-2.3.0[${PYTHON_USEDEP}]
+ >=dev-python/pysrt-1.0.1[${PYTHON_USEDEP}]
+ >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
+ >=dev-python/appdirs-1.3[${PYTHON_USEDEP}]
+ >=dev-python/rarfile-2.7[compressed,${PYTHON_USEDEP}]
+ >=dev-python/pytz-2012c[${PYTHON_USEDEP}]
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ virtual/python-futures[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ test? (
+ 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}]
+ $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7)
+ )
+"
+
+PATCHES=( "${FILESDIR}/${P}-add-missing-comma.patch" )
+
+S="${WORKDIR}/${PF}"
+
+python_prepare_all() {
+ # Disable code checkers as they require unavailable dependencies.
+ sed -i -e 's/--\(pep8\|flakes\)//g' pytest.ini || die
+ sed -i -e "s/'pytest-\(pep8\|flakes\)',//g" setup.py || die
+
+ # Disable unconditional dependency on dev-python/pytest-runner.
+ sed -i -e "s|'pytest-runner'||g" setup.py || die
+
+ if use test; then
+ mkdir -p tests/data/mkv || die
+ ln -s "${WORKDIR}"/test*.mkv tests/data/mkv/ || die
+ fi
+
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ esetup.py test
+}
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-05-06 16:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-01 8:41 [gentoo-commits] repo/gentoo:master commit in: media-video/subliminal/, media-video/subliminal/files/ Joonas Niilola
-- strict thread matches above, loose matches on Subject: below --
2025-05-06 16:27 Sam James
2023-02-18 2:09 Sam James
2020-07-23 22:40 Sam James
2017-01-15 13:34 David Seifert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox