Hello community,

here is the log from the commit of package python-pydocstyle for 
openSUSE:Factory checked in at 2020-05-28 09:08:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pydocstyle (Old)
 and      /work/SRC/openSUSE:Factory/.python-pydocstyle.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pydocstyle"

Thu May 28 09:08:15 2020 rev:8 rq:807658 version:5.0.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pydocstyle/python-pydocstyle.changes      
2020-02-14 16:25:18.887188705 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pydocstyle.new.3606/python-pydocstyle.changes
    2020-05-28 09:08:18.431874660 +0200
@@ -1,0 +2,5 @@
+Wed May 20 07:26:23 UTC 2020 - Petr Gajdos <pgaj...@suse.com>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-pydocstyle.spec ++++++
--- /var/tmp/diff_new_pack.A0GXuF/_old  2020-05-28 09:08:19.611877563 +0200
+++ /var/tmp/diff_new_pack.A0GXuF/_new  2020-05-28 09:08:19.615877573 +0200
@@ -42,6 +42,8 @@
 BuildRequires:  python-rpm-macros
 Requires:       python-six > 1.10.0
 Requires:       python-snowballstemmer
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 Provides:       python-pep257 = %{version}
 Obsoletes:      python-pep257 < %{version}
 BuildArch:      noarch
@@ -71,6 +73,7 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/pydocstyle
 %{python_expand  #
 sed -i -e '/^#! \//, 1d' %{buildroot}%{$python_sitelib}/pydocstyle/__main__.py
 dos2unix %{buildroot}%{$python_sitelib}/pydocstyle/__main__.py
@@ -81,10 +84,16 @@
 export PYTHONPATH=$(pwd)/src
 %pytest
 
+%post
+%python_install_alternative pydocstyle
+
+%postun
+%python_uninstall_alternative pydocstyle
+
 %files %{python_files}
 %doc README.rst
 %license LICENSE-MIT
-%python3_only %{_bindir}/pydocstyle
+%python_alternative %{_bindir}/pydocstyle
 %{python_sitelib}/pydocstyle
 %{python_sitelib}/pydocstyle-%{version}-py*.egg-info
 


Reply via email to