Hello community,

here is the log from the commit of package python-isort for openSUSE:Factory 
checked in at 2020-06-05 19:58:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-isort (Old)
 and      /work/SRC/openSUSE:Factory/.python-isort.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-isort"

Fri Jun  5 19:58:38 2020 rev:15 rq:808784 version:4.3.21

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-isort/python-isort.changes        
2020-03-27 00:23:52.680213664 +0100
+++ /work/SRC/openSUSE:Factory/.python-isort.new.3606/python-isort.changes      
2020-06-05 19:58:40.431619001 +0200
@@ -1,0 +2,5 @@
+Mon May 25 10:59:30 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-isort.spec ++++++
--- /var/tmp/diff_new_pack.Ma3TNi/_old  2020-06-05 19:58:40.967620855 +0200
+++ /var/tmp/diff_new_pack.Ma3TNi/_new  2020-06-05 19:58:40.971620869 +0200
@@ -37,6 +37,8 @@
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-setuptools
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 Recommends:     python-appdirs >= 1.4.0
 Recommends:     python-pip
 Recommends:     python-pipreqs
@@ -82,6 +84,7 @@
 %install
 %if !%{with test}
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/isort
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 %endif
 
@@ -92,9 +95,15 @@
 %endif
 
 %if !%{with test}
+%post
+%python_install_alternative isort
+
+%postun
+%python_uninstall_alternative isort
+
 %files %{python_files}
 %{python_sitelib}/isort*
-%python3_only %{_bindir}/isort
+%python_alternative %{_bindir}/isort
 %license LICENSE
 %endif
 


Reply via email to