update to py3-guessit-3.4.2

This commit is contained in:
sthen 2021-11-14 15:19:03 +00:00
parent 914d7559c9
commit 346d58d13a
4 changed files with 41 additions and 20 deletions

View File

@ -1,12 +1,11 @@
# $OpenBSD: Makefile,v 1.2 2021/11/02 00:01:38 sthen Exp $
# $OpenBSD: Makefile,v 1.3 2021/11/14 15:19:03 sthen Exp $
COMMENT = guess information from video filenames
MODPY_EGG_VERSION = 3.3.1
MODPY_EGG_VERSION = 3.4.2
DISTNAME = guessit-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
REVISION = 0
CATEGORIES = multimedia
@ -26,7 +25,9 @@ BUILD_DEPENDS = devel/py-test-runner${MODPY_FLAVOR}
RUN_DEPENDS = devel/py-dateutil${MODPY_FLAVOR} \
misc/py-babelfish${MODPY_FLAVOR} \
textproc/py-rebulk${MODPY_FLAVOR}>=3
TEST_DEPENDS = textproc/py-yaml${MODPY_FLAVOR}
TEST_DEPENDS = textproc/py-yaml${MODPY_FLAVOR} \
devel/py-test-benchmark${MODPY_FLAVOR} \
devel/py-test-mock${MODPY_FLAVOR}
FLAVORS = python3
FLAVOR = python3

View File

@ -1,2 +1,2 @@
SHA256 (guessit-3.3.1.tar.gz) = gwXgCGEpYUqIIKUIMD+Y9WxYSBFIlJm8xUp+pvGwOR4=
SIZE (guessit-3.3.1.tar.gz) = 156178
SHA256 (guessit-3.4.2.tar.gz) = Gxagd+X8cJqKKR6ZUncZqV9C4Av1W4yXcjOuGVxhltc=
SIZE (guessit-3.4.2.tar.gz) = 165996

View File

@ -0,0 +1,34 @@
$OpenBSD: patch-guessit_test_test_api_py,v 1.1 2021/11/14 15:19:03 sthen Exp $
cope with older py-test-mock
Index: guessit/test/test_api.py
--- guessit/test/test_api.py.orig
+++ guessit/test/test_api.py
@@ -6,7 +6,7 @@ import os
from pathlib import Path
import pytest
-from pytest_mock import MockerFixture
+from pytest_mock import MockFixture
from .. import api
from ..api import guessit, properties, suggested_expected, GuessitException, default_api
@@ -70,7 +70,7 @@ def test_suggested_expected():
assert actual == content['suggested']
-def test_should_rebuild_rebulk_on_advanced_config_change(mocker: MockerFixture):
+def test_should_rebuild_rebulk_on_advanced_config_change(mocker: MockFixture):
api.reset()
rebulk_builder_spy = mocker.spy(api, 'rebulk_builder')
@@ -93,7 +93,7 @@ def test_should_rebuild_rebulk_on_advanced_config_chan
rebulk_builder_spy.reset_mock()
-def test_should_not_rebuild_rebulk_on_same_advanced_config(mocker: MockerFixture):
+def test_should_not_rebuild_rebulk_on_same_advanced_config(mocker: MockFixture):
api.reset()
rebulk_builder_spy = mocker.spy(api, 'rebulk_builder')

View File

@ -1,14 +0,0 @@
$OpenBSD: patch-setup_py,v 1.1.1.1 2021/10/08 15:37:51 bket Exp $
Index: setup.py
--- setup.py.orig
+++ setup.py
@@ -21,7 +21,7 @@ setup_requires = ['pytest-runner']
dev_require = ['tox', 'mkdocs', 'mkdocs-material', 'pyinstaller', 'python-semantic-release']
-tests_require = ['pytest', 'pytest-benchmark', 'pylint', 'PyYAML']
+tests_require = ['pytest', 'pylint', 'PyYAML']
package_data = ['config/*', 'data/*']