Hello community, here is the log from the commit of package python-pypipegraph for openSUSE:Factory checked in at 2020-05-20 18:48:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pypipegraph (Old) and /work/SRC/openSUSE:Factory/.python-pypipegraph.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pypipegraph" Wed May 20 18:48:05 2020 rev:2 rq:807683 version:0.189 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pypipegraph/python-pypipegraph.changes 2019-12-24 14:29:49.842571902 +0100 +++ /work/SRC/openSUSE:Factory/.python-pypipegraph.new.2738/python-pypipegraph.changes 2020-05-20 18:48:11.305649778 +0200 @@ -1,0 +2,5 @@ +Wed May 20 07:26:38 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pypipegraph.spec ++++++ --- /var/tmp/diff_new_pack.Ru2jaX/_old 2020-05-20 18:48:12.269651944 +0200 +++ /var/tmp/diff_new_pack.Ru2jaX/_new 2020-05-20 18:48:12.269651944 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pypipegraph # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -31,14 +31,16 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-numpy +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module flake8} BuildRequires: %{python_module ipython} -BuildRequires: %{python_module numpy} BuildRequires: %{python_module notebook} -BuildRequires: %{python_module pytest} +BuildRequires: %{python_module numpy} BuildRequires: %{python_module pytest-cov} +BuildRequires: %{python_module pytest} # /SECTION %python_subpackages @@ -54,16 +56,23 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/ppg_invariant_diff %python_expand %fdupes %{buildroot}%{$python_sitelib} %check # We don't care about these tests %pytest -k 'not test_flake8 and not test_notebook' +%post +%python_install_alternative ppg_invariant_diff + +%postun +%python_uninstall_alternative ppg_invariant_diff + %files %{python_files} %doc README.md %license COPYING -%python3_only %{_bindir}/ppg_invariant_diff +%python_alternative %{_bindir}/ppg_invariant_diff %{python_sitelib}/* %changelog
