Hello community,

here is the log from the commit of package python-black for openSUSE:Factory 
checked in at 2020-06-10 00:42:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-black (Old)
 and      /work/SRC/openSUSE:Factory/.python-black.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-black"

Wed Jun 10 00:42:09 2020 rev:7 rq:809803 version:19.10b0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-black/python-black.changes        
2019-11-14 23:48:44.084617988 +0100
+++ /work/SRC/openSUSE:Factory/.python-black.new.3606/python-black.changes      
2020-06-10 00:42:28.306037963 +0200
@@ -1,0 +2,5 @@
+Wed May 27 09:36:28 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-black.spec ++++++
--- /var/tmp/diff_new_pack.zpiHW1/_old  2020-06-10 00:42:30.010042431 +0200
+++ /var/tmp/diff_new_pack.zpiHW1/_new  2020-06-10 00:42:30.010042431 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-black
 #
-# Copyright (c) 2019 SUSE LLC.
+# 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
@@ -56,6 +56,8 @@
 Requires:       python-toml >= 0.9.4
 Requires:       python-typed-ast
 Requires:       python-typing_extensions
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 %python_subpackages
 
@@ -80,6 +82,7 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/black
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 # TODO: missing aiohttp-cors (not in distribution and tests failing)
 rm %{buildroot}/%{_bindir}/blackd
@@ -88,10 +91,16 @@
 # test_expression_diff - sometimes fails on async timing in OBS
 %pytest -k 'not test_expression_diff'
 
+%post
+%python_install_alternative black
+
+%postun
+%python_uninstall_alternative black
+
 %files %{python_files}
 %doc README.md
-%python3_only %{_bindir}/black
-#%%python3_only %%{_bindir}/blackd
+%python_alternative %{_bindir}/black
+#%%python_alternative %%{_bindir}/blackd
 %license LICENSE
 %{python_sitelib}/*
 


Reply via email to