Hello community, here is the log from the commit of package python-yappi for openSUSE:Factory checked in at 2020-05-16 22:27:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-yappi (Old) and /work/SRC/openSUSE:Factory/.python-yappi.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-yappi" Sat May 16 22:27:11 2020 rev:5 rq:805898 version:1.2.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-yappi/python-yappi.changes 2020-03-18 12:50:54.845157569 +0100 +++ /work/SRC/openSUSE:Factory/.python-yappi.new.2738/python-yappi.changes 2020-05-16 22:27:11.661379033 +0200 @@ -1,0 +2,5 @@ +Fri May 15 12:52:55 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-yappi.spec ++++++ --- /var/tmp/diff_new_pack.javAmj/_old 2020-05-16 22:27:12.205380150 +0200 +++ /var/tmp/diff_new_pack.javAmj/_new 2020-05-16 22:27:12.209380158 +0200 @@ -34,6 +34,8 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-setuptools +Requires(post): update-alternatives +Requires(postun): update-alternatives %python_subpackages %description @@ -48,23 +50,31 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/yappi %python_expand %fdupes %{buildroot}%{$python_sitearch} %check export PYTHONPATH="tests/" -export PATH="$PATH:%{buildroot}/%{_bindir}" # Skip two flaky tests skip_tests="not test_basic_old_style and not test_basic" %if %{python3_version_nodots} < 37 # this test relies on asyncio.run method skip_tests="$skip_tests and not test_asyncio_context_vars" %endif +# yappi binary is not available (only yappi-%python_version) +skip_tests="$skip_tests and not test_run_as_script" %pytest_arch -k "$skip_tests" +%post +%python_install_alternative yappi + +%postun +%python_uninstall_alternative yappi + %files %{python_files} %doc README.md %license LICENSE -%python3_only %{_bindir}/yappi +%python_alternative %{_bindir}/yappi %{python_sitearch}/* %changelog
