Hello community,

here is the log from the commit of package python-av for openSUSE:Factory 
checked in at 2020-08-18 15:07:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-av (Old)
 and      /work/SRC/openSUSE:Factory/.python-av.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-av"

Tue Aug 18 15:07:59 2020 rev:7 rq:826795 version:8.0.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-av/python-av.changes      2020-06-24 
15:49:19.828516754 +0200
+++ /work/SRC/openSUSE:Factory/.python-av.new.3399/python-av.changes    
2020-08-18 15:08:08.459968435 +0200
@@ -1,0 +2,7 @@
+Sat Aug 15 08:35:33 UTC 2020 - John Vandenberg <[email protected]>
+
+- Add missing runtime dependency on numpy
+- Require ffmpeg 4.3
+- Re-activate test suite, removing nose
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-av.spec ++++++
--- /var/tmp/diff_new_pack.1AcVgb/_old  2020-08-18 15:08:09.915969037 +0200
+++ /var/tmp/diff_new_pack.1AcVgb/_new  2020-08-18 15:08:09.915969037 +0200
@@ -27,15 +27,17 @@
 Source:         
https://files.pythonhosted.org/packages/source/a/av/av-%{version}.tar.gz
 BuildRequires:  %{python_module Cython}
 BuildRequires:  %{python_module devel}
-BuildRequires:  %{python_module nose}
 BuildRequires:  %{python_module numpy}
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
+BuildRequires:  libavutil-devel >= 4.3
 BuildRequires:  pkgconfig
 BuildRequires:  python-rpm-macros
 BuildRequires:  pkgconfig(libavdevice)
 BuildRequires:  pkgconfig(libavfilter)
 BuildRequires:  pkgconfig(libavutil)
+Requires:       python-numpy
 Requires:       python-setuptools
 Requires(post): update-alternatives
 Requires(postun): update-alternatives
@@ -47,6 +49,12 @@
 %prep
 %setup -q -n av-%{version}
 
+# doctests and timeout require network to setup tests
+rm tests/test_doctests.py tests/test_timeout.py
+
+# All tests using fate_suite require fetching data from 
http://fate.ffmpeg.org/fate-suite/
+sed -Ei 's/(from .common import .*), fate_suite(, .*)?/\1\2\ndef 
fate_suite(*a):\n  import unittest; raise unittest.SkipTest\n/' tests/test_*.py
+
 %build
 %python_build
 
@@ -55,16 +63,18 @@
 %python_clone -a %{buildroot}%{_bindir}/pyav
 %python_expand %fdupes %{buildroot}%{$python_sitearch}
 
-%check
-# Sadly needs full ffmpeg with all the codec support so we have to skip
-#%%python_exec setup.py test
-
 %post
 %python_install_alternative pyav
 
 %postun
 %python_uninstall_alternative pyav
 
+%check
+mv av .av
+# Skipping 4 tests requiring mpeg4 codec
+%pytest_arch tests -k 'not (test_codec_mpeg4 or test_encoding_with_pts or 
test_stream_index or test_video_default_options)'
+mv .av av
+
 %files %{python_files}
 %license LICENSE.txt
 %doc README.md


Reply via email to