From 679950839e8f7dc9b1ec9dd2a024fcab1128c673433ba72d54e18764b2eed7c2 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 16 Jan 2022 12:53:21 +0000 Subject: [PATCH] Accepting request 946766 from home:bnavigator:branches:devel:languages:python - Python 3.10 support: Replace long deprecated collections.Iterable by collections.abc.Iterable -- gh#kroening/ffmpeg-python#624 OBS-URL: https://build.opensuse.org/request/show/946766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ffmpeg-python?expand=0&rev=8 --- python-ffmpeg-python.changes | 6 ++++++ python-ffmpeg-python.spec | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/python-ffmpeg-python.changes b/python-ffmpeg-python.changes index 8b94ed7..d8d22cd 100644 --- a/python-ffmpeg-python.changes +++ b/python-ffmpeg-python.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Jan 16 11:33:04 UTC 2022 - Ben Greiner + +- Python 3.10 support: Replace long deprecated collections.Iterable + by collections.abc.Iterable -- gh#kroening/ffmpeg-python#624 + ------------------------------------------------------------------- Thu Dec 9 09:58:46 UTC 2021 - pgajdos@suse.com diff --git a/python-ffmpeg-python.spec b/python-ffmpeg-python.spec index 9569ee9..bbea351 100644 --- a/python-ffmpeg-python.spec +++ b/python-ffmpeg-python.spec @@ -1,7 +1,7 @@ # # spec file for package python-ffmpeg-python # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,7 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-ffmpeg-python Version: 0.2.0 @@ -35,7 +35,6 @@ BuildArch: noarch BuildRequires: %{python_module future} BuildRequires: %{python_module pytest-mock} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module pytest} BuildRequires: ffmpeg # /SECTION %python_subpackages @@ -47,6 +46,8 @@ Python bindings for FFmpeg - with complex filtering support %setup -q -n ffmpeg-python-%{version} # https://github.com/kkroening/ffmpeg-python/issues/617 sed -i 's:pytest-runner::' setup.py +# https://github.com/kkroening/ffmpeg-python/issues/624 +sed -i 's/collections.Iterable/collections.abc.Iterable/' ffmpeg/_run.py %build %python_build