Hello community, here is the log from the commit of package python-pipreqs for openSUSE:Factory checked in at 2020-05-28 09:07:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pipreqs (Old) and /work/SRC/openSUSE:Factory/.python-pipreqs.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pipreqs" Thu May 28 09:07:37 2020 rev:3 rq:807046 version:0.4.10 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pipreqs/python-pipreqs.changes 2020-03-27 00:28:49.656364096 +0100 +++ /work/SRC/openSUSE:Factory/.python-pipreqs.new.3606/python-pipreqs.changes 2020-05-28 09:07:39.223759186 +0200 @@ -1,0 +2,5 @@ +Mon May 18 20:42:58 UTC 2020 - Matej Cepl <[email protected]> + +- Don't use %python3_only command, but properly use alternatives. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pipreqs.spec ++++++ --- /var/tmp/diff_new_pack.qbRk8h/_old 2020-05-28 09:07:39.963761405 +0200 +++ /var/tmp/diff_new_pack.qbRk8h/_new 2020-05-28 09:07:39.967761417 +0200 @@ -32,6 +32,8 @@ Requires: python-docopt Requires: python-setuptools Requires: python-yarg +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module docopt} @@ -51,16 +53,23 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/pipreqs %python_expand %fdupes %{buildroot}%{$python_sitelib} %check # Ignore tests that require network access %pytest -k 'not (test_get_imports_info or test_ignored_directory or test_init or test_init_overwrite or teset_init_savepath or test_omit_version)' +%post +%python_install_alternative pipreqs + +%postun +%python_uninstall_alternative pipreqs + %files %{python_files} %doc AUTHORS.rst README.rst %license LICENSE -%python3_only %{_bindir}/pipreqs +%python_alternative %{_bindir}/pipreqs %{python_sitelib}/* %changelog
